[GRASS-dev] [GRASS GIS] #2540: [PATCH] Add options to r.out.gdal to suppress GRASS specific metadata items

GRASS GIS trac at osgeo.org
Thu Aug 11 12:21:31 PDT 2016


#2540: [PATCH] Add options to r.out.gdal to suppress GRASS specific metadata items
--------------------------+-------------------------
  Reporter:  rouault      |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.0.5
 Component:  Raster       |    Version:  svn-trunk
Resolution:               |   Keywords:  r.out.gdal
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+-------------------------

Comment (by mmetz):

 Replying to [ticket:2540 rouault]:
 > The attached patch adds 2 new options flags:
 > -r : Do not write COLOR_TABLE_RULES_xxxx metadata item. (The 'r' is the
 one of rules)
 > -g : Do not write Generated_with metadata item
 >
 > Those metadata items are fairly GRASS specific and do not make sense for
 most users of rasters generated with r.out.gdal, potentially leading to
 confusion or compatiblity problems

 There is a new flag 'm' to enhance compatibility with regard to metadata.
 If the flag is set, GRASS color rules are not written to metadata, and the
 "Generated_with" metadata key has been replaced with TIFFTAG_SOFTWARE for
 GTiff (one of the baseline TIFF tags).

 Some software expects a nodata value in the metadata, even if there are no
 nodata in a band. If a  nodata value is given with the nodata option, it
 is now always written to metadata. Implemented in r69128-30 for relbr70,
 relbr72, and trunk.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2540#comment:3>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list