Opened 10 years ago
Closed 8 years ago
#2540 closed defect (fixed)
[PATCH] Add options to r.out.gdal to suppress GRASS specific metadata items
Reported by: | rouault | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.0.5 |
Component: | Raster | Version: | svn-trunk |
Keywords: | r.out.gdal | Cc: | |
CPU: | Unspecified | Platform: | Unspecified |
Description
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
Attachments (1)
Change History (6)
by , 10 years ago
Attachment: | suppress_metadata_r_out_gdal.patch added |
---|
comment:1 by , 10 years ago
Summary: | [PATCH] Add options to r.out.gdal → [PATCH] Add options to r.out.gdal to suppress GRASS specific metadata items |
---|
comment:2 by , 9 years ago
Milestone: | 7.0.0 → 7.0.5 |
---|
comment:3 by , 8 years ago
comment:5 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Replying to rouault:
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.