Problem in openlayers wfs-t Update?

المشرف العام

Administrator
طاقم الإدارة
I'm using wfs-t in OpenLayers-3.6 according to here. I modify a feature and then send a wfs request as follow:

var properties = modifiedFeature.getProperties(); delete properties.boundedBy; newFeature = new ol.Feature(properties); newFeature.setId(features.getId()); var node = wfs.writeTransaction(null, [newFeature], null, { featureType: "Calk:point", //geoserver Layer Name featureNS: "http://itsme.calk.ir", // Edit Workspace Namespace URI srsName: "EPSG:4326" }); var s = new XMLSerializer(); var url = "http://localhost:8084/geoserver/wfs"; Ext.Ajax.request({ url: 'proxy.cgi?url=' + encodeURIComponent(url), method: 'POST', xmlData: s.serializeToString(node), headers: { 'Content-Type': 'text/xml' }, success: function(response_) { response = response_; } }); the created request is as follow:

the_geom 57.1067 30.2909 NAME KERMAN-kerman And the response of geoserver as follow:

0 1 0 But when I refresh the page. The modified point don't show. Where is the propblem?



أكثر...
 
أعلى