ogc wfs Transaction 修改

//ogc wfs Transaction 修改
function update(xyValue,xyId){
var u=' +'xmlns:topp ="http://www.openplans.org/topp" '
+'xmlns:ogc ="http://www.opengis.net/ogc" '
+'xmlns:wfs ="http://www.opengis.net/wfs" '
+'xmlns:gml ="http://www.opengis.net/gml" '
+'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"> '
+' '
+' '
+'gsnewmap:STORE '
+''+xyValue+''
+'
'
+' '
+' '
+'
'
+'
'
+'
';
alert("---"+u);
OpenLayers.Request.issue(
{
method: "POST",
url: "http://127.0.0.1:8181/geoserver/wfs",
data: u,
success: hxy
//proxy:""
});
}
function hxy(response){
gmlStr = response.responseText;
document.getElementById('wfsBack').innerHTML=gmlStr;
alert(gmlStr);
}

你可能感兴趣的:(ogc wfs Transaction 修改)