Ticket #768 (closed defect: fixed)
[WFS Query] Tolerance apply to WFS query by shape.
| Reported by: | jlacroix | Owned by: | mapserverbugs |
|---|---|---|---|
| Priority: | high | Milestone: | 4.4 release |
| Component: | WFS Server | Version: | unspecified |
| Severity: | normal | Keywords: | |
| Cc: |
Description
When specifying a filter in a WFS query that is a polygon, the tolerance of the server layer apply on the filter. With a round or rectangular query, the TOLERANCE parameter does not apply. I think the WFS shape query should have the same behavior than the rectangular query. With this query: wget -O result.txt "http://127.0.0.1/cgi-bin/mswfs_gmap?VERSION=1.0.0&SERVICE=WFS&REQUEST=GetFeature&TYPENAME=popplace&FILTER=<Filter><AND><Intersect><PropertyName>Name</PropertyName><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>1600000.0,-80000.0 1600000.0,-100000.0 1660000.0,-100000.0 1660000.0,-80000.0 1600000.0,-80000.0</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></Intersect><PropertyIsEqualTo><PropertyName>POP_RANGE</PropertyName><Literal>3</Literal></PropertyIsEqualTo></AND></Filter>" I get points out of the filter, if you set the tolerance to 0 in the mapfile, you won't. I'll attach a test case.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

