Hello all, Recently I am playing a lot with GeoServer WFS-T and try to understand it. What I want to achieve is simple, namely inserting multiple features to a PostGIS table. However, today I found out that the insertion of features is not in order, Here is a sample XML request I sent:
<wfs:Transaction xmlns:fct="http://www.edf.curtis.net/fct" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"> <wfs:Insert> <fct:heat_point gml:id="986684c8-f1fa-438a-8f28-abb7d6c87ae0"> <fct:label>label_1</fct:label> <fct:id>1</fct:id> <fct:geom> <gml:Point srsDimension="3" srsName="http://www.opengis.net/gml/srs/epsg.xml#4326"> <gml:pos>6.731851120607754 35.005625827160316 6.731851120607754</gml:pos> </gml:Point> </fct:geom> </fct:heat_point> <fct:heat_point gml:id="cdd0af0b-d979-4280-b710-3ef70dfff3d3"> <fct:label>label_2</fct:label> <fct:id>2</fct:id> <fct:geom> <gml:Point srsDimension="3" srsName="http://www.opengis.net/gml/srs/epsg.xml#4326"> <gml:pos>1.119891889721274 5.823437826550625 1.119891889721274</gml:pos> </gml:Point> </fct:geom> </fct:heat_point> </wfs:Insert> </wfs:Transaction> After the request is sent, 2 features are inserted to the table called "heat_point". However, when I check out the table, the second feature with the ID 2 is firstly inserted instead of the one with ID 1. Is that a normal behaviour of GeoServer WFS-T or am I missing something important? Besides, it seems that GeoServer automatically generates an ID for the public key column, which means, the insertion ignores my id. Is that also a normal behaviour? Best Regards Deen -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Inserting-features-not-in-order-with-WFS-T-tp5314942.html Sent from the GeoServer - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users