1

I need to modofy attributes of features appeared on a map using OL3. The features live in a postigs db and they are serverd through Geoserver. What I want is to modify some of the non spatial attributes of each feature.

What I did in order to accomplish this is to create a menu in which the user selects the values he wants to modify for a specific feature and then save the changes with a button. On button click I would send an ajax request (jquery/php) in which I would update the table values based on the fid of the table.

If I understand correctly using WFS-T is a more appropriate way. Is that right? Can I change non spatial attribute values with WFS-T? If yes, is there an example using OL3?

asked Mar 13, 2016 at 22:50

1 Answer 1

2

Yes WFS-T is more appropriate and can be used to edit non spatial attributes as well. Look at: http://openlayers.org/en/v3.14.2/apidoc/ol.format.WFS.html#writeTransaction on how to generate the payload.

answered Mar 14, 2016 at 7:51

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.