2

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?

asked Nov 27, 2012 at 14:33
4
  • How many files do you need to upload at any given day btw? Commented Nov 27, 2012 at 14:45
  • My process generates only one shp file a day, which I need to put on geoserver. Commented Nov 27, 2012 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? Commented Nov 27, 2012 at 14:49
  • I'll be overwriting the old one. Commented Nov 27, 2012 at 14:58

1 Answer 1

3

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 (https://docs.geoserver.org/2.0.0/user/extensions/rest/rest-config-api.html).

answered Nov 27, 2012 at 20:12

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.