[GRASS5] [bug #4071] (grass) d.what.rast strange values outside of map area

Request Tracker grass-bugs at intevation.de
Wed Feb 8 09:47:47 EST 2006


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

Subject: d.what.rast strange values outside of map area

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

Hi,

I discovered an unhelpful behaviour of the GRASS monitor
or d.what.rast resp. This bug persists despite the recent
display driver modifications (which may be unrelated to this).

Test case:

#generate a hemisphere (use in non-LatLong location, e.g. Spearfish):
./testsuite/raster/rhemisphere.sh

#zoom to hemisphere:
g.region hemisphere -p

#generate box of same size:
v.in.region hemisphere_box

# open monitor with different ratio than map:
export GRASS_WIDTH=1000
export GRASS_HEIGHT=500
d.mon x0

# view the map and box
d.rast hemisphere
d.vect hemisphere_box type=boundary

#click into no data pixels at border (outside of map box):
d.what.rast

1267(E) 437(N)
hemisphere in neteler, quant   (1080098213)
hemisphere in neteler, actual  (-3199042392403159334141127237487472760781471376965238957138138332769142568673864556645968880013387064229402063231226593015070762178538729445017824264192.000000)

1293(E) 253(N)
hemisphere in neteler, quant   (1081451460)
hemisphere in neteler, actual  (-0.000000)

Looks fairly ugly. 

uname -a
Linux bartok 2.6.9-22.0.1.ELsmp #1 SMP Tue Oct 18 18:39:02 EDT 2005 x86_64 x86_64 x86_64 GNU/Linux

Is this related to
 http://www.intevation.de/rt/webrt?serial_num=2986&display=History
?

A fix would be appreciated. I don't know where to look for that.

Markus

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




More information about the grass-dev mailing list