Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#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&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=layer_4326&amp;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&amp;VERSION=1.1.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=layer_4326&amp;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)

test.zip (4.6 KB ) - added by rouault 14 years ago.
Test data to reproduce

Download all attachments as: .zip

Change History (8)

by rouault, 14 years ago

Attachment: test.zip added

Test data to reproduce

comment:1 by rouault, 14 years ago

Cc: assefa added

comment:2 by rouault, 14 years ago

Ah, I forgot to mention I've bissected the difference in results to have appeared with r9597

comment:3 by sdlime, 14 years ago

Cc: sdlime added; assefa removed
Owner: changed from sdlime to assefa

comment:4 by assefa, 14 years ago

Resolution: fixed
Status: newclosed

committed in r10637. Thanks for report/data.

comment:5 by rouault, 13 years ago

Resolution: fixed
Status: closedreopened

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 assefa, 13 years ago

Resolution: fixed
Status: reopenedclosed

expected results are committed in msautotest r10695.

comment:7 by warmerdam, 13 years ago

Thanks Assefa - looking good.

Note: See TracTickets for help on using tickets.