Opened 7 years ago

Last modified 6 years ago

#3381 new defect

d.rast.num gives ERROR with 14x15 region saying that more than 200x200 is not allowed

Reported by: wenzeslaus Owned by: grass-dev@…
Priority: normal Milestone: 7.4.5
Component: Display Version: svn-trunk
Keywords: d.rast.num, d.mon, cairo, rendering, resolution Cc:
CPU: Unspecified Platform: Linux

Description

In the NC SPM location the following sequence of commands gives me the expected result, i.e. I can see the grid and numbers for raster cells:

g.region raster=elevation res=1000 -p
d.mon start=wx0 width=1000 height=1000 output=test.png
d.rast.num elevation
# d.mon stop=wx0

When I use cairo monitor instead of wx0 I get an error and nothing is rendered:

GRASS 7.3.svn (nc_basic_spm_grass7): > g.region raster=elevation res=1000 -p
projection: 99 (Lambert Conformal Conic)
zone:       0
datum:      nad83
ellipsoid:  a=6378137 es=0.006694380022900787
north:      228500
south:      215000
west:       630000
east:       645000
nsres:      964.28571429
ewres:      1000
rows:       14
cols:       15
cells:      210
GRASS 7.3.svn (nc_basic_spm_grass7): > d.mon start=cairo width=1000 height=1000 output=test.png
GRASS 7.3.svn (nc_basic_spm_grass7): > d.rast.num elevation
WARNING: Current region size: 1000 rows X 1000 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.
ERROR: Aborting (region larger then 200 rows X 200 cols is not allowed)
GRASS 7.3.svn (nc_basic_spm_grass7): > d.mon stop=cairo

The error says that region larger then 200 rows X 200 cols is not allowed and the warning says Current region size: 1000 rows X 1000 cols, but this is the number of pixels in an image to draw to, not the number of raster cells to draw.

Change History (6)

comment:1 by neteler, 7 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:2 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:3 by Nikos Alexandris, 6 years ago

Any activity on this issue?

comment:4 by neteler, 6 years ago

Milestone: 7.4.27.4.3

Ticket retargeted after milestone closed

comment:5 by martinl, 6 years ago

Milestone: 7.4.37.4.4

Bump milestone to 7.4.4

comment:6 by neteler, 6 years ago

Milestone: 7.4.47.4.5

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.