Note: This document is for an older version of GRASS GIS that has been discontinued. 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: -
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.
# Exporting a color ramp
r.colors.out_sld map=testmap style_name=Celsius
r.colors.out
https://www.ogc.org/standard/sld
Hamish Bowman
Stefan Blumentrath, Norwegian Institute for Nature Research, Oslo, Norway
SOURCE CODE
Available at:
r.colors.out_sld source code
(history)
Latest change: Monday Nov 11 18:04:48 2024 in commit: 59e289fdb093de6dd98d5827973e41128196887d
Main index |
Raster index |
Topics index |
Keywords index |
Graphical index |
Full index
© 2003-2024
GRASS Development Team,
GRASS GIS 8.3.3dev Reference Manual