Here is the code block (the layers are stored in Oracle database):
var saveStrategy = new OpenLayers.Strategy.Save();
var adresspt_wfs = new OpenLayers.Layer.Vector("Address points WFS", {
strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
protocol: new OpenLayers.Protocol.WFS({
url: "http://localhost:8080/geoserver/wfs",
featureType: "RAILWAY",
featureNS: "http://localhost:8080/MIA",
srsName: "EPSG:900913",
geometryName: "SDO_GEOMETRY"
})
});
map.addLayer(adresspt_wfs);
Please correct me if I'm wrong: It adds new vector layer "Address points WFS", on which we can edit/delete/add some vector objects. After save all that will be saved RAILWAY
table as a geometry objects in SDO_GEOMETRY
column using WFS service, that is part of GeoServer (in my case I use GeoServer)... Is that right?
Also, I don't quite understand what is "featureNS" and where to find the proper one for my layer.
If I open: http://localhost:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=MIA:RAILWAY in address bar, the browser hangs on opening that schema...
MIA is my default workspace, its URI is http://localhost:8080/MIA
I've tried many configurations for initializing the WFS protocol, but can't save drawn geometry into database... Please show me what am I doing wrong during this initialization.
Please consider that I'm completely new to "geo" programming.