Ciao Guillame.
is it a requirement to upload a 11gb to the server?
The best option would be to place the file somewhere where it is
reachable and then use the "external" method
which does not perform an upload.

Check the REST docs for this.

Regards,
Simone Giannecchini
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information.
==

Ing. Simone Giannecchini
@simogeo
Founder/Director

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39  333 8128928

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------


On Tue, Nov 19, 2013 at 5:00 PM, tog <[email protected]> wrote:
> 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
>

------------------------------------------------------------------------------
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

Reply via email to