Hi,

Here's a working OpenLayers+FeatureServer demo :
http://dev4.mapgears.com/bdga-fs/

It uses the MapFish protocol since MapFish server can be "talked to" 
pretty much the same way as FeatureServer.

Hope this helps,

Alexandre

goliah wrote:
> Dear list,
>
> I'm trying to use OpenLayers and Feature Server.
> What i'd like to do is use WFS-T protocol to make a simple feature editor.
>
> I've set up Featureserver (beautiful software) easily under CGI, and tried
> to setup something like the
> WFS-Transactional example:
> http://www.openlayers.org/dev/examples/wfs-protocol-transactions.html
> http://www.openlayers.org/dev/examples/wfs-protocol-transactions.html 
>
> I've had some problems using this example on my server, in particular with
> WFS protocol, that I had to change to HTTP Protocol for making things work
>
> I ended up with this code:
>
> http://www.maurob.org/fttest/index.html
>
> on line 113 you can find the wfs layer declaration:
>
> //code here
>
> wfs = new OpenLayers.Layer.Vector("Scribble", {
>                                       protocol: new OpenLayers.Protocol.HTTP({
>                                               url: 
> "http://www.maurob.org/featureserver/featureserver.cgi/scribble";,
>                                               format: new 
> OpenLayers.Format.GeoJSON()
>                                               }),
>                                       strategies: [
>                                               new OpenLayers.Strategy.Fixed(),
>                                               saveStrategy
>                                       ],
>                                       projection:new 
> OpenLayers.Projection("EPSG:4326")
>                               });
>
>
> //end code
>
>
> This because, if using OpenLayers.Protocol.WFS I couldn't set the right
> format to talk to featureserver.
>
> It is quite working now (can add and modify features),
> Anyway, I still cannot delete feature (seems like DELETE request is not
> understood by Featureserver)
>
> Do you think mine is a reasonable setup of the wfs layer declaration in
> openlayers (protocol/format) ?
> which is right way to handle it?
>
> Thanks a lot for any idea.
> Mauro
>
>
>
>
>
>
>
>
>
>   


-- 
Alexandre Dubé
Mapgears
www.mapgears.com

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to