User Tools

Site Tools


terra4d:geoserver

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
terra4d:geoserver [2020/03/03 08:46]
editor
terra4d:geoserver [2023/11/21 10:54] (current)
editor
Line 43: 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 "Layers", Select the layer 
 +  - On the "Data" tab, scroll down to "Coordinate Reference Systems" 
 +  - If the "Native SRS" is not equal to "EPSG:4326", set the "Declared SRS" to "EPSG:4326" 
 +  - Set "SRS handling" to "Reproject native to declared" 
  
 ===== Show GeoServer layers in Terra ===== ===== Show GeoServer layers in Terra =====
Line 51: 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://localhost:8080/geoserver/WORKSPACENAME/wms+  - set URL to http://admin:mypassword@localhost:8080/geoserver/WORKSPACENAME/wms (make sure to include the username and password in the URL)
   - set Layername to WORKSPACENAME:LAYERNAME   - set Layername to WORKSPACENAME:LAYERNAME
 +  - set WMS Version to "1.1.0"
 +  - set Spatial reference system to the "declared SRS" as seen in the GeoServer layer configuration (section Coorindate Reference Systems); e.g. "EPSG:4326" for WGS84
   - set Transparancy, probably to yes   - set Transparancy, probably to yes
   - Press "Apply"   - Press "Apply"
Line 60: 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 "401" for the layer, the username and/or password is wrong. Make sure to properly encode any "special" characters in the URL.
  
 ===== Further hints ===== ===== Further hints =====
terra4d/geoserver.1583225205.txt.gz · Last modified: 2020/03/03 08:46 by editor