Skip to content

Commit

Permalink
Add testcase for MapServer/MapServer#5104
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jun 1, 2015
1 parent e2ad7ad commit d7a53c0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions wxs/expected/wfs_time_postgis_lessthan.xml
@@ -0,0 +1,12 @@
Content-Type: text/xml; subtype=gml/3.1.1; charset=UTF-8

<?xml version='1.0' encoding="UTF-8" ?>
<wfs:FeatureCollection
xmlns:ms="http://mapserver.gis.umn.edu/mapserver"
xmlns:gml="http://www.opengis.net/gml"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://mapserver.gis.umn.edu/mapserver http://localhost/path/to/wfs_simple?myparam=something&amp;SERVICE=WFS&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=time&amp;OUTPUTFORMAT=text/xml;%20subtype=gml/3.1.1 http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" timeStamp="" numberOfFeatures="6">
</wfs:FeatureCollection>

1 change: 1 addition & 0 deletions wxs/wfs_time_postgis.map
Expand Up @@ -11,6 +11,7 @@
# RUN_PARMS: wfs_time_postgis_during_filter_match_no_feature.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAME=time&RESULTTYPE=hits&FILTER=<Filter><During><ValueReference>time</ValueReference><TimePeriod><begin><TimeInstant><timePosition>1970-01-01</timePosition></TimeInstant></begin><end><TimeInstant><timePosition>1980-01-01</timePosition></TimeInstant></end></TimePeriod></During></Filter>" > [RESULT_DEVERSION]
# RUN_PARMS: wfs_time_postgis_during_filter_and_other_clause.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAME=time&RESULTTYPE=hits&FILTER=<Filter><And><During><ValueReference>time</ValueReference><TimePeriod><begin><TimeInstant><timePosition>1970-01-01</timePosition></TimeInstant></begin><end><TimeInstant><timePosition>2004-01-01</timePosition></TimeInstant></end></TimePeriod></During><PropertyIsEqualTo><ValueReference>gid</ValueReference><Literal>1</Literal></PropertyIsEqualTo></And></Filter>" > [RESULT_DEVERSION]
# RUN_PARMS: wfs_time_postgis_or_two_during_filter.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAME=time&RESULTTYPE=hits&FILTER=<Filter><Or><During><ValueReference>time</ValueReference><TimePeriod><begin><TimeInstant><timePosition>1970-01-01</timePosition></TimeInstant></begin><end><TimeInstant><timePosition>1980-01-01</timePosition></TimeInstant></end></TimePeriod></During><During><ValueReference>time</ValueReference><TimePeriod><begin><TimeInstant><timePosition>1980-01-01</timePosition></TimeInstant></begin><end><TimeInstant><timePosition>2004-01-01</timePosition></TimeInstant></end></TimePeriod></During></Or></Filter>" > [RESULT_DEVERSION]
# RUN_PARMS: wfs_time_postgis_lessthan.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=1.1.0&RESULTTYPE=hits&REQUEST=GetFeature&TYPENAME=time&FILTER=<Filter><PropertyIsLessThan><PropertyName>time</PropertyName><Literal>2004-01-01T23:59:59</Literal></PropertyIsLessThan></Filter>" > [RESULT_DEVERSION]
#
# SortBy
# RUN_PARMS: wfs_time_postgis_sortby.xml [MAPSERV] QUERY_STRING="map=[MAPFILE]&SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&TYPENAMES=time&SORTBY=time+D&COUNT=1" > [RESULT_DEVERSION]
Expand Down

0 comments on commit d7a53c0

Please sign in to comment.