Dear all
I want to publish programmatically a pyramid to geoserver. Once zipped the
file is about 11GB.
For that I am using httpclient in groovy using the following code:
method = new PutMethod("
http://myhost:8080/geoserver/rest/workspaces/pf/coveragestores/129images/file.imagepyramid?coverageName=129images
")
requestEntity = new FileRequestEntity(new File(localUri),
"application/zip")
method.setRequestEntity(requestEntity)
status = client.executeMethod(method)
this hangs. No message!
When I try using curl locally, I got this message:
curl -u admin:geoserver -v -XPUT -H "Content-type: application/zip"
--data-binary @/mnt/tmp/pyramids.zip
http://localhost:8080/geoserver/rest/workspaces/pf/coveragestores/129images/file.imagepyramid
curl: option --data-binary: out of memory
curl: try 'curl --help' or 'curl --manual' for more information
I was suspecting that curl was trying to load the 11GB file (which is a bad
idea) therefore I tried this:
curl -u admin:geoserver -v -XPUT -H "Content-type: application/zip"
--header "Transfer-Encoding: chunked" --data-binary @/mnt/tmp/pyramids.zip
http://localhost:8080/geoserver/rest/workspaces/pf/coveragestores/129images/file.imagepyramid
curl: option --data-binary: out of memory
curl: try 'curl --help' or 'curl --manual' for more information
but get the same error.
Is there something I should do differently ?
Best Regards
Guillaume
--
PGP KeyID: 2048R/EA31CFC9 subkeys.pgp.net
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users