Il 02/16/2015 10:46 PM, emmexx scrisse: > I've got a serious problem that prevents me from updating the geometry > of features.
I made another test using GeoExplorer, the boundless web app include in their suite. If I use it instead of qgis or kosmo, I can update the geometry. I compared the calls of kosmo and geoexplorer and they are a little bit different. I don't know if that is the problem or if there's a difference in the protocol used or the information sent to geoserver. The geometry type of the layer is MultiLineString. Geoexplorer posts the following to geoserver (firebug): <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:Update typeName="feature:bi18" xmlns:feature="http://example.org"> <wfs:Property> <wfs:Name>geom</wfs:Name> <wfs:Value> <gml:MultiCurve xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:900913"> <gml:curveMember> <gml:LineString> <gml:posList>1245136.542435711 5292736.678338301 1245079.6032993614 5292715.576567775</gml:posList> </gml:LineString> </gml:curveMember> </gml:MultiCurve> </wfs:Value> </wfs:Property> <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"> <ogc:FeatureId fid="bi18.1477"/> </ogc:Filter> </wfs:Update> </wfs:Transaction> Kosmo log: <wfs:Transaction version="1.0.0" service="WFS" xmlns:bicitalia="http://example.org" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-transaction.xsd http://example.com.com:8080/geoserver/wfs?request=DescribeFeatureType&SERVICE=WFS&REQUEST=DescribeFeatureType&version=1.0.0&TYPENAME=example:bi18&NAMESPACE=xmlns(example=http://example.org) http://example.org"> <wfs:Update typeName="example:bi18"> <wfs:Property> <wfs:Name>example:geom</wfs:Name> <wfs:Value> <gml:MultiLineString xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:4326"> <gml:lineStringMember> <gml:LineString xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:4326"> <gml:coordinates>11.362,42.982 11.362,42.982 11.361,42.981 11.361,42.982 11.361,42.982 11.36,42.981 11.36,42.981 11.359,42.981 </gml:coordinates> </gml:LineString> </gml:lineStringMember> </gml:MultiLineString> </wfs:Value> </wfs:Property> <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc"> <ogc:FeatureId fid="bi18.1477"/> </ogc:Filter> </wfs:Update> </wfs:Transaction> Bye maxx ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users