[Users] Saving WFS-T on server.

sandip jadhav sandip at spymek.com
Mon Aug 30 12:27:54 CEST 2010


Hello List,

    I want to store WFS-T (point,line,polygon) data on server.
With the help of following layer I am able to store polygon but not getting
how to store lines & points. Any help related with this is appreciated.

new OpenLayers.Layer.Vector("Editable Features", {
        strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
        projection: new OpenLayers.Projection("EPSG:4326"),
        protocol: new OpenLayers.Protocol.WFS({
            version: "1.1.0",
            srsName: "EPSG:4326",
            url: "http://demo.opengeo.org/geoserver/wfs",
            featureNS :  "http://opengeo.org",
            featureType: "restricted",
            geometryName: "the_geom",
            schema: "
http://demo.opengeo.org/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=og:restricted
"
        })
    });

Also I don't want to add multiple layers for it if its possible in single
layer.

1) How to add multiple featureTypes.
2) What are feature types for line & point.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.geoext.org/pipermail/users/attachments/20100830/8032086e/attachment.htm 


More information about the Users mailing list