//ogc wfs Transaction删除
function deleteCyId(hxyStr,hxyValue){
var u='<wfs:Transaction service ="WFS" version ="1.0.0" '
+'xmlns:cdf ="http://www.opengis.net/cite/data" '
+'xmlns:ogc ="http://www.opengis.net/ogc" '
+'xmlns:wfs ="http://www.opengis.net/wfs" '
+'xmlns:topp ="http://www.openplans.org/topp"> '
+'<wfs:Delete typeName="gsnewmap:a89-72_8-1shangpuceng_rectangle">'
+'<ogc:Filter>'
+'<ogc:PropertyIsEqualTo> '
+'<ogc:PropertyName>'+hxyStr+'</ogc:PropertyName >'
+'<ogc:Literal>'+hxyValue+'</ogc:Literal> ' +'</ogc:PropertyIsEqualTo> '
+'</ogc:Filter>'
+'</wfs:Delete>'
+'</wfs:Transaction>';
//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);
}
function deleteCyId(hxyStr,hxyValue){
var u='<wfs:Transaction service ="WFS" version ="1.0.0" '
+'xmlns:cdf ="http://www.opengis.net/cite/data" '
+'xmlns:ogc ="http://www.opengis.net/ogc" '
+'xmlns:wfs ="http://www.opengis.net/wfs" '
+'xmlns:topp ="http://www.openplans.org/topp"> '
+'<wfs:Delete typeName="gsnewmap:a89-72_8-1shangpuceng_rectangle">'
+'<ogc:Filter>'
+'<ogc:PropertyIsEqualTo> '
+'<ogc:PropertyName>'+hxyStr+'</ogc:PropertyName >'
+'<ogc:Literal>'+hxyValue+'</ogc:Literal> ' +'</ogc:PropertyIsEqualTo> '
+'</ogc:Filter>'
+'</wfs:Delete>'
+'</wfs:Transaction>';
//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);
}