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.

In the sequence of this:

How to upload a shapefile to geoserver using cURL?

which was properly solved, I now need to be able to replace the existing file, cause my process is to be repeated every day.

Any clues?

Thanks

share|improve this question
    
How many files do you need to upload at any given day btw? –  R.K. Nov 27 '12 at 14:45
    
My process generates only one shp file a day, which I need to put on geoserver. –  vascobnunes Nov 27 '12 at 14:46
    
The same shapefile? I mean, you'll be overwriting the old one or will you be generating new ones with different file names? –  R.K. Nov 27 '12 at 14:49
    
I'll be overwriting the old one. –  vascobnunes Nov 27 '12 at 14:58
add comment

1 Answer 1

While there is no 'replace' operation, I guess you can first delete the file and after that uploading the new one having the same name the old had.

In GeoServer's REST configuration API there are DELETE and PUT operations for data stores (http://goo.gl/8Fgej).

share|improve this answer
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.