[Geoserver-users] Automate publishing

Hi Guys,

I have created a PostGIS store in Geoserver and it is able to connect and display the layers that I am adding to the database. The only problem is that everytime I add a shapefile in PostGIS, I have to manually publish it in the Geoserver. Also, I have to click on the ‘Compute from native bounds’, under the Bounding Boxes option, before publishing.

Previously I tried cURL command and in that case the shapefile was published automatically but due to large shapefiles, everyone pointed me to using PostGIS and then creating store on the Geoserver, to improve performance.

Any idea how I can automate this?


Thanks & Regards
Smaran Harihar

Got it guys, really simple.

curl -u admin:geoserver -v -XPOST -H ‘Content-type: text/xml’ -d ‘tablename’ http://localhost:8080/geoserver/rest/workspaces/acme/datastores/table/featuretypes

Thanks,
Smaran

On Sat, Nov 24, 2012 at 6:11 PM, Smaran Harihar <smaran.harihar@anonymised.com> wrote:

Hi Guys,

I have created a PostGIS store in Geoserver and it is able to connect and display the layers that I am adding to the database. The only problem is that everytime I add a shapefile in PostGIS, I have to manually publish it in the Geoserver. Also, I have to click on the ‘Compute from native bounds’, under the Bounding Boxes option, before publishing.

Previously I tried cURL command and in that case the shapefile was published automatically but due to large shapefiles, everyone pointed me to using PostGIS and then creating store on the Geoserver, to improve performance.

Any idea how I can automate this?


Thanks & Regards
Smaran Harihar


Thanks & Regards
Smaran Harihar