[GRASS-dev] Re: [GRASS GIS] #73: r.out.gdal tiff output does not work

GRASS GIS trac at osgeo.org
Thu Apr 16 12:56:16 EDT 2009


#73: r.out.gdal tiff output does not work
--------------------------+-------------------------------------------------
  Reporter:  helena       |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect       |      Status:  new                      
  Priority:  critical     |   Milestone:  6.4.0                    
 Component:  Raster       |     Version:  svn-trunk                
Resolution:               |    Keywords:  r.out.gdal, tiff         
  Platform:  Unspecified  |         Cpu:  Unspecified              
--------------------------+-------------------------------------------------
Comment (by mmetz):

 Replying to [comment:41 epatton]:
 > I suppose there's not much we can do if other image viewers are not
 configured to read proper geotiffs. For the record, the only tiff output I
 can create that actually is readable (i.e., color table remains intact) is
 r.out.tiff. Maybe allow a flag in r.out.gdal that outputs r.out.tiff-style
 tiffs and retire r.out.tiff in Grass 7?

 r.out.gdal and r.out.tiff do two fundamentally different things and IMHO
 should be neither compared nor merged.

 r.out.tiff exports an image that can be viewed with any image viewer and
 looks like what you see on the grass display. The pixel values are most
 likely very different from the raster map that is exported, because with
 the -p flag everything is converted to Byte. Without the -p flag, the
 pixel values are the colour values of the color table, not the raster
 values. r.out.tiff output is thus not meant to be suitable for spatial
 analysis (like a screenshot of the display).

 r.out.gdal exports data, by default with a color table for data
 visualization if supported by the selected output format. The color table
 is just for convenience and not needed for analysis. Data export was
 successful if r.univar or some equivalent in another GIS software package
 gives results identical to r.univar on the grass raster. There is a
 difference between "can read the GeoTIFF" and "displays the GeoTIFF like
 grass displays the original raster", therefore the display is not suitable
 for testing because there are too many reasons why the display can be
 different (different monitor with different settings, different OS with
 different gamma, file format does not support color tables, conversion
 from color rules to color tables can introduce slight modifications, other
 GIS software uses different graphics engine, other GIS software can not
 read embedded color table).

 Sorry for being so thick, but I want to make the point of distinguishing
 images and data. Unfortunately, a .tif file can be both.

 Markus M

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/73#comment:45>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list