comparison README.md @ 4484:819eafe60f41

Merged
author Sascha Wilde <wilde@intevation.de>
date Thu, 26 Sep 2019 12:16:23 +0200
parents 43c52a2d4f17
children b86367910f86
comparison
equal deleted inserted replaced
4483:778b13025244 4484:819eafe60f41
38 38
39 ## Setup Database 39 ## Setup Database
40 40
41 - You will need a PostgreSQL cluster with PostGIS. 41 - You will need a PostgreSQL cluster with PostGIS.
42 42
43 - To install the **gemma** schema and roles use the script 43 - To install the **gemma** schema, roles and some default system configuration
44 use the script
44 `./schema/install-db.sh`. 45 `./schema/install-db.sh`.
45 46
46 - `./schema/install-db.sh --help` shows you available options. 47 - `./schema/install-db.sh --help` shows you available options.
47 Per default the script will create a database named "gemma" and all 48 Per default the script will create a database named "gemma" and all
48 necessary roles in the postgres default cluster (listening on port 49 necessary roles in the postgres default cluster (listening on port
55 ## Setup GeoServer 56 ## Setup GeoServer
56 57
57 - Install and run GeoServer as described here: 58 - Install and run GeoServer as described here:
58 http://docs.geoserver.org/stable/en/user/installation/ 59 http://docs.geoserver.org/stable/en/user/installation/
59 60
60 - Add tables you want to publish as OGC-Service Layers via GeoServer in 61 - Add addional tables you want to publish as OGC-Service Layers via GeoServer in
61 the database. For example publish the bottleneck areas: 62 the database. For example publish the bottleneck areas:
62 ``` 63 ```
63 INSERT INTO sys_admin.published_services (name, as_wfs) VALUES 64 INSERT INTO sys_admin.published_services (name, as_wfs) VALUES
64 ('waterway.bottlenecks', true); 65 ('waterway.bottlenecks', true);
65 ``` 66 ```
89 90
90 - Then start gemma: 91 - Then start gemma:
91 ``` 92 ```
92 ./cmd/gemma/gemma 93 ./cmd/gemma/gemma
93 ``` 94 ```
95
96 ## Adding default style templates for geoserver
97
98 - To add default style layers for geoserver run the script:
99 ```
100 ./style-templates/upload-styles.sh
101 ```
102
103 - `./style-templates/upload-styles.sh --help` shows an overview of its options.
104
94 105
95 ## Proxying OGC services through gemma 106 ## Proxying OGC services through gemma
96 107
97 - Add services you want to publish via gemma (e.g. for same-origin policy 108 - Add services you want to publish via gemma (e.g. for same-origin policy
98 compliance reasons) in the database. For example: 109 compliance reasons) in the database. For example: