I'm working on a project at work to download imagery from else where and add it to geoserver. I have no experience in GIS, nonetheless geoserver. I've been hunting through the REST api for 2.0.X of Geoserver and can create workspaces and empty coverage stores. I get that coverage stores hold raster graphics, but is it one-to-one or do they share a special relation by being in the same store? What's the URL and method (PUT, POST, etc) to add a tiff to a coverage store?


Well the model for raster data in geoserver is that a coverage store can contain multiple coverages. But that said in general, in that 2.0.x version the relationship is 1-1. There is currently work going to support coverages that have the notion of another dimension (like time), at which time you will start to see geoserver support multiple coverages for a single coverage store.

Mapperz provided a good link with some examples. There is also a good reference in the user guide:


It is for shapefile but for geotiff it is more or less the same, just change shp -> geotiff accordingly, as the examples show.

  • I suppose the file has to be a zip? I'm writing a service to download imagery from a 3rd party service and import directly into geoserver and if it's not necessary to zip, then I would like to avoid that step. What content type would it be if a skip zipping (if possible). Also, side note, what kind of names are coverage stores given? I am completely new to geoserver standards... – Corey Ogburn Jun 6 '11 at 14:44

you can use this curl which creates layers in a hedge shop and if there is no hedge shop creates it

curl -v -u admin:geoserver -XPUT -H "Content-type: text/plain" -d "File location" "http://localhost:8080/geoserver/rest/workspaces/HereWorkspaceName/coveragestores/HereCoverageName/external.geotiff?configure=first&coverageName=HereCoverageName"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.