[Geoserver-users] GeoServer REST API and DataStore/Coverages extensions

Hello everybody,

while I try to setup a GeoServer instance I run into problems to upload and configure ImagePyramid’s. I already have a pre-generated folder structure with tiff and properties files for 8 different scales.

I read the docs for REST API and have seen, that its possible to configure coverages for 3 different kind of types: geotiff, worldimage and imagemosaic (http://docs.geoserver.org/stable/en/user/rest/api/coveragestores.html#id1)

I’m wondering if it is possible to configure imagepyramid (the plugin is available and can be configured using the geoserver UI) and other extension using the REST service in a generic way.

Maybe it is available already and I couldn’t find it yet. If so, could anybody provide an example, how to:

  • upload a pre-configured zipped imagepyramid
  • configure a layer based on this dataset

I configured the store via the GeoServer UI and had a look at the resulting REST configuration information, which looked fine for the first request and is broken since. Successful response:

Example for blue marble:

BlueMarble NASA Blue Marble ImagePyramid true nasa <__default>false file:data/nasa/BlueMarble/BlueMarble.properties

Thanks a lot for any hint or example how to upload and configure stores/coverages types provided by extensions.

Cheers

  • Frank

In addition I’d like to provide the stack-trace for the REST request (GET) for the successful configured (GeoServer UI) imagepyramid coverage store :

Request : http://localhost:8080/geoserver/rest/workspaces/nasa/coveragestores/BlueMarble/coveragestores/BlueMarble.html
provides the following output and occurs w/o authentication for the GET request:

Coverage "
Expression properties is undefined on line 2, column 13 in CoverageInfo.ftl.
The problematic instruction:

···

2013/6/5 Frank Gasdorf <fgdrf@anonymised.com>

Hello everybody,

while I try to setup a GeoServer instance I run into problems to upload and configure ImagePyramid’s. I already have a pre-generated folder structure with tiff and properties files for 8 different scales.

I read the docs for REST API and have seen, that its possible to configure coverages for 3 different kind of types: geotiff, worldimage and imagemosaic (http://docs.geoserver.org/stable/en/user/rest/api/coveragestores.html#id1)

I’m wondering if it is possible to configure imagepyramid (the plugin is available and can be configured using the geoserver UI) and other extension using the REST service in a generic way.

Maybe it is available already and I couldn’t find it yet. If so, could anybody provide an example, how to:

  • upload a pre-configured zipped imagepyramid
  • configure a layer based on this dataset

I configured the store via the GeoServer UI and had a look at the resulting REST configuration information, which looked fine for the first request and is broken since. Successful response:

Example for blue marble:

BlueMarble NASA Blue Marble ImagePyramid true nasa <__default>false file:data/nasa/BlueMarble/BlueMarble.properties

Thanks a lot for any hint or example how to upload and configure stores/coverages types provided by extensions.

Cheers

  • Frank