Book Image

Mastering Geoserver

By : Colin Henderson
Book Image

Mastering Geoserver

By: Colin Henderson

Overview of this book

Table of Contents (19 chapters)
Mastering GeoServer
About the Author
About the Reviewers

Serving data from PostGIS

PostGIS ( is, without question, the most popular open source spatial database platform available today. PostGIS is not actually a database in itself; it is in fact an open source library that spatially enables the open source PostgreSQL database. However, the name is so frequently used when referring to a PostgreSQL database with the extension installed, that it is the term we will adopt when discussing it in this book. In the open source geospatial world, GeoServer and PostGIS are perhaps the most common combination of spatial database and web mapping server. It is the database that GeoServer supports out of the box, without the need for any further configuration.

Publishing a PostGIS table as a layer

To publish a PostGIS table as a layer in GeoServer, we must first create a data store that connects to a PostGIS database. From the main page of the web administration console, choose the Add stores option to open the New data source page: