[OpenLayers-Dev] Development regarding WFS layer/protocol

Tim Schaub tschaub at opengeo.org
Tue Sep 16 20:10:12 EDT 2008


Hey-

Björn Harrtell wrote:
> Hi devs,
> 
> I'm coding an application that uses OL vector editing and WFS 
> transactions quite heavily.
> 
> I use a temporary OpenLayers.Layer.Vector for editing, moving stuff to a 
> OpenLayers.Layer.WFS as the user makes edits. This is a bit clumsy and 
> complicated but works. The reason why I'm doing this is because 
> OpenLayers.Layer.WFS only supports GET and is also loading features on 
> demand (hmm is this correct?) which doesn't fit my needs. Note that I do 
> not add the OpenLayers.Layer.WFS to a map, I only use create/commit the 
> WFS transactions.
> 
> I would like to use something like a static/manually triggered WFS 
> (supporting POST and filtering) source to an OpenLayers.Layer.Vector 
> that syncs changes to the WFS source which then can be commited 
> programmatically.
> 
> Is this sort of what OpenLayers.Protocol.WFS (which I think is beeing 
> worked on?) is supposed to be used for? Or would it be sensible to make 
> something more of OpenLayers.Layer.WFS instead?

Yes, this is exactly the job for a WFS protocol.  As Eric mentions, the 
work is mostly in the vector-behavior sandbox.  I'll make an effort to 
update that and to get a patch ready for the trunk.

My hope is to get the WFS protocol in the trunk before the end of next 
week.  Any help you can contribute would be appreciated.

Watch the WFS protocol ticket [1] for updates from me, and leave any 
comments/patches there that you put together.

Tim

[1] http://trac.openlayers.org/ticket/1648


> 
> Either way, I'm interested in (trying) to help out if this seems like 
> something you would like to support in OL, and can probably do it as a 
> part of the current project as it would simplify things for me I think.
> 
> Regards,
> 
> Björn Harrtell
> GIS Consultant
> SWECO Position AB 
> <http://www.swecogroup.com/en/Sweco-group/Services/Geographic-IT/>
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Dev mailing list
> Dev at openlayers.org
> http://openlayers.org/mailman/listinfo/dev


-- 
Tim Schaub
OpenGeo - http://opengeo.org
Expert service straight from the developers.



More information about the Dev mailing list