Ticket #1766 (new defect)
unable to save display of d.rast.num
|Reported by:||cmbarton||Owned by:||grass-dev@…|
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