Permalink
Browse files

Ticket #5202: Add two tests to cover the out-of-extent intersects fil…

…ters
  • Loading branch information...
juliensam committed May 14, 2017
1 parent 1b5cc9c commit 5d1689db07d2056b014d3759f5c5efdf5006e2e3
Showing with 4 additions and 1 deletion.
  1. +4 −1 msautotest/wxs/wfs_filter_postgis.map
@@ -96,6 +96,10 @@
# Verify INTERSECTS Results: Canso, Port Hawkesbury
# RUN_PARMS: wfs_filter_postgis_intersects.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=popplace&FILTER=<Filter><Intersects><PropertyName>Geometry</PropertyName><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-61.63,45.04 -60.78,45.04 -60.78,46.08 -61.63,46.08</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></Intersects></Filter>" > [RESULT]
#
# Verify INTERSECTS with different MAP EXTENT Results: Canso, Port Hawkesbury
# RUN_PARMS: wfs_filter_postgis_intersects_good_extent.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=popplace&FILTER=<Filter><Intersects><PropertyName>Geometry</PropertyName><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-61.63,45.04 -60.78,45.04 -60.78,46.08 -61.63,46.08</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></Intersects></Filter>&map_extent=-62+45+-60+47" > [RESULT]
# RUN_PARMS: wfs_filter_postgis_intersects_bad_extent.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=popplace&FILTER=<Filter><Intersects><PropertyName>Geometry</PropertyName><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-61.63,45.04 -60.78,45.04 -60.78,46.08 -61.63,46.08</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></Intersects></Filter>&map_extent=-64+45+-62+47" > [RESULT]
#
# Verify DWITHIN Result: Sydney
# RUN_PARMS: wfs_filter_postgis_dwithin.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=popplace&FILTER=<Filter><DWithin><PropertyName>Geometry</PropertyName><gml:Point><gml:coordinates>-60.18,46.10</gml:coordinates></gml:Point><Distance units='dd'>0.05</Distance></DWithin></Filter>" > [RESULT]
#
@@ -214,7 +218,6 @@ LAYER
END
END # Layer
LAYER
NAME popplace
INCLUDE "postgis.include"

0 comments on commit 5d1689d

Please sign in to comment.