rendered paste body
Here's another problem I'm running into with Geoserver.
Summary: Whenever I try to UPDATE a feature, that feature is swallowed by some mysterious vortex on Geoserver's side (I think).
This is an example of it:
------
INSERT - Everything goes fine here.
------
<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" version="1.1.0" service="WFSV">
<wfs:Insert>
<topp:sitez xmlns:topp="http://mapserver.gis.umn.edu/mapserver">
<topp:the_geom>
<gml:Point xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:900913">
<gml:coordinates decimal="." cs="," ts=" ">-8233729.80333327,4979437.656487789</gml:coordinates>
</gml:Point>
</topp:the_geom>
<topp:title>PHINEAS</topp:title>
<topp:description>GAGE</topp:description>
<topp:img_url>./theme/img/marker.png</topp:img_url>
</topp:sitez>
</wfs:Insert>
</wfs:Transaction>
<?xml version="1.0" encoding="UTF-8"?><wfs:TransactionResponse version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://artois.openplans.org:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:topp="http://www.openplans.org/topp" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ows="http://www.opengis.net/ows" xmlns:wfs="http://www.opengis.net/wfs">
<wfs:TransactionSummary>
<wfs:totalInserted>1</wfs:totalInserted>
<wfs:totalUpdated>0</wfs:totalUpdated>
<wfs:totalDeleted>0</wfs:totalDeleted>
</wfs:TransactionSummary>
<wfs:TransactionResults/><wfs:InsertResults><wfs:Feature><ogc:FeatureId fid="sitez.34"/></wfs:Feature></wfs:InsertResults></wfs:TransactionResponse>
------
GetFeature - We get the feature back from Geoserver when we reload the features.
------
http://localhost/cgi-bin/proxy.cgi?url=http%3A//artois.openplans.org%3A8080/geoserver/wfs%3Ftypename%3Dtopp%253Asitez%26srsName%3DEPSG%253A900913%26SERVICE%3DWFS%26VERSION%3D1.0.0%26REQUEST%3DGetFeature%26SRS%3DEPSG%253A900913%26RAND%3D0.16072965583539944%26BBOX%3D-8246962.963852772%2C4974426.253821739%2C-8220018.911387072%2C4986981.035715331%2CEPSG%253A900913
<wfs:FeatureCollection xmlns="http://www.opengis.net/wfs" xmlns:wfs="http://www.opengis.net/wfs" xmlns:topp="http://www.openplans.org/topp" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openplans.org/topp http://artois.openplans.org:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=topp:sitez http://www.opengis.net/wfs http://artois.openplans.org:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd">
<gml:boundedBy><gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">-8236557.97337932,4977779.92843715 -8230280.58243252,4981735.5446502</gml:coordinates></gml:Box></gml:boundedBy>
<gml:featureMember><topp:sitez fid="sitez.2"><topp:title>New Feature</topp:title><topp:img_url>./theme/img/marker.png</topp:img_url><topp:description>asdfasdfasdfa
</topp:description><topp:the_geom><gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">-8232521.14282373,4981735.5446502</gml:coordinates></gml:Point></topp:the_geom></topp:sitez></gml:featureMember>
.
. (other features omitted for readability)
.
<gml:featureMember><topp:sitez fid="sitez.34"><topp:title>PHINEAS</topp:title><topp:img_url>./theme/img/marker.png</topp:img_url><topp:description>GAGE</topp:description>
<topp:the_geom>
<gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#900913">
<gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">
-8233729.80333327,4979437.65648779
</gml:coordinates>
</gml:Point>
</topp:the_geom>
</topp:sitez></gml:featureMember>
</wfs:FeatureCollection>
------
UPDATE - Now I try to update the feature with a new location.
------
<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" version="1.1.0" service="WFSV">
<wfs:Update typeName="topp:sitez">
<wfs:Property>
<wfs:Name>the_geom</wfs:Name>
<wfs:Value>
<gml:Point xmlns:gml="http://www.opengis.net/gml">
<gml:coordinates decimal="." cs="," ts=" ">
-8232277.499796111,4979428.101859257
</gml:coordinates>
</gml:Point>
</wfs:Value>
</wfs:Property>
<wfs:Property><wfs:Name>title</wfs:Name><wfs:Value>PHINEAS</wfs:Value></wfs:Property>
<wfs:Property><wfs:Name>img_url</wfs:Name><wfs:Value>./theme/img/marker.png</wfs:Value></wfs:Property>
<wfs:Property><wfs:Name>description</wfs:Name><wfs:Value>GAGE</wfs:Value></wfs:Property>
<ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">
<ogc:FeatureId fid="sitez.34"/>
</ogc:Filter>
</wfs:Update>
</wfs:Transaction>
<?xml version="1.0" encoding="UTF-8"?><wfs:TransactionResponse version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://artois.openplans.org:8080/geoserver/schemas/wfs/1.1.0/wfs.xsd" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:topp="http://www.openplans.org/topp" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ows="http://www.opengis.net/ows" xmlns:wfs="http://www.opengis.net/wfs">
<wfs:TransactionSummary>
<wfs:totalInserted>0</wfs:totalInserted>
<wfs:totalUpdated>1</wfs:totalUpdated>
<wfs:totalDeleted>0</wfs:totalDeleted>
</wfs:TransactionSummary>
<wfs:TransactionResults/><wfs:InsertResults><wfs:Feature><ogc:FeatureId fid="none"/></wfs:Feature></wfs:InsertResults></wfs:TransactionResponse>
XXXX NOTE XXXX
Before switiching to WFS version 1.1.0, I got a similar problem with updating, but with a request response that might be more informative. The response before was a FAILURE, with the message: ""Error computing lat/long envelope of the current feature. This is needed to update the changeset bbox."
------
GetFeature - Little Phineas is gone. This is the entire response of the GetFeature request. I can't find sitez.34 or Phineas or Gage anywhere, and neither can the OpenLayers XML parser.
------
http://localhost/cgi-bin/proxy.cgi?url=http%3A//artois.openplans.org%3A8080/geoserver/wfs%3Ftypename%3Dtopp%253Asitez%26srsName%3DEPSG%253A900913%26SERVICE%3DWFS%26VERSION%3D1.0.0%26REQUEST%3DGetFeature%26SRS%3DEPSG%253A900913%26RAND%3D0.8907769892435988%26BBOX%3D-8246962.963852772%2C4974426.253821739%2C-8220018.911387072%2C4986981.035715331%2CEPSG%253A900913
<wfs:FeatureCollection xmlns="http://www.opengis.net/wfs" xmlns:wfs="http://www.opengis.net/wfs" xmlns:topp="http://www.openplans.org/topp" xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openplans.org/topp http://artois.openplans.org:8080/geoserver/wfs?service=WFS&version=1.0.0&request=DescribeFeatureType&typeName=topp:sitez http://www.opengis.net/wfs http://artois.openplans.org:8080/geoserver/schemas/wfs/1.0.0/WFS-basic.xsd">
<gml:boundedBy><gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">-8236557.97337932,4977779.92843715 -8230280.58243252,4981735.5446502</gml:coordinates></gml:Box></gml:boundedBy>
<gml:featureMember><topp:sitez fid="sitez.2"><topp:title>New Feature</topp:title><topp:img_url>./theme/img/marker.png</topp:img_url><topp:description>asdfasdfasdfa
</topp:description><topp:the_geom><gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">-8232521.14282373,4981735.5446502</gml:coordinates></gml:Point></topp:the_geom></topp:sitez></gml:featureMember>
<gml:featureMember><topp:sitez fid="sitez.3"><topp:title>New Feature</topp:title><topp:img_url>http://tcoulter.openplans.org/openlayers/nymap/theme/img/marker-blue.png</topp:img_url><topp:description>
sadfadsasdfasd
</topp:description><topp:the_geom><gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">-8231508.35219913,4980655.87162587</gml:coordinates></gml:Point></topp:the_geom></topp:sitez></gml:featureMember>
<gml:featureMember><topp:sitez fid="sitez.5"><topp:title>New Feature</topp:title><topp:img_url>http://tcoulter.openplans.org/openlayers/nymap/theme/img/marker-green.png</topp:img_url><topp:description>asdfasdf
</topp:description><topp:the_geom><gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">-8230280.58243252,4979805.50968635</gml:coordinates></gml:Point></topp:the_geom></topp:sitez></gml:featureMember>
<gml:featureMember><topp:sitez fid="sitez.8"><topp:title>The newest</topp:title><topp:img_url>http://artois.openplans.org/annotation_demo/theme/img/marker-blue.png</topp:img_url><topp:description><b>Mighty Nice</b>
</topp:description><topp:the_geom><gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">-8231336.36888552,4981047.61139576</gml:coordinates></gml:Point></topp:the_geom></topp:sitez></gml:featureMember>
<gml:featureMember><topp:sitez fid="sitez.9"><topp:title>The newest</topp:title><topp:img_url>http://artois.openplans.org/annotation_demo/theme/img/marker-blue.png</topp:img_url><topp:description><b>Mighty Nice</b>
</topp:description><topp:the_geom><gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">-8231336.36888552,4981047.61139576</gml:coordinates></gml:Point></topp:the_geom></topp:sitez></gml:featureMember>
<gml:featureMember><topp:sitez fid="sitez.24"><topp:title>OO</topp:title><topp:img_url>http://localhost/ny-openlayers/theme/img/marker-gold.png</topp:img_url><topp:description>OO
</topp:description><topp:the_geom><gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">-8235984.69566728,4978615.95843387</gml:coordinates></gml:Point></topp:the_geom></topp:sitez></gml:featureMember>
<gml:featureMember><topp:sitez fid="sitez.29"><topp:title>A green feature</topp:title><topp:img_url>http://artois.openplans.org/annotation_demo/theme/img/marker-green.png</topp:img_url><topp:description><p>dude</p><p>yes&nbsp;</p></topp:description><topp:the_geom><gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">-8236557.97337932,4977779.92843715</gml:coordinates></gml:Point></topp:the_geom></topp:sitez></gml:featureMember>
<gml:featureMember><topp:sitez fid="sitez.30"><topp:title>A green feature</topp:title><topp:img_url>http://artois.openplans.org/annotation_demo/theme/img/marker-green.png</topp:img_url><topp:description><p>dude</p><p>yes&nbsp;</p></topp:description><topp:the_geom><gml:Point srsName="http://www.opengis.net/gml/srs/epsg.xml#900913"><gml:coordinates xmlns:gml="http://www.opengis.net/gml" decimal="." cs="," ts=" ">-8236557.97337932,4977779.92843715</gml:coordinates></gml:Point></topp:the_geom></topp:sitez></gml:featureMember></wfs:FeatureCollection>