[Featureserver] OpenLayers+FeatureServer full transactional
example
Eric Lemoine
eric.lemoine at camptocamp.com
Sat Jul 25 08:14:35 EDT 2009
Hi Peter
It's when you want filtered queries that Protocol.HTTP isn't
appropiate. The protocol class we have in MapFish
(mapfish.Protocol.MapFish) provides better FS support (MapFish and FS
share a similar protocol).
Cheers,
On Saturday, July 25, 2009, Peter Robins <fs at peterrobins.co.uk> wrote:
> afaics, OL http protocol will support crud with FS without much problem. 'C'
> and 'R' work as is; 'U' and 'D' require '/fid' at end of url string. At
> first, I thought I would add this by supplying a function to the protocol,
> but it struck me that all I have to do is add a url property to each feature
> as it's read in, which will then be used on any update/delete.
>
> So I have a featureadded listener which calls:
>
> featureAdded: function (e) {
> e.feature.url = baseUrl+'/'+e.feature.fid;
> }
>
> I'm using this with fixed and save strategies, and it all seems to work
> well. :-)
> _______________________________________________
> Featureserver mailing list
> Featureserver at openlayers.org
> http://featureserver.org/mailman/listinfo/featureserver
>
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Featureserver
mailing list