r.out.png1grass
Export a grass raster map as a non-georeferenced png image.
Usage
r.out.png
r.out.png --help
r.out.png [-tw]
input=name
output=name
[compression=integer]
[--overwrite]
[--help]
[--verbose]
[--quiet]
[--ui]
Keywords
raster, export, output, PNG
Overview
r.out.png exports a GRASS GIS raster map in non-georeferenced Portable Network Graphics (PNG) image format, respecting the current region resolution and bounds.
Optionally the user can choose to export a World File (.wld) to provide basic georeferencing support. When used with the transparency flag this can create images useful for KML, TMS, or WMS overlays. (e.g. for use in Google Earth or as OpenLayers tiles) If output is redirected to stdout, the world file will be called png_map.wld.
Examples
The example is based on the North Carolina sample data.
Export of the soil map to PNG format with world file:
g.region raster=soils_Kfactor -p# export PNG file with additional world filer.out.png input=soils_Kfactor output=soils_Kfactor -w# verifygdalinfo soils_Kfactor.png
Source code
Available at: r.out.png source code (history)
Accessed: Monday Feb 24 17:50:43 2025
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual
Releases
10 releases since Debian 4.0 (Etch); the text changed 9 times.