#1766: unable to save display of g.rast.num
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Keywords: r.rast.num | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
I just learned that I can no longer save a display of cell number using
d.rast.num in GRASS 7. I know this worked for a talk I gave earlier this
year. Now it does not.
I get a bogus error about the region being too large. But the region it
gives is NOT the display region, the computational region (matches the
display region in this case), or even the size of the raster map.
Here is an example using the elevation raster from the sc_08 data set.
I've reduced the computational region and display region (and have them
matched) in order to display cell numbers. And the display is constrained
to the computational region (it must be to display cell numbers). So here
is what happens. Note the size of the region and the error.
{{{
Command 'd.rast.num map=movwin_elev_max@spatialtech2012'
failed
Details: Current region size: 722 rows X 973 cols
Your current region setting may be too large. Cells
displayed on your graphics window may be too small for cell
category number to be visible.
(Mon Oct 22 22:13:51 2012)
g.region -p
projection: 99 (Lambert Conformal Conic)
zone: 0
datum: nad83
ellipsoid: a=6378137 es=0.006694380022900787
north: 224062.105333
south: 223987.185037
west: 633201.322138
east: 633302.184365
nsres: 10.70289943
ewres: 10.0862227
rows: 7
cols: 10
cells: 70
#1766: unable to save display of d.rast.num
-------------------------+--------------------------------------------------
Reporter: cmbarton | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: d.rast.num | Platform: Unspecified
Cpu: Unspecified |
-------------------------+--------------------------------------------------
Comment(by martinl):
Replying to [comment:4 mlennert]:
> I cannot reproduce this. I can display numbers with d.rast.num, using
the following region and save the display to a png file.
Testing with North Carolina dataset ('elevation'), displaying cell numbers
works for me (Debian GNU/Linux).
Just tested in my version of GRASS 7 compiled a couple weeks back. Numbers
display AND I can save the display to a PNG. This works in both the S
Carolina test data and a latlon DEM I tried. So AFAIC, we can close this.
I'll do so since others report it fixed too.