[GRASS-user] Error while exporting

Glynn Clements glynn at gclements.plus.com
Tue May 17 09:09:09 EDT 2011


Markus Metz wrote:

> The NULL value of the reclass map is not recognized as NULL value, but
> instead treated as a valid number.
> 
> This seems to be a bug in the GRASS library, specifically in
> G_get_null_value_row() and has probably been around since GRASS 6.3.

AFAICT, it has been around as long as G_get_null_value_row() has
existed. G_get_null_value_row() returns the raw data, without any
reclass applied.

As it stands, this function probably isn't of much use. If it is to be
retained in its current form, it should have _no_reclass appended to
the name. The existing name should be used for a function which
honours any reclass table (done in 7.0 with r46323).

> r.out.gdal can easily be fixed by not using G_get_null_value_row().

In 7.0, it's also used by r.neighbors and the OGSF library.

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


More information about the grass-user mailing list