This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
terra4d:geoserver [2020/03/03 08:36] editor created |
terra4d:geoserver [2023/11/21 10:54] (current) editor |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== GeoServer ====== | ====== GeoServer ====== | ||
| + | ===== Installation ===== | ||
| + | - Install Java | ||
| + | - If you don’t have an installation e.g. from Elasticsearch, | ||
| + | - Add JAVA_HOME to your environment and set path to Java JDK directory. | ||
| - Download latest stable version from [[http:// | - Download latest stable version from [[http:// | ||
| + | - unzip it to a directory, e.g. c:\Program Files\GeoServer. | ||
| + | - Select a data directory for GeoServer, e.g. D: | ||
| + | - Add environent variables | ||
| + | - GEOSERVER_DATA_DIR=D: | ||
| + | - GEOSERVER_HOME=C: | ||
| ===== Start/Stop GeoServer ===== | ===== Start/Stop GeoServer ===== | ||
| Line 18: | Line 26: | ||
| if you cannot access Geoserver check the error messages in the console window or logfile, usually an enviroment variable or Java installation is wrong. | if you cannot access Geoserver check the error messages in the console window or logfile, usually an enviroment variable or Java installation is wrong. | ||
| + | ===== GeoServer as windows service ===== | ||
| + | |||
| + | In production environment it is recommended to use the Linux version of GeoServer. For windows there you can use the service wrapper to run Geoservice as a service. | ||
| + | |||
| + | Download wrapper: | ||
| + | https:// | ||
| ===== Adding layers to GeoServer ===== | ===== Adding layers to GeoServer ===== | ||
| Line 29: | Line 43: | ||
| - add a style for the layer and publish, maybe you have to create a new style for lines/text | - add a style for the layer and publish, maybe you have to create a new style for lines/text | ||
| - view layer data in layer preview | - view layer data in layer preview | ||
| - | + | ||
| + | ===== Performance Hints for Layers ===== | ||
| + | 1. Handle non-WGS84 data sources | ||
| + | |||
| + | - Within the GeoServer, Go to " | ||
| + | - On the " | ||
| + | - If the " | ||
| + | - Set "SRS handling" | ||
| ===== Show GeoServer layers in Terra ===== | ===== Show GeoServer layers in Terra ===== | ||
| Line 37: | Line 59: | ||
| - Set Layer class to match the usecase; e.g. select map for street information | - Set Layer class to match the usecase; e.g. select map for street information | ||
| - set Driver WMS | - set Driver WMS | ||
| - | - set URL to http:// | + | - set URL to http://admin: |
| - set Layername to WORKSPACENAME: | - set Layername to WORKSPACENAME: | ||
| + | - set WMS Version to " | ||
| + | - set Spatial reference system to the " | ||
| - set Transparancy, | - set Transparancy, | ||
| - Press " | - Press " | ||
| Line 46: | Line 70: | ||
| If you change layers in Geoserver you have to clear the Terra4D cache before you will see the changes in Terra – best test layer changes first in the GeoServer preview.. | If you change layers in Geoserver you have to clear the Terra4D cache before you will see the changes in Terra – best test layer changes first in the GeoServer preview.. | ||
| + | |||
| + | If you see an error " | ||
| ===== Further hints ===== | ===== Further hints ===== | ||