[GRASS-dev] r.out.gdal, again

Glynn Clements glynn at gclements.plus.com
Wed Aug 20 02:10:59 EDT 2008


Markus Metz wrote:

> I have a wishlist for r.out.gdal together with a new version (link
> below), and would like to put it up for discussion:
> Changes in my version are:
> 
> Colortable export
> 
> A new flag -c is provided to export a colortable, default to no.
> Colortables in GeoTIFF files are sometimes not properly rendered by
> other GIS applications and the file might then be displayed all black,
> even when the raster values are correct. The same GeoTIFF file without
> colortable is displayed ok. Requested colortable export only works when
> there is an entry in directories colr or colr2.

I would suggest inverting the sense of the flag, so that colour tables
are created by default, but can be suppressed by the flag.

Most of the time, colour tables work. It seems to be an issue
primarily with 16-bit TIFFs.

> Current region extends aligned to raster resolution
> 
> The old r.out.gdal (GRASS-6.2.x) worked with the extends and resolution
> of the raster to be exported. The new r.out.gdal C-module works with the
> extends and resolution of the current region. My version works with the
> extends of the current region and aligns them to the input raster map
> resolution to avoid undesired implicit resampling if the resolution of
> the current region does not match the input raster resolution. If a
> raster map layer should be exported in a different resolution the raster
> must now be resampled prior to exporting.

Make this a flag; the default should be to honour the current region.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list