Uploaded image for project: 'GeoServer'
  1. GeoServer
  2. GEOS-7445

Documentation flaws in Filter Function Reference

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 2.9-beta
    • Fix Version/s: 2.11-beta
    • Component/s: Documentation
    • Labels:
      None
    • Environment:

      All web browsers

      Description

      In the Filter Function Reference section of GeoServer documentation (http://docs.geoserver.org/latest/en/user/filter/function_reference.html), two fixes might be needed

      A. The order of parameters of numberFormat function looks misleading. This function works when the format is set at the first child node and the number is at the second like below.

      <ogc:Function name="numberFormat">
      <ogc:Literal>#.0</ogc:Literal>
      <ogc:PropertyName>some_column</ogc:PropertyName>
      </ogc:Function>

      What the current document is suggesting is that the number is the first parameter and the format second. I think they should be switched.

      B. Math function "sin" is not documented whilst "cos" and "tan" are.
      The function "sin" (sine) is not present in the Math Function subsection unlike the other trigonometric siblings (cos, tan, asin, acos, atan).
      I had a try and confirmed that "sin" is already available at 2.8.2 as a filter function.
      It would be nice not to keep the sine function as an easter egg by including it in the documentation.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                bradh Brad Hards
                Reporter:
                GoSato Go Sato
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: