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 and then return to this one.
Getting ready
- Create the proxy script and deploy it to your web server (that is, HTTPD or IIS), as indicated in the Getting ready section of the Consuming WMS services with OpenLayers recipe.
- Create the following PostGIS points...