Can you help me? I have a very difficult problem when doing project...

I have used OpenLayers and GeoServer. When I click in the map to get feature info, I receive the info for the feature and region clicked.

Example: RegionName:Hanoi,Population:500...

I want to know how I can change the attribute value "RegionName" from Hanoi to HaThanh and save it in Geoserver. After I load the map I wish to receive the changed information.

Example: RegionName:HaThanh,Population:500...

Help me! Thanks.


beside @dariapra's answer, there is really good documentation here about OpenLayers WFS-T Using a GeoServer Hosted PostGIS Layer which you should check out.

enter image description here

i hope it helps you...

| improve this answer | |
  • website doesnt work, I kinda have the same problem now – Luffydude Jun 15 '16 at 10:13

A technology that can help you with this issue is transactional WFS (WFS-T). In the case of GeoServer, WFS-T requires the use of a PostGIS database as data source. On the client side, the following OpenLayers example can be helpful: WFS Transaction Example.

| improve this answer | |
  • Link broken here. – Vidar Mar 19 '16 at 11:19

I guess you might want to save the data to some data source, either a spatial database or some files that can store spatial data(shp, gml, etc.). Geoserver is just a software server used for publishing geospatial data from some spatial data source, but not a place to store the data. If so, then you might want to check out openlayers Requesting Remote Data. You'll also need to do some server-side programming to save the submitted data from the client(browser) to database. Then next time you retrieve maps from Geoserver, it will get updated data from database.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.