1r.out.png(1) GRASS GIS User's Manual r.out.png(1)
2
3
4
6 r.out.png - Export a GRASS raster map as a non-georeferenced PNG
7 image.
8
10 raster, export, output, PNG
11
13 r.out.png
14 r.out.png --help
15 r.out.png [-tw] input=name output=name [compression=integer]
16 [--overwrite] [--help] [--verbose] [--quiet] [--ui]
17
18 Flags:
19 -t
20 Make NULL cells transparent
21
22 -w
23 Output world file
24
25 --overwrite
26 Allow output files to overwrite existing files
27
28 --help
29 Print usage summary
30
31 --verbose
32 Verbose module output
33
34 --quiet
35 Quiet module output
36
37 --ui
38 Force launching GUI dialog
39
40 Parameters:
41 input=name [required]
42 Name of input raster map
43
44 output=name [required]
45 Name for new PNG file (use ’-’ for stdout)
46
47 compression=integer
48 Compression level of PNG file
49 (0 = none, 1 = fastest, 9 = best)
50 Options: 0-9
51 Default: 6
52
54 r.out.png exports a GRASS GIS raster map in non-georeferenced Portable
55 Network Graphics (PNG) image format, respecting the current region res‐
56 olution and bounds.
57
58 Optionally the user can choose to export a World File (.wld) to provide
59 basic georeferencing support. When used with the transparency flag this
60 can create images useful for KML, TMS, or WMS overlays. (e.g. for use
61 in Google Earth or as OpenLayers tiles) If output is redirected to std‐
62 out, the world file will be called png_map.wld.
63
65 The example is based on the North Carolina sample data location.
66
67 Export of the soil map to PNG format with world file:
68 g.region raster=soils_Kfactor -p
69 # export PNG file with additional world file
70 r.out.png input=soils_Kfactor output=soils_Kfactor -w
71 # verify
72 gdalinfo soils_Kfactor.png
73
75 r.out.gdal, r.out.ppm, r.out.ascii, r.import
76
78 Alex Shevlakov
79 Hamish Bowman
80
82 Available at: r.out.png source code (history)
83
84 Main index | Raster index | Topics index | Keywords index | Graphical
85 index | Full index
86
87 © 2003-2020 GRASS Development Team, GRASS GIS 7.8.5 Reference Manual
88
89
90
91GRASS 7.8.5 r.out.png(1)