Hi guys,
I try to UPDATE an existing datastore via a batch:
- first I copy the SHP files to the geoserver datastore folder
- then I delete the QIX file 
- at last I run the REST command
Something in my REST command must be wrong - the command is not updating the
store - but it seems to create a new one - also overwriting the existing
layer:

=== before update =====
Workspace: isd-gnd
Datastore: gnd-kanten
Layer: isd-gnd:gnd-kanten
=======================
curl -u admin:admin_pw 
     -v 
     -XPUT 
     -H "Content-type: text/plain" 
     -d "file://D:\GeoServer\data\data\Tst\GND-Kanten.shp" 
    
"http://localhost:8080/geoserver/rest/workspaces/isd-gnd/datastores/gnd-kanten/external.shp?update=overwrite

=> HTTP response: 201 <== should be 405 ... ????

=== after update =====
Workspace: isd-gnd
Datastore: gnd-kanten
Layer      : isd-gnd:GND-Kanten   <= !!! layer 'gnd-kanten' has been
replaced by 'GND-Kanten' !!!
===================

Any ideas??

Cheers
Wolfram

--
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/REST-question-update-datastore-tp7066027p7066027.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to