[GRASS-dev] [GRASS GIS] #3119: r.out., gdal -c should not write Metadata: COLOR_TABLE_RULE_RGB
GRASS GIS
trac at osgeo.org
Fri Aug 5 03:47:03 PDT 2016
#3119: r.out.,gdal -c should not write Metadata: COLOR_TABLE_RULE_RGB
-------------------------+-------------------------
Reporter: neteler | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.2.0
Component: Raster | Version: svn-trunk
Keywords: r.out.gdal | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
At time, when suppressing the color table export (eg when writing out in
GeoTIFF format) with
r.out.gdal -c ...
still the metadata are written:
{{{
Metadata:
COLOR_TABLE_RULES_COUNT=5
COLOR_TABLE_RULE_RGB_0=1.000000e+00 1.122440e+04 255 255 0 0 255 0
COLOR_TABLE_RULE_RGB_1=1.122440e+04 2.244780e+04 0 255 0 0 255 255
COLOR_TABLE_RULE_RGB_2=2.244780e+04 3.367120e+04 0 255 255 0 0 255
COLOR_TABLE_RULE_RGB_3=3.367120e+04 4.489460e+04 0 0 255 255 0 255
COLOR_TABLE_RULE_RGB_4=4.489460e+04 5.611800e+04 255 0 255 255 0 0
}}}
The code is here:
https://trac.osgeo.org/grass/browser/grass/trunk/raster/r.out.gdal/export_band.c#L315
Perhaps the if condition here should also consider
"suppress_main_colortable"?
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3119>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list