On 17/08/10 19:34, Robert Hicks wrote: > Ok, so a bit of a follow up. I still cannot successfully create a > datastore / layer using the REST interface. Now I'm usuing Cygwin. > > This command fails complaining 'No datastore gv, roads' Isn't this > suppose to create the datastore? > > $ curl -u admin:ne1410s! -XPUT -H "Content-type: application/zip" > --data-binary @states.zip > "http://10.10.0.20:8001/geoserver/rest/workspaces/gv/datastores/roads/states.shp"
try: curl -u admin:ne1410s! -XPUT -H 'Content-type: application/zip' \ --data-binary @states.zip \ http://10.10.0.20:8001/geoserver/rest/workspaces/gv/datastores/roads/file.shp > Ok, fine, I switch the command to upload the shapefile to an existing > datastore: > > $ curl -u admin:ne1410s! -XPUT -H "Content-type: application/zip" > --data-binary @states.zip > "http://10.10.0.20:8001/geoserver/rest/workspaces/gv/localpostgis/states.shp" Are you trying to add a Shapefile to a PostGIS datastore ? This ain't going to work. Regards, -------------------- Luca Morandini www.lucamorandini.it -------------------- ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
