Dario Zarro wrote:
> hi,
> I use WfsGetFeature to retrieve features in gml format from geoserver, but
> when I select  a new feature from  map the old feature in featureCollection
> are removed. I want to append the new feature retieved at the old one in
> feature collection . Can I do it?
>   

Yes, although this is non-standard and a little extra coding will be 
required.
There are probably a couple of ways to achieve this, but the first the 
comes to my mind is to set up chaining of events.

Currently when you select a new feature (using the 
widget/WfsGetFeature.js tool) the WFS is queried, and a response is 
inserted in the transactionResponseModel="featureCollection" (defined in 
the examples/wfs-t/config.xml file).

What you need is to define a tool which receives a "modelUpdate" event 
from the featureCollection model, then copies the contents of 
featureCollection to the end of a second model, say featureCollection2.

-- 
Cameron Shorter
Geospatial Systems Architect
Tel: +61 (0)2 8570 5050
Mob: +61 (0)419 142 254

Think Globally, Fix Locally
Commercial Support for Geospatial Open Source Solutions
http://www.lisasoft.com/LISAsoft/SupportedProducts.html


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mapbuilder-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-users

Reply via email to