# HG changeset patch # User Tom Gottfried # Date 1536591684 -7200 # Node ID f62ee9d5bff14626b8b8cd1bcfe9ca9b972696f4 # Parent 6dc1b586328ec34b50989182ce8c635260aaf9f3 Document adding of layers to internal OGC services. diff -r 6dc1b586328e -r f62ee9d5bff1 README.md --- a/README.md Mon Sep 10 16:20:32 2018 +0200 +++ b/README.md Mon Sep 10 17:01:24 2018 +0200 @@ -28,6 +28,23 @@ By convention this is the "postgres" on most systems. +## Setup GeoServer + +- Install and run GeoServer as described here: + http://docs.geoserver.org/stable/en/user/installation/ + +- Add tables you want to publish as OGC-Service Layers via GeoServer in + the database. For example publish the bottleneck areas: + ``` + INSERT INTO sys_admin.published_services (name, as_wfs) VALUES + ('waterway.bottlenecks', true); + ``` + In case your gemma is already running (see next section), restart it. + Published WFS services will be available at `/api/internal/wfs`. Currently, + the same layers will also be available as WMS services at + `/api/internal/wms`, regardless of the value of `as_wms` in + `sys_admin.published_services`. + ## Running gemma - Best is to create a configuration file. Copy the example from