Book Image

GeoServer Cookbook

By : Stefano Iacovella
Book Image

GeoServer Cookbook

By: Stefano Iacovella

Overview of this book

Table of Contents (17 chapters)
GeoServer Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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 the following URL and browse for your version folder:

    http://geoserver.org/download/

  3. Extract the .jar files contained within the archive into the WEB-INF/lib folder of your GeoServer installation:

    $ unzip geoserver-2.5.1-imagemosaic-jdbc-plugin.zip...