#3574 closed defect (fixed)
WFS 1.1 axis swapping broken in trunk (but works in 5.6.4) ?
Reported by: | rouault | Owned by: | assefa |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | MapServer C Library | Version: | svn-trunk (development) |
Severity: | normal | Keywords: | wfs |
Cc: | warmerdam, sdlime |
Description
Tested command :
./mapserv QUERY_STRING="map=test.map&TYPENAME=layer_4326&SERVICE=WFS&VERSION=1.1.0&REQUEST=GetFeature"
With 5.6.4 returns :
Content-type: text/xml <?xml version='1.0' encoding="ISO-8859-1" ?> <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://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=layer_4326&OUTPUTFORMAT=text/xml; subtype=gml/3.1.1 http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" numberOfFeatures="1"> <gml:boundedBy> <gml:Envelope srsName="EPSG:4326"> <gml:lowerCorner>-89.999933 -170.000083</gml:lowerCorner> <gml:upperCorner>89.500015 -170.000083</gml:upperCorner> </gml:Envelope> </gml:boundedBy> <!-- WARNING: FeatureId item 'ID' not found in typename 'layer_4326'. --> <gml:featureMember> <ms:layer_4326> <gml:boundedBy> <gml:Envelope srsName="EPSG:4326"> <gml:lowerCorner>-89.999933 -170.000083</gml:lowerCorner> <gml:upperCorner>89.500015 -170.000083</gml:upperCorner> </gml:Envelope> </gml:boundedBy> <ms:msGeometry> <gml:LineString srsName="EPSG:4326"> <gml:posList srsDimension="2">-89.999933 -170.000083 [snip]
With trunk returns :
Content-type: text/xml; subtype=gml/3.1.1 <?xml version='1.0' encoding="ISO-8859-1" ?> <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://demo.mapserver.org/cgi-bin/wfs?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=layer_4326&OUTPUTFORMAT=text/xml; subtype=gml/3.1.1 http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"> <gml:boundedBy> <gml:Envelope srsName="EPSG:4326"> <gml:lowerCorner>-170.000083 -89.999933</gml:lowerCorner> <gml:upperCorner>-170.000083 89.500015</gml:upperCorner> </gml:Envelope> </gml:boundedBy> <!-- WARNING: FeatureId item 'ID' not found in typename 'layer_4326'. --> <gml:featureMember> <ms:layer_4326> <gml:boundedBy> <gml:Envelope srsName="EPSG:4326"> <gml:lowerCorner>-170.000083 -89.999933</gml:lowerCorner> <gml:upperCorner>-170.000083 89.500015</gml:upperCorner> </gml:Envelope> </gml:boundedBy> <ms:msGeometry> <gml:LineString srsName="EPSG:4326"> <gml:posList srsDimension="2">-170.000083 -89.999933 [snip]
But if I add &SRSNAME=EPSG:4326, axis swapping appears to work again. Is that expected ?
Attachments (1)
Change History (8)
by , 14 years ago
comment:1 by , 14 years ago
Cc: | added |
---|
comment:2 by , 14 years ago
Ah, I forgot to mention I've bissected the difference in results to have appeared with r9597
comment:3 by , 14 years ago
Cc: | added; removed |
---|---|
Owner: | changed from | to
comment:4 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
committed in r10637. Thanks for report/data.
comment:5 by , 13 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I reopen because that fix caused the following test to fail :
test wfs11_get_feature.xml * results dont match, TEST FAILED. test wfs11_get_feature_id.xml * results dont match, TEST FAILED. test wfs11_get_feature_id_gml2.xml * results dont match, TEST FAILED. test wfs11_get_feature_maxfeatures.xml * results dont match, TEST FAILED.
The failure is due to wrong axis order. I have dug into svn history and found that the axis order was previously changed in r10370 (ticket #3493). I believe that the expected values should be adjusted to reflect the results ? The axis order is lat,long so we should got in the 40ies,-60ies for North America.
comment:6 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
expected results are committed in msautotest r10695.
Test data to reproduce