On Wed, Dec 7, 2011 at 3:49 PM, Alvey,David (Chief Executives) <
[email protected]> wrote:

>  I am using geoserver in a windows environment and am in a position that
> I have to use Shapefiles to present map content.
>
>
>
> My question is what is the easiest way of updating a shapefile? I have
> tried overwriting the original files to no effect. I really need this to be
> as easy as possible as I do not want to manually re import the data and add
> it to all of my layer groups and define projections and styles.
>

On Windows things are tricky, as the operation system will keep the file
locked for as long
as GeoSever is using it (on Linux there is no such problem afaik).

I never tried it, but the following might work:
- to into the config UI, get into the store configuration, untick the
"enabled" flag and save
- replace the shapefile
- go back into the config UI and enable the store again

If you are updating many shapefiles that might get annoying, you might want
to
write a script leveraging the REST configuration API
(http://docs.geoserver.org/latest/en/user/restconfig/rest-config-api.html)
to automate the process.

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

-------------------------------------------------------
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of 
discussion for anyone considering optimizing the pricing and packaging model 
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to