David or other RESTful API enthusiasts,
I’m trying to DELETE a shapfile which I’ve successfully PUT with:
curl -Tbundle.zip http://localhost:8080/geoserver/rest/folders/foo/file.shp
Since delete seems to be implemented:
(http://geoserver.org/display/GEOSDOC/RESTful+Configuration+API)
I was hoping I could do an HTTP delete at the same URL but that doesn’t work.
Looking at DataStoreFileResource: ( http://fisheye.codehaus.org/browse/geoserver/trunk/geoserver/community/RESTConfig/src/main/java/org/geoserver/restconfig/DataStoreFileResource.java?r=8750)
It doesn’t have an allowDelete() method.
Is it possible to delete a shapefile via the RESTful API?
Thanks,
Sam
I’m trying to do a RESTful DELETE of a shapefile which I’ve successfully PUT with:
curl -Tbundle.zip http://localhost:8080/geoserver/rest/folders/foo/file.shp
Since delete seems to be implemented:
(http://geoserver.org/display/GEOSDOC/RESTful+Configuration+API)
I was hoping I could do an HTTP delete at the same URL but that doesn’t work.
Looking at DataStoreFileResource: ( http://fisheye.codehaus.org/browse/geoserver/trunk/geoserver/community/RESTConfig/src/main/java/org/geoserver/restconfig/DataStoreFileResource.java?r=8750)
It doesn’t have an allowDelete() method.
Is it possible to delete a shapefile via the RESTful API?
Thanks,
Sam
Hi Sam,
I think this is a failing of the documentation rather than the code. Deleting shapefiles is not implemented; however, you can hide a shapefile by DELETE'ing its configuration. Something like:
curl -XDELETE http://localhost:8080/geoserver/rest/folders/foo
This leaves the shapefile on disk, but removes it from the GeoServer configuration so that it isn't served. I don't think excluding DELETE was an explicit design decision, so adding that in should be fine. I'll take a look sometime soon, but if you want to try and put together a patch I'm happy to advise ('soon' may be relative in this particular case).
Hope this helps,
David Winslow
Sam Brodkin wrote:
I'm trying to do a RESTful DELETE of a shapefile which I've successfully PUT with:
curl -Tbundle.zip http://localhost:8080/geoserver/rest/folders/foo/file.shp
Since delete seems to be implemented:
(http://geoserver.org/display/GEOSDOC/RESTful+Configuration+API)
I was hoping I could do an HTTP delete at the same URL but that doesn't work.
Looking at DataStoreFileResource: ( http://fisheye.codehaus.org/browse/geoserver/trunk/geoserver/community/RESTConfig/src/main/java/org/geoserver/restconfig/DataStoreFileResource.java?r=8750)
It doesn't have an allowDelete() method.
Is it possible to delete a shapefile via the RESTful API?
Thanks,
Sam
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel