Hi,

I'm experiencing some weird problems with a WFS-T update with EPSG:3007.

When inserting a point with the following transaction:

<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>

The following PostgreSql is executed to get the point information:
SELECT st_asewkt(the_geom) FROM inventory_project_e45got_verkeer_2012
This gives the following (correct) result:
"SRID=3007;POINT(145944.272745358 6397415.08110018)"

Then an update transaction is performed:

<wfs:Transaction service="WFS" version="1.1.0"
xmlns:wfs="http://www.opengis.net/wfs";>
  <wfs:Update typeName="SE:inventory_project_e45got_verkeer_2012"
inputFormat="text/xml; subtype=gml/3.1.1" srsName="EPSG:3007"
xmlns:SE="http://www.cyclomedia.se";>
    <wfs:Property>
      <wfs:Name>SE:the_geom</wfs:Name>
      <wfs:Value>
        <gml:Point xmlns:gml="http://www.opengis.net/gml";>
          <gml:pos>145944.30681447688 6397415.045897427</gml:pos>
        </gml:Point>
      </wfs:Value>
    </wfs:Property>
    <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc";>
      <ogc:GmlObjectId
gml:id="inventory_project_e45got_verkeer_2012.696"
xmlns:gml="http://www.opengis.net/gml"/>
    </ogc:Filter>
  </wfs:Update>

With the SQL query the point now has X and Y swapped
"SRID=3007;POINT(6397415.04589743 145944.306814477)"


Any idea what can be the problem here?

Thanks,

Sjoerd Brandsma
CycloMedia

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to