O'Reilly logo

PostGIS Cookbook by Bborie Park, Stephen Vincent Mather, Thomas J. Kraft, Paolo Corti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating WMS and WFS services with MapServer

In this recipe, you will see how to create a Web Map Service (WMS) and Web Feature Service (WFS) from a PostGIS layer, using the popular MapServer open-source web-mapping engine.

You will then use the services, testing their exposed requests, using first a browser and then a desktop tool such as QGIS (you could do this using other software, such as uDig, gvSIG, and OpenJUMP GIS).

Getting ready

Follow these steps before getting ready:

  1. Create a schema for this chapter within the postgis_cookbook database using the following command:
    postgis_cookbook=# create schema chp09;
    
  2. Be sure to have Apache HTTP installed (MapServer will run on it as a CGI), and check whether or not it is working by visiting its home ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required