[GRASS5] d.what.rast strange values outside of map

Markus Neteler neteler at itc.it
Thu Feb 2 08:38:19 EST 2006


I discovered an unhelpful behaviour of the GRASS monitor
or d.what.rast

#generate a hemisphere (use in non-LatLong location, e.g. Spearfish):

#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):

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 somewhat related to

A fix would be appreciated.


More information about the grass-dev mailing list