Adding a PostGIS raster data source

In an earlier recipe, we served the raster data as a mosaic with pyramids. Another GeoServer extension offers the option to store all the tiles in an RDBMS. In this recipe, we will use PostgreSQL as a repository and will publish them on GeoServer.

How to do it…

  1. In order to enable GeoServer to access tiles stored in PostgreSQL, you need an extension. As usual, you need to visit the download page and download the zip archive. Visit the following URL:

    http://geoserver.org/release/stable/

  2. Get the archive by clicking on the JDBC Image Mosaic link in the Coverage Formats section.

    Note

    Be sure to download the matching version of the plugin. If you are not using the latest stable release, instead of the previous URL, use ...

Get GeoServer Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.