[GRASS-dev] [GRASS GIS] #67: r.out.gdal type= and no-data issues

GRASS GIS trac at osgeo.org
Sat Feb 23 13:01:43 EST 2008


#67: r.out.gdal type= and no-data issues
----------------------+-----------------------------------------------------
 Reporter:  sieczka   |       Owner:  grass-dev at lists.osgeo.org
     Type:  defect    |      Status:  new                      
 Priority:  critical  |   Milestone:  6.3.0                    
Component:  default   |     Version:  unspecified              
 Keywords:            |  
----------------------+-----------------------------------------------------
 If data 'type' is not specified and the input raster has nulls, r.out.gdal
 picks a correct datatype automatically, but sets a bogus no-data value.
 Example, in spearfish60:

 {{{
 r.out.gdal in=geology out=gelogy.tif
 Exporting to GDAL data type: Byte
  100%
 WARNING: Input raster map constains cells with NULL-value (no-data). For
          no-data values was used value -2147483648. You can specify nodata
          value by nodata parameter.
 r.out.gdal complete.
 }}}

 Note the bogus -2147483648 no-data value, not in Byte datatype range.

 If the user specifies 'type=Byte' explicitely, r.out.gdal sets nodata to
 255 by default (OK):

 {{{
 GRASS 6.3.svn (spearfish60):~ > r.out.gdal in=geology out=gelogy2.tif
 type=Byte
 Exporting to GDAL data type: Byte
  100%
 WARNING: Input raster map constains cells with NULL-value (no-data). For
          no-data values was used value 255. You can specify nodata value
 by
          nodata parameter.
 r.out.gdal complete.
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/67>
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/


More information about the grass-dev mailing list