GRASS logo

NAME

r.geoserver.publish - Publishes a raster map or STRDS set through the geoserver-grass-raster-datastore.

KEYWORDS

geoserver-grass-datastore, raster, temporal, geoserver

SYNOPSIS

r.geoserver.publish
r.geoserver.publish --help
r.geoserver.publish input=string host=string port=string user=string password=string workspace=string coveragestore=string layername=string [title=string] gs_file_path=string [type=string] [--help] [--verbose] [--quiet] [--ui]

Flags:

--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

input=string [required]
Name of raster map or space time raster dataset
host=string [required]
GeoServer host including URI scheme
port=string [required]
GeoServer port
user=string [required]
GeoServer user
password=string [required]
GeoServer password
workspace=string [required]
GeoServer workspace
coveragestore=string [required]
GeoServer coveragestore
layername=string [required]
Layername
title=string
Layer title
gs_file_path=string [required]
GeoServer filepath to GRASS mapset
type=string
Data set type of input
Options: raster, strds, auto
Default: auto

Table of contents

DESCRIPTION

r.geoserver.publish is a GRASS GIS addon Python script to publish raster maps as well as space time raster data sets with geoserver-grass-datastore and creates a GeoServer layer for it. The module uses the GeoServer REST API.

It is important that you are in the mapset in which the raster map or space time raster data set is stored.

If you have a raster map and a space time raster map with the same name, which you use as input, then you have to set the type to "raster" or "strds".

EXAMPLES

Publish raster map to GeoServer

Publish elevation map to GeoServer and set the style:
# publish layer
r.geoserver.publish input=elevation \
  host=http://geoserver port=8080 user=admin password=geoserver \
  workspace=spieltag coveragestore=elevation layername=elevation \
  gs_file_path=/grassdb/nc_spm_08/PERMANENT
# set style (applies current map color table)
r.geoserver.style host=http://geoserver port=8080 user=admin password=geoserver \
  workspace=spieltag layername=elevation

Publish space time raster data set to geoserver

Publish MODIS LST space time raster data to geoserver and set style (a mapset with the example mapset of the MODIS data is available here: nc_spm_mapset_modis2015_2016_lst.zip):
# publish layer
r.geoserver.publish input=LST_Day_monthly \
  host=http://geoserver port=8080 user=admin password=geoserver \
  workspace=spieltag coveragestore=modis_lst_strds layername=LST_Day_monthly \
  gs_file_path=/grassdb/nc_spm_08_grass7/modis_lst
# set style (applies color table of first map)
r.colors MOD11B3.A2015001.h11v05.single_LST_Day_6km color=bcyr
r.geoserver.style host=http://geoserver port=8080 user=admin password=geoserver \
  workspace=spieltag layername=LST_Day_monthly

SEE ALSO

r.out.gdal, r.out.geoserver, r.geoserver.style

AUTHORS

Anika Weinmann and Carmen Tawalika, mundialis

SOURCE CODE

Available at: r.geoserver.publish source code (history)

Accessed: Monday Jul 27 12:29:22 2026


Main index | Raster index | Topics index | Keywords index | Graphical index | Full index

© 2003-2026 GRASS Development Team, GRASS 8.5.1dev Reference Manual