[HELP][Geoserver2][openlayers] how to view/edit layers with WFS protocol?

View: New views
2 Messages — Rating Filter:   Alert me  

[HELP][Geoserver2][openlayers] how to view/edit layers with WFS protocol?

by nuke79 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi to all,
Starting by openlayers example wfs-protocol-transactions
I'm trying to use the WFS protocol to view and modify the contents of a layer, but without success.

To make things easier I'm trying with the layer "tiger: poly_landmarks"
i can view in WMS but not in WFS

here is my code for creating  WFS editable layer:

wfs = new OpenLayers.Layer.Vector("Editable Features", {
 strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
 projection: new OpenLayers.Projection("EPSG:4326"),
 protocol: new OpenLayers.Protocol.WFS.v1_1_0({
   url: "http://localhost:8080/geoserver/wfs",
   featureType: "poly_landmarks",
   geometryName: "the_geom",
   schema: "http://localhost:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=tiger:poly_landmarks"
})
});

i've tried several variations on this code but i can't get it visible (or save data)

Can anyone help me to get this working ?  
how featureNS and featurePrefix must be used (if they has to be used..) ?

ps: sorry for my english

Re: [HELP][Geoserver2][openlayers] how to view/edit layers with WFS protocol?

by Roald de Wit-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

This is more a question for the OpenLayers users list. They might help
you out.

Regards, Roald

nuke79 wrote:

> Hi to all,
> Starting by openlayers example
> http://openlayers.org/dev/examples/wfs-protocol-transactions.html
> wfs-protocol-transactions
> I'm trying to use the WFS protocol to view and modify the contents of a
> layer, but without success.
>
> To make things easier I'm trying with the layer "tiger: poly_landmarks"
> i can view in WMS but not in WFS
>
> here is my code for creating  WFS editable layer:
>
> wfs = new OpenLayers.Layer.Vector("Editable Features", {
>  strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],
>  projection: new OpenLayers.Projection("EPSG:4326"),
>  protocol: new OpenLayers.Protocol.WFS.v1_1_0({
>    url: "http://localhost:8080/geoserver/wfs",
>    featureType: "poly_landmarks",
>    geometryName: "the_geom",
>    schema:
> "http://localhost:8080/geoserver/wfs/DescribeFeatureType?version=1.1.0&typename=tiger:poly_landmarks"
> })
> });
>
> i've tried several variations on this code but i can't get it visible (or
> save data)
>
> Can anyone help me to get this working ?  
> how featureNS and featurePrefix must be used (if they has to be used..) ?
>
> ps: sorry for my english
>  


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geoserver-users mailing list
Geoserver-users@...
https://lists.sourceforge.net/lists/listinfo/geoserver-users