[Users] Help... Get WFS Feature
Saha Aswina
sahaaswina at yahoo.com
Sat Dec 4 20:00:01 CET 2010
Dear everybody,
I am new to using GeoExt and OpenLayers. I want to get list of feature in my layer, I am using example from http://workshops.opengeo.org/geoext/wfs/grid.html But it doesn't work to me to get from my MapServer WFS. This is my code:
var store = new GeoExt.data.FeatureStore({
fields: [
{name: "nama_kecam", type: "string"}
],
proxy: new GeoExt.data.ProtocolProxy({
protocol: new OpenLayers.Protocol.WFS({
url: "/cgi-bin/mapserv?MAP=/home/dharmawa/www/map_file/fix.map",
version: "1.1.0",
featureType: "kecamatan",
featureNS: "http://medford.opengeo.org",
srsName: "EPSG:32749"
})
}),
autoLoad: true
});
var gridPanel = new Ext.grid.GridPanel({
title: "Feature Table",
region: "center",
viewConfig: {forceFit: true},
store: store,
cm: new Ext.grid.ColumnModel({
defaults: {
sortable: true
},
columns: [
{header: "Name", dataIndex: "nama_kecam"}
]
})
});
but the grid panel is empty, whats wrong?? No error displayed in firebug.
the page: http://www.dharmawan.web.id/map2.php
More information about the Users
mailing list