[Geoserver-devel] [JIRA] (GEOS-7445) Documentation flaws in Filter Function Reference

Go Sato created an issue

GeoServer / BugGEOS-7445

Documentation flaws in Filter Function Reference

Issue Type:

BugBug

Affects Versions:

2.9-beta

Assignee:

Unassigned

Components:

Documentation

Created:

03/Mar/16 4:07 PM

Environment:

All web browsers

Priority:

LowLow

Reporter:

Go Sato

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.

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.2.0-OD-03-010#72000-sha1:d4f0e55)

Atlassian logo