GRASS logo

Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current manual page.

NAME

r.colors.out_sld - Exports the color table associated with a raster map layer in SLD format.

KEYWORDS

raster, export, color table

SYNOPSIS

r.colors.out_sld
r.colors.out_sld --help
r.colors.out_sld [-n] map=name [style_name=string] [output=name] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:

-n
Propagate NULLs
--overwrite
Allow output files to overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

map=name [required]
Name of raster map
style_name=string
Name for style
A name for the style which might be displayed on the server
Default: GRASS GIS color table
output=name
Name for output SLD rules file
"-" to write to stdout
Default: -

Table of contents

DESCRIPTION

The module r.colors.out_sld exports the colors of a raster map into the Styled Layer Description (SLD) format according to OGC standard.

For raster maps of type CELL also labels are exported. The export of labels requires that the input map is entirely read and may thus take a bit longer than the export of continuous color rules (ramp).

Only if the flag n is given, the NaN values are written into the generated SLD file which leads e.g. in GeoServer to an error when using such SLD.

Currently only SLD v1.0.0 is implemented.

EXAMPLES

# Exporting a color ramp
r.colors.out_sld map=testmap style_name=Celsius

SEE ALSO

r.colors.out

REFERENCES

http://www.opengeospatial.org/standards/sld

AUTHORS

Hamish Bowman
Stefan Blumentrath, Norwegian Institute for Nature Research, Oslo, Norway

SOURCE CODE

Available at: r.colors.out_sld source code (history)

Latest change: Saturday Feb 19 11:49:27 2022 in commit: 17e8dc68ecdeccf88cbc98404948de6182d1ae93


Note: This document is for an older version of GRASS GIS that will be discontinued soon. You should upgrade, and read the current manual page.

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

© 2003-2023 GRASS Development Team, GRASS GIS 8.2.2dev Reference Manual