Please keep the mails on the public mailing list, other people can help and
benefit from the discussion.

On Wed, May 23, 2012 at 7:24 PM, Smaran Harihar <[email protected]>wrote:

> Oh k so I need to do that everytime?
>
> The reason is I was actually trying to automate the process. So what I was
> trying to do is, I have a script that creates shapefile from the lat long
> you provide and then saves it in the given location, I want to save it
> directly in the PostGIS Database and I thought this way the shapefile will
> be automatically appear in the Geoserver from where OpenLayers will be able
> to render it onto the map.
>
> I wish to remove the manual labour of going to Geoserver and adding it. Is
> there somehow the shapefile is refreshed in the geoserver?
>

I see two cases.
Case 1: you are just adding more data to an existing and already published
table, in such case you don't have to
do anything, GeoServer will pick up the new rows in the table
Case 2: you are adding new tables. In this case you can remove the manual
labor by using rest-config to configure
automatically the new layers, actually, you can use it to directly upload
the shapefile in postgis and have it
configured at the same time.
See the docs here:
http://docs.geoserver.org/latest/en/user/restconfig/rest-config-api.html
There are some client libraries around that might help you use restconfig
without dealing directly with http
requests for java, python and ruby

Cheers
Andrea


-- 
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to