[GRASS5] bug in d.what.rast
Roger Miller
rgrmill at rt66.com
Sat Mar 2 21:35:14 EST 2002
Folks,
d.what.rast in GRASS pre2 is broken. The -c flag produces incorrect results.
The problem was introduced somewhere between beta11 and pre2. The beta11
version works. I did track down exactly what the problem was, and it looks
like it's still there in the current version.
Briefly, the definition of the show_utm function was modified to pass the
name of the mapset as an argument. That causes show_utm to skip the call to
G_get_cellhd that fills the cellhd structure; the column and row numbers are
then calculated on the basis of cellhd.north = cellhd.west = 0.
The easiest solution is just to revert the code to the earlier version.
Roger Miller
More information about the grass-dev
mailing list