[GRASS5] [bug #2986] (grass) v.surf.rst wrong quant

Request Tracker grass-bugs at intevation.de
Sun Feb 13 23:58:53 EST 2005


this bug's URL: http://intevation.de/rt/webrt?serial_num=2986
-------------------------------------------------------------------------

Subject: v.surf.rst  wrong quant

Platform: GNU/Linux/i386
grass obtained from: CVS
grass binary for platform: Compiled from Sources

The quant result from query of elevation data computed by v.surf.rst (and s.surf.rst) is not correct
testquant4 in cent, quant   (326)
testquant4 in cent, actual  (327.380127)
(should be 327)

The problem may be in
lib/rst/interp_float/output2d.c
 G_quantize_fp_map_range (params->elev, mapset,
                             (DCELL) zminac - 0.5, (DCELL) zmaxac + 0.5,
                           (CELL) (zminac - 0.5), (CELL) (zmaxac + 0.5));

This bug might have been there for years. Other parameters 
are quantized correctly.

Helena


-------------------------------------------- Managed by Request Tracker




More information about the grass-dev mailing list