Hi all,
sorry for the noise.
GeoServer does everything as expected once you speak to it in a sensible
way. My WFS-T inserts were specifying the featuretype in the
insert-operation wrong when the first read operation against that WFS
would return an empty collection.
Note to self and possibly helpful for future readers: If you use
OpenLayers 2's Protocol.WFS for generating the requests, be sure to
specify 'geometryName' when you are using WFS 1.1.0. This possibly needs
to be adressed somehow over at the OpenLayers library.
So no problem from geoserver (as usual).
Thanks,
Marc
On 26.11.2012 10:58, Marc Jansen wrote:
Hi list,
I have experienced a strange behaviour when inserting features through
WFS-T into both shapefile or oracle spatial based datastores.
The first WFS-T insert on an empty featuretype completes successfully
(according to the WFS-T response xml), and a record is written into
either the shapefile or the dataset. Yet the features geometry seems
to get lost during the process of inserting, a common GetFeatures
response would look like:
<my-ns:my-ft gml:id="my-ft.1">
<my-ns:THE_GEOM>
<gml:MultiSurface srsDimension="2"
srsName="http://www.opengis.net/gml/srs/epsg.xml#25832">
<gml:surfaceMember>
<gml:Polygon srsDimension="2">
<gml:exterior>
<gml:LinearRing srsDimension="2">
<gml:posList>0.0 0.0 0.0 0.0 0.0 0.0 0.0
0.0</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</gml:surfaceMember>
</gml:MultiSurface>
</my-ns:THE_GEOM>
</my-ns:my-ft>
The second insert however, will produce correct geometries that can
both be viewed and also be edited.
I am using GeoServer 2.1.4 and WFS 1.1.0.
Thanks for any help and best regards,
Marc
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users