Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

share|improve this question
add comment

3 Answers

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.

share|improve this answer
add comment

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...

share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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