Thanks Jonathan. I installed the plugin geoserver-2.4-SNAPSHOT-spatialite-plugin.zip, spatialite-libs-win-x86.zip
GeoServer 2.3.0 Use the same command: curl -u admin:geoserver -v -XPUT -H "Content-type: spatialite" --data-binary @r2.sqlite http://localhost:8080/geoserver/rest/workspaces/acme/datastores/s/file.spatialite I received this: * Adding handle: conn: 0xb8ac78 * Adding handle: send: 0 * Adding handle: recv: 0 * Curl_addHandleToPipeline: length: 1 * - Conn 0 (0xb8ac78) send_pipe: 1, recv_pipe: 0 * About to connect() to localhost port 8080 (#0) * Trying 127.0.0.1... * Connected to localhost (127.0.0.1) port 8080 (#0) * Server auth using Basic with user 'admin' > PUT /geoserver/rest/workspaces/acme/datastores/s/file.spatialite HTTP/1.1 > Authorization: Basic YWRtaW46Z2Vvc2VydmVy > User-Agent: curl/7.31.0 > Host: localhost:8080 > Accept: */* > Content-type: spatialite > Content-Length: 3970048 > Expect: 100-continue > < HTTP/1.1 100 Continue < HTTP/1.1 202 Accepted < Date: Mon, 01 Jul 2013 07:56:02 GMT * Server Noelios-Restlet-Engine/1.0..8 is not blacklisted < Server: Noelios-Restlet-Engine/1.0..8 < Transfer-Encoding: chunked < * Connection #0 to host localhost left intact GS log: 2013-07-01 INFO [catalog.rest] - PUT file, mimetype: spatialite 2013-07-01 INFO [catalog.rest] - Auto-configuring datastore: s Spatial datastore s is created in GeoServer with workspace name, datastore name. Other fields are empty. No layer is created. Have anyone succeeded with the command to create a layer in GS? Thanks. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Upload-spatialite-to-GeoServer-using-REST-API-tp5062528p5063188.html Sent from the GeoServer - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
