On Mon, Jul 22, 2013 at 11:40 AM, Mikel Gonzalez Gainza <[email protected]
> wrote:

> Hi all!
>
> I've been trying to use geoserver's REST API to add automatically various
> raster files and publish them. These raster files have a time parameter so
> I have to use the image mosaic plugin with the corresponding property files
> (indexer, timeregex and datastore)
>
> I've tried doing the curl request by using a zip file with all required
> geotiffs and property files but it returns a 500 that, after having a look
> at geoserver log translates to:
>
> http://pastebin.com/hCrvEm1L
>
> I've checked the zip file and it's not corrupted so I don't really know
> how to continue that way.
>
> Here are the curl commands i execute, the first one creates the
> coveragestore in a certain workspace and the second one is supposed to
> upload the layers:
>
> curl -u admin:geoserver -v -XPOST -H 'Content-Type: application/xml' \
>>      -d '<coverageStore><name>wind_spe
>> ed</name><workspace>wind</workspace>
>>          <enabled>true</enabled></coverageStore>' \
>> http://localhost:8080/geoserver/rest/workspaces/wind/coveragestores<http://localhost:8080/geoserver/rest/workspaces/cener-irena/coveragestores>
>>
>> curl -u admin:geoserver -v -XPUT -H 'Content-type: application/zip' \
>>      -d
>> 'file:/home/mgonzalez/apache-tomcat-7.0.41/webapps/geoserver/data/data/wind/wind_speed.zip'
>> \
>>
>> http://localhost:8080/geoserver/rest/workspaces/wind/coveragestores/wind_speed/file.imagemosaic?coverageName=wind_speed<http://localhost:8080/geoserver/rest/workspaces/cener-irena/coveragestores/wind_speed/file.imagemosaic?coverageName=wind_speed>
>>
>
> I would very much appreciate if you could help me with this :-) Thank you!
>

Uploading a mosaic by zip file was  simply not supported up until a few
weeks ago. This new functionality has been added to
the 2.4.x series, the 2.4 beta release is getting out these days, it would
be great if could check it out and see if it works
as you expect

Cheers
Andrea


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

Ing. Andrea Aime
@geowolf
Technical Lead

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

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

-------------------------------------------------------
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to