This is an old revision of the document!
GeoServer
Start/Stop GeoServer
Start the server with:
%GEOSERVER_HOME%\bin\startup.bat
stopping with
%GEOSERVER_HOME%\bin\shutdown.bat
if it is running, you can access GeoServer on http://localhost:8080/geoserver/web/
login with default username ‘admin’, password ‘geoserver’
if you cannot access Geoserver check the error messages in the console window or logfile, usually an enviroment variable or Java installation is wrong.
Adding layers to GeoServer
Assuming you started from an empty data directory.
Copy your data into a subdirectory in %GEOSERVER_DATA_DIR%\data
create a workspace with a same WORKSPACENAME
add new store with the data you copied in 1.
add new layer with the store and some name LAYERNAME, set bouding box with ‘Compute from native bounds ‘
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
Show GeoServer layers in Terra
Create new layer
Layer Type Imaginary
Set Layer class to match the usecase; e.g. select map for street information
set Driver WMS
-
set Layername to WORKSPACENAME:LAYERNAME
set Transparancy, probably to yes
Press “Apply”
In Configurator enable the layer in the GIS view (it may take a while until you see something); make sure the GIS view is within the layer bounding box
repeat above for each layer you want to see, if you show multiple layers always together, it is better to create a Layergroup in GeoServer and show this as a single layer in Terra. Using too many GeoServer layers in Terra will degrade performance significantly.
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..
Further hints
Styles (SLD) files for OSM data
-
-
-
-
If an attribute is referenced (used) by a style file (SLD) the GeoServer throws an exception with the information about the missing attribute. The exception is visible in the console of the GeoServer start batch.