Hello All,

So I'm playing with the rest interface - and have managed to create a
workspace and add a single tiff image layer by doing this:

//create workspace
    curl -v -u admin:geoserver -XPOST -H "Content-type: text/xml" -d
"<workspace><name>toby</name></workspace>"
http://localhost:8080/geoserver/rest/workspaces

//create single image layer
    curl -u admin:geoserver -XPUT -H "Content-type:image/tiff"
--data-binary @/data/ndvi_color1.tif
http://localhost:8080/geoserver/rest/workspaces/toby/coveragestores/ndvi_color1.tif/file.geotiff

My data is local to the geoserver (ubuntu) in /data directory.

Now I have multiple images in /data/mosaic that I want to add to a mosaic
layer..
I've been trying something like
curl -v -u admin:geoserver -XPOST -H "Content-type: text/plain" -d
"/data/mosaic" "
http://localhost:8080/geoserver/rest/workspaces/toby/coveragestores/poly-incremental/external.imagemosaic
"

But that doesn't work - I get a 405 Method not allowed error.

I've been reading on the web and they say something about uploading the
index.shp file in order to be able to do this - is that true? If so how do
I create that in the first place?


Any help would be appreciated.

Thanks
Toby
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to