| I have to create a WFSTransaction xml and send it to the server with geotools. For the version v1.1.0 The update part for a geometry update it's generated in V1.0.0 so it fails when sending it to the server. When changing the xml attribute version to V1.0.0 it works and the geometry will be updated. {{Encoder encoder = new Encoder(new org.geotools.wfs.v1_1.WFSConfiguration()); encoder.setOmitXMLDeclaration(true); TransactionType wfsTransaction = createWFSTransactionType(...); xml = encoder.encodeAsString(wfsTransaction, org.geotools.wfs.v1_1.WFS.Transaction);}} The generated xml for an update looks like this: {{<wfs:Transaction xmlns:xs="http://www.w3.org/2001/XMLSchema" xs:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd" xmlns:wfs="http://www.opengis.net/wfs" xmlns:gml="http://www.opengis.net/gml" xmlns:ogc="http://www.opengis.net/ogc" xmlns:ows="http://www.opengis.net/ows" xmlns:xlink="http://www.w3.org/1999/xlink" releaseAction="ALL" service="WFS" version="1.1.0"> <wfs:Update inputFormat="x-application/gml:3" typeName="gvcc_edit:EDIT_POLYGON_LAYER_VW"> <wfs:Property> <wfs:Name>PGLY_ID</wfs:Name> <wfs:Value>502</wfs:Value> </wfs:Property> <wfs:Property> <wfs:Name>PGLY_SHAPE</wfs:Name> <wfs:Value> <gml:Polygon> <gml:outerBoundaryIs> <gml:LinearRing> <gml:coordinates>676550.7620826482,5159141.232898362 678361.5560066677,5163812.937881698 675483.8814531263,5165039.986284744 676136.2073512903,5169725.3516723225 665311.6175187703,5169523.40860526 668600.0128911667,5159071.715106821 676550.7620826482,5159141.232898362</gml:coordinates> </gml:LinearRing> </gml:outerBoundaryIs> </gml:Polygon> </wfs:Value> </wfs:Property> <ogc:Filter> <ogc:FeatureId fid="EDIT_POLYGON_LAYER_VW.502"/> </ogc:Filter> </wfs:Update> </wfs:Transaction>}} |