[GRASS-dev] [GRASS GIS] #3381: d.rast.num gives ERROR with 14x15 region saying that more than 200x200 is not allowed

GRASS GIS trac at osgeo.org
Sat Jul 29 19:40:14 PDT 2017


#3381: d.rast.num gives ERROR with 14x15 region saying that more than 200x200 is
not allowed
-------------------------------------------------+-------------------------
 Reporter:  wenzeslaus                           |      Owner:  grass-dev@…
     Type:  defect                               |     Status:  new
 Priority:  normal                               |  Milestone:  7.4.0
Component:  Display                              |    Version:  svn-trunk
 Keywords:  d.rast.num, d.mon, cairo,            |        CPU:  Unspecified
  rendering, resolution                          |
 Platform:  Linux                                |
-------------------------------------------------+-------------------------
 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.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3381>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list