Skip to content

mundialis/geoserver-grass-raster-datastore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GeoServer GRASS raster datastore

Combining the C- and Java-tribe FOSS4G greatness of GRASS and GeoServer.

GRASS loves GeoServer!

ℹ️ Homepage

Prerequisites and Installation

You'll need Java 11, maven 3.5, GDAL (gdal-java) and the standalone GRASS GIS driver for GDAL.

  • build with mvn install

Installation:

  • copy into Geoserver's WEB-INF/lib to enable the GRASS datastore:
    • e.g., cp target/geoserver-grass-raster-datastore-*.jar /usr/share/geoserver/webapps/geoserver/WEB-INF/lib/
  • from GDAL's gdal-java package, copy gdal.jar:
    • (cd /usr/share/geoserver/webapps/geoserver/WEB-INF/lib ; cp /usr/lib/java/gdal/gdal.jar .)

Geoserver Launch:

  • set environment variable: export JAVA_OPTS="-Djava.library.path=/usr/lib/java/gdal/"
  • (re)start GeoServer: /usr/share/geoserver/bin/startup.sh
  • find the running GeoServer at http://localhost:8080/geoserver/web/

Download

You can also download released versions from here.

Usage

You can create datastore pointing to a single raster by pointing the file to an appropriate entry in the GRASS cellhd directory. If you have a timeseries raster dataset, you can also point the file to the sqlite database containing the timeseries information (found in tgis/sqlite.db inside the mapset containing the timeseries).

In case of a timeseries raster dataset you may get multiple layers in case you have multiple timeseries stored in the database. When publishing a layer, make sure to enable WMS-TIME-support by checking the box in the dimensions tab.

For more usage instructions, have a look at the homepage.

Acknowledgements

This work has been co-financed under Grant Agreement Connecting Europe Facility (CEF) Telecom project 2018-EU-IA-0095 by the European Union (https://ec.europa.eu/inea/en/connecting-europe-facility/cef-telecom/2018-eu-ia-0095).

This work has been partly developed as joint contribution of mundialis and terrestris to the mFUND project Anwenderfreundliche Bereitstellung von Klima- und Wetterdaten – FAIR.