v.out.png
Export vector map as PNG
v.out.png [-w] input=name output=name [rgb_column=string] [compression=integer] [width=integer] [height=integer] [--overwrite] [--verbose] [--quiet] [--qq] [--ui]
Example:
v.out.png input=name output=name
grass.script.run_command("v.out.png", input, output, rgb_column=None, compression=6, width=640, height=480, flags=None, overwrite=False, verbose=False, quiet=False, superquiet=False)
Example:
gs.run_command("v.out.png", input="name", output="name")
Parameters
input=name [required]
Name of input vector map
Or data source for direct OGR access
output=name [required]
Name for new PNG file
Name for output file
rgb_column=string
Name of color definition column
compression=integer
Compression level of PNG file
(0 = none, 1 = fastest, 9 = best)
Allowed values: 0-9
Default: 6
width=integer
Width of PNG file
Default: 640
height=integer
Height of PNG file
Default: 480
-w
Output world file
--overwrite
Allow output files to overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--qq
Very quiet module output
--ui
Force launching GUI dialog
input : str, required
Name of input vector map
Or data source for direct OGR access
Used as: input, vector, name
output : str, required
Name for new PNG file
Name for output file
Used as: output, file, name
rgb_column : str, optional
Name of color definition column
compression : int, optional
Compression level of PNG file
(0 = none, 1 = fastest, 9 = best)
Allowed values: 0-9
Default: 6
width : int, optional
Width of PNG file
Default: 640
height : int, optional
Height of PNG file
Default: 480
flags : str, optional
Allowed values: w
w
Output world file
overwrite: bool, optional
Allow output files to overwrite existing files
Default: False
verbose: bool, optional
Verbose module output
Default: False
quiet: bool, optional
Quiet module output
Default: False
superquiet: bool, optional
Very quiet module output
Default: False
DESCRIPTION
v.out.png exports a GRASS vector map in non-georeferenced Portable Network Graphics (PNG) image format, respecting the current region resolution and bounds. By default it look for a color table, set using v.colors you can also set the attribute table where read the feature color.
Optionally the user can choose to export a World File (.wld) to provide basic georeferencing support using the -w flag.
SEE ALSO
r.out.png, r.out.gdal, r.in.png, v.colors.png
AUTHORS
Luca Delucchi
World file support by Anika Bettge and Markus Neteler
SOURCE CODE
Available at: v.out.png source code
(history)
Latest change: Thursday Feb 20 13:02:26 2025 in commit 53de819