Coverage Views

Coverage Views allow defining a new layer as a view made of different bands originally available inside coverages (either bands of the same coverage or different coverages) of the same Coverage Store. In the following sections, we will illustrate how to configure a layer containing both the u and v components of the water current, which are originally available as separated coverages (1 band coverages) of a coverage store.

Creating a Coverage Store

As illustrated in the previous sections, configure a new ImageMosaic coverageStore:

  1. From the GeoServer Administration GUI, go to the Stores > Add new Store page and select ImageMosaic from the Raster Data Sources list

    ../../_images/imagemosaic_ds_001.png
  2. Insert currents as Data Source Name and file:coverages/REGIONAL/currents as URL

    ../../_images/imagemosaic_ds_002.png

The coverage store is now configured and is it possible to configure a new coverage view.

Creating a Coverage View

The usual list of coverages available for publication appears from the coverage store previously configured. A link Configure new Coverage view... also appears:

../../_images/coverageviewnewlayer.png
  1. Selecting the Configure new Coverage view... link opens a new page where you can configure the coverage view:

    ../../_images/newcoverageview.png
  2. The upper text box allows to specify the name to be assigned to this coverage view. (In the following picture we want to create as example, a currents view merging together both u and v components of the currents, which are exposed as separated 1band coverages).

    ../../_images/coverageviewname.png
  3. Next step is defining the output bands to be put in the coverage view. It is possible to specify which input coverage bands need to be put on the view by selecting them from the Composing coverages/bands....

    ../../_images/coverageviewselectbands.png
  4. Once selected, they needs to be added to the output bands of the coverage view, using the add button.

    ../../_images/coverageviewaddbands.png

    Optionally, is it possible to remove the newly added bands using the remove and remove all buttons.

  5. Once done, clicking on the save button will redirect to the standard Layer configuration page.

    ../../_images/coveragevieweditlayer.png

    Scrolling down to the end of the page, is it possible to see the bands composing the coverage (and verify they are the one previously selected).

    ../../_images/coverageviewbandsdetails.png

    At any moment, the Coverage View can be refined and updated by selecting the Edit Coverage view... link available before the Coverage Bands details section.

    ../../_images/coveragevieweditlink.png
  6. Once all the properties of the layer have been configured, by selecting the Save button, the coverage will be saved in the catalog and it will become visible as a new layer.

    ../../_images/coverageviewavailablelayers.png

Coverage View in action

A Layer preview of the newly created coverage view will show the rendering of the view.

  1. Execute the following WMS request:

    http://localhost:8083/geoserver/geosolutions/wms?service=WMS&version=1.1.0&request=GetMap&layers=geosolutions:currents&bbox=339.9,-30.1,411.1,20.1&width=768&height=541&srs=EPSG:4326&styles=gray&format=application/openlayers

    Note

    Note that we used a style called gray in order to see the coverageview.

  2. Show the result

    ../../_images/coverageviewlayerpreview.png

    Note

    Note that clicking on a point on the map will result into a GetFeatureInfo call which will report the values of the bands composing the coverage view.

The next chapter of this training will introduce how to leverage on GeoServer processing capabilities to customize the portrayal rendering of the configured data.