Consuming WFS-T services with OpenLayers

In this recipe, you will create the Transactional Web Feature Service (WFS-T) from a PostGIS layer with the GeoServer open source web-mapping engine and then an OpenLayers basic application that will be able to use this service.

This way, the user of the application will be able to manage transactions on the remote PostGIS layer. WFS-T allows for the creation, deletion, and updating of features. In this recipe, you will allow the user to only to add features, but this recipe should put you on your way to creating more composite use cases.

If you are new to GeoServer and OpenLayers, you should first read the Creating WMS and WFS services with GeoServer and Consuming WMS services with OpenLayers recipes ...

Get PostGIS Cookbook - Second Edition 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.