0
我想連接到Geoserver以通過WFS-T編輯一個圖層的幾個點。我試着從不同的例子開始,但是地圖並沒有顯示這些點。我有一個通過WMS暴露的openstreetmap基礎層。服務器日誌與我問的... 點呼叫這裏是我正在做電話:對Geoserver的WFS-T調用不可視化POI
var wfs_layer = new OpenLayers.Layer.Vector("Editable Features", {
strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
protocol: new OpenLayers.Protocol.Script({
url: "http://192.168.0.10:8080/geoserver/wfs",
params: {
service: "WFS",
version: "1.0.0",
srsName: "EPSG:3004",
request: "GetFeature",
typeName: "Incendi:inc2008",
outputFormat: "gml3"
},
filterToParams: function(filter, params) {
// example to demonstrate BBOX serialization
if (filter.type === OpenLayers.Filter.Spatial.BBOX) {
params.bbox = filter.value.toArray();
if (filter.projection) {
params.bbox.push(filter.projection.getCode());
}
}
return params;
}
})
});
在此先感謝您的答覆
你正在調試,看看你是否真的得到一組params? – 2012-01-24 17:50:59
現在的問題是這樣的:http://stackoverflow.com/questions/9292911/proxying-apache-with-8081-port-to-geoserver-8080-for-wfs。 – 2012-02-15 11:58:13