Hi Nicola,

thank you very much for your response. I managed to harvest a file as a zipfile 
by using the "file.imagemosaic" extension. Great!

Just a comment for all who also want to harvest files to a GeoServer located on 
another machine: It is necessary to use the @-sign within the curl command.
curl -v -u admin:geoserver -XPOST -H "Content-type:application/zip" 
--data-binary @///path/to/the/zipfile/update.zip 
http://<IPaddress>/geoserver/rest/workspaces/myworkspace/coveragestores/testmosaic/file.imagemosaic

Otherwise the zipfile is not fully uploaded which results in an error.

Regards,
Sabine
 

Gesendet: Mittwoch, 21. Januar 2015 um 14:00 Uhr
Von: "Nicola Lagomarsini" <nicola.lagomars...@geo-solutions.it>
An: "Sabine Ohlendorf" <sabine.ohlend...@gmx.de>
Cc: "geoserver-users@lists.sourceforge.net" 
<geoserver-users@lists.sourceforge.net>
Betreff: Re: [Geoserver-users] geoserver REST API imagemosaic

Hi Sabine,
 
sorry for the delay. If you want to harvest a local file from to a GeoServer 
located into another machine you can use two methods:

Mount a storage pointing to your local machine on the GeoServer machine and 
harvest the file using the "external.imagemosaic" extension.
Zip the file to harvest and then harvest it using the "file.imagemosaic" 
extension. You have to use the zip file because otherwise you can't mantain the 
filename and this could be bad in cas of ImageMosaic with external dimensions. 
Note that you have to set the Content-type to "application/zip"
Using the "external.imagemosaic" extension requires that the file is reachable 
from the GeoServer machine; using "file.imagemosaic" instead allows to move 
your files into the Store directory.
 
Hoping it could help.
 
Regards,
Nicola Lagomarsini.
 

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to