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.

I want to publish a layer automatically in geoserver. Each layer is a database table in postgis db. I can see the table in geoserver store(already contains some layer tables of that particular db) as soon as I create it in postgis but publishing it should be done manually. Can I find any php script for just publishing the layer....

Does "Adding a postgis table" section in http://docs.geoserver.org/2.0.x/en/user/extensions/rest/rest-config-examples-curl.html also publishes the layer????

share|improve this question
add comment

1 Answer 1

This re-publishes a Layer when the user adds (or deletes) a polygon - it is using WFS-T to add the data to the database from the browser.

Protocol Transactions can be found here:

http://openlayers.org/dev/examples/wfs-protocol-transactions.js

enter image description here

http://www.gistutor.com/openlayers/22-advanced-openlayers-tutorials/47-openlayers-wfs-t-using-a-geoserver-hosted-postgis-layer.html

share|improve this answer
    
does that mean there is no rest api script for publishing the layers??? Then whats the use of adding them to geoserver??? –  Vikash Talanki Jun 14 '11 at 21:49
2  
When you POST the feature type yes a layer is created as well. If you are not able to access it then another error is occurring. –  jdeolive Jun 15 '11 at 14:16
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.