Hi,
Following the REST API document[1] , I attempted upload a raster file by using the command like below
after a workspace named zzpexample was created :
curl -u admin:geoserver -v -XPUT -H ‘Content-type: image/tiff’ *
–data-binary @/home/zzpwelkin/desktop/cliped_hang-gz_small_meahshift_labeled.tif *
http://localhost:8080/geoserver/rest/workspaces/zzpexample/coveragestores/cliped_labeled_image/classfield.geotiff
but the error ‘No such coverage store: zzpexample,cliped_labeled_image’ was raised.Then I first create an
coverageStore by using REST API[2] and it’s successful with the status code 201and location information “Location: http://localhost:8080/geoserver/rest/workspaces/zzpexample/coveragestores/cliped_labeled_image” , but at the web manage interface this coveragestore was belong the default workspace and exception would raised when I clicked it, so how should I upload an raster by Rest API ?
Thanks
coveragestores.html (19.3 KB)