Hi everyone!
I’m currently working on a project in which we create new layers from java’s web application. We’re trying to accomplish this by adding tables (which would represent new layers) on to the postgres database, and then publishing them from geoserver. I’d like to know if it would be possible to publish those layers from the application itself without making use of the geoserver administration console. Is there an API to do this?
Thanks in advance!
SC
Thank you Carlo ! The information you provided was really helpful !
Cheers,
SC
···
2013/12/11 carlo cancellieri <carlo.cancellieri@anonymised.com>
Ciao Sofia,
I’m currently working on a project in which we create new layers from java’s web application. We’re trying to accomplish this by adding tables (which would represent new layers) on to the postgres database, and then publishing them from geoserver. I’d like to know if it would be possible to publish those layers from the application itself without making use of the geoserver administration console. Is there an API to do this?
you could use the geoserver REST interface to configure the geoserver catalog and settings.
If you don’t want to implement your own library interface you could try to take a look to geoserver manager:
http://docs.geoserver.org/stable/en/user/rest/examples/java.html
Other languages:
http://docs.geoserver.org/stable/en/user/rest/examples/index.html
Cheers,
Carlo
–
Dott. Carlo Cancellieri
@cancellieric
Software Engineer
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
mobile: +39 3371094494
fax: +39 0584 1660272
http://www.geo-solutions.it
http://twitter.com/geosolutions_it