[OpenLayers-Users] Problem WFS-T add new geometry (point)

Jimmy Aumard jimmy.aumard at gmail.com
Tue Aug 25 06:23:47 EDT 2009


Hi list,

I try to use WFS-T to add a new point on my layer, I use Openlayers,
geoserver 1.7.6 and Postgis.

This is my request:

<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
version="1.1.0" xsi:schemaLocation

="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"
xmlns:xsi="http://www.w3.org

/2001/XMLSchema-instance"><wfs:Insert><feature:franchises
xmlns:feature="http://www.openplans.org/topp"
><feature:the_geom><gml:Point xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:900913"><gml:pos>757185

.20208755 5403792.1508966</gml:pos></gml:Point></feature:the_geom></feature:franchises></wfs:Insert>
</wfs:Transaction>

This is the response:

<?xml version="1.0" encoding="UTF-8"?>

<ows:ExceptionReport version="1.0.0"
  xsi:schemaLocation="http://www.opengis.net/ows
http://192.168.40.136:8080/geoserver/schemas/ows/1.0

.0/owsExceptionReport.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ows="http://www.opengis.net/ows">

  <ows:Exception exceptionCode="NoApplicableCode">
    <ows:ExceptionText>{http://www.openplans.org/topp}franchises
<http://www.openplans.org/topp%7Dfranchises> is
read-only</ows:ExceptionText>

  </ows:Exception>
</ows:ExceptionReport>

Thanks for help.

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090825/10bf4f13/attachment.html


More information about the Users mailing list