Uploaded image for project: 'GeoServer'
  1. GEOS-5031

XY get swapped after a WFS-T 1.1.0 Update with EPSG:3007 in the Update srsName attribute

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.11.3, 2.12.1
    • Component/s: Global
    • Labels:
      None

      Description

      When using a CRS with northing,easting with a WFS-T update, the axis get swapped when crs style identifier is "EPSG:xxxx".

      According to Gabriel Rolan this shouldn't happen:
      Using the "EPSG:xxx" crs style identifier to mean "force X/Y lon/lat axis order"

      Point INSERT with "EPSG:3007" results in XY readback in PostgreSQL --> Correct !
      Point INSERT with "urn:ogc:def:crs:EPSG::3007" results in YX readback in Postgresql --> Correct !

      Point UPDATE with "EPSG:3007" results in Y'X' readback in PostgreSQL --> Fail !
      Point UPDATE with "urn:ogc:def:crs:EPSG::3007" results in Y'X' readback in PostgreSQL --> Correct !

      More info can be found in this thread:
      http://osgeo-org.1560.n6.nabble.com/XY-get-swapped-after-WFS-T-Update-with-EPSG-3007-td4667859.html - http://osgeo-org.1560.n6.nabble.com/XY-get-swapped-after-WFS-T-Update-with-EPSG-3007-td4667859.html

      The thread provides the following example:

      <wfs:Transaction service="WFS" version="1.1.0" 
      xmlns:wfs="http://www.opengis.net/wfs"> 
        <wfs:Insert inputFormat="text/xml; subtype=gml/3.1.1" srsName="EPSG:3007"> 
          <SE:inventory_project_e45got_verkeer_2012 
      xmlns:SE="http://www.cyclomedia.se"> 
            <SE:the_geom xlink:type="simple" 
      xmlns:xlink="http://www.w3.org/1999/xlink"> 
              <gml:Point xmlns:gml="http://www.opengis.net/gml"> 
                <gml:pos>145944.27274535838 6397415.081100176</gml:pos> 
              </gml:Point> 
            </SE:the_geom> 
          </SE:inventory_project_e45got_verkeer_2012> 
        </wfs:Insert> 
      </wfs:Transaction> 
      

        Attachments

          Activity

            People

            • Assignee:
              aaime Andrea Aime
              Reporter:
              harrison.grundy codehaus (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: