Hi,

 

Found out myself already. In the featureadded function I can set the
feature.state to OpenLayers.State.UPDATE and the feature.fid to the id
of my choice.

This way automagically an wfs:Update request is generated.

 

Just to let anybody who is interested know my solution.

Any feedback or alternate options are welcome as always.

 

Cheers Kris

 

From: users-boun...@openlayers.org [mailto:users-boun...@openlayers.org]
On Behalf Of Kris Geusebroek
Sent: Monday, March 23, 2009 12:39 PM
To: users@openlayers.org
Subject: [OpenLayers-Users] WFS: how to add a geometry to existing
databaserow

 

HI all,

 

I want to draw a geometry (with openlayers) and put that result in an
already existing databaserecord.

So I already have the fid, description, and other attributes but only
the geometry column is empty.

 

To me this sounds like an WFS:Update, but since there is no geometry
yet, the openlayers WFS layer doesn't get the data from the db.

 

Can I specify that my application retrieves a specific record from the
database to add a geometry to it?

 

Cheers

 

 

Kris Geusebroek

Consultant

 

 

Email: kgeusebr...@xebia.com <mailto:kgeusebr...@xebia.com> 

Tel: +31 (0)35 538 1921

Fax: +31 (0)35 538 1922

Mobile: +31 (0)6 30 697 223

http://www.xebia.com <http://www.xebia.fr/> 

 

Utrechtseweg 49

1213 TL Hilversum

The Netherlands 

 

Xebia Blog !   http://blog.xebia.com/ <http://blog.xebia.com/>    

Xebia Podcast!   http://podcast.xebia.com/ <http://podcast.xebia.com/>  

 

<<image001.jpg>>

_______________________________________________
Users mailing list
Users@openlayers.org
http://openlayers.org/mailman/listinfo/users

Reply via email to