May 2017
Beginner to intermediate
328 pages
7h 17m
English
Creating GeoServer layers to be outputted via WFS is exactly the same as for WMS, so we have already configured one layer. As an exercise, please configure a layer for the second table we imported, ne_reefs. When ready, it should look like this one when you preview it (note I have changed the color to red):

When you change the preview output to WFS, you will not see an image, but rather the output of a GetFeature request. By default, GeoServer limits output to 50 features; I have changed the URL to only return the first one though:
http://10.0.0.19:8080/geoserver/mastering_postgis/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=mastering_postgis:ne_coastline&maxFeatures=1&outputFormat=gml3 ...
Read now
Unlock full access