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!
Why is it that we rejoice at a birth and grieve at a funeral? It is
because we
are not the person involved.
-- Mark Twain, "Pudd'nhead Wilson's Calendar"
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users