[GRASS-dev] [GRASS GIS] #2403: cairo driver fails to create surface

GRASS GIS trac at osgeo.org
Tue Aug 26 11:11:31 PDT 2014


#2403: cairo driver fails to create surface
----------------------------------------+-----------------------------------
 Reporter:  martinl                     |       Owner:  grass-dev@…              
     Type:  defect                      |      Status:  new                      
 Priority:  major                       |   Milestone:  7.0.0                    
Component:  Display                     |     Version:  unspecified              
 Keywords:  cairo, resolution, surface  |    Platform:  Linux                    
      Cpu:  x86-64                      |  
----------------------------------------+-----------------------------------
 Steps to reproduce:

 {{{
 g.region rast=elevation res=0.1 -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:      0.1
 ewres:      0.1
 rows:       135000
 cols:       150000
 cells:      20250000000
 }}}

 Rendering via Cairo driver fails:

 {{{
 d.mon cairo
 d.rast elevation
 ERROR: Cairo_begin_raster(): Failed to create surface (invalid value
 (typically too big) for the size of the input (surface, pattern, etc.)).
 Using rows: 135000, cols: 150000
 }}}

 While PNG driver works:

 {{{
 d.mon -r
 d.mon png
 d.rast elevation
 0..3..6..9..12..15..18..21..24..27..30..33..36..39..42..45..48..51..54..57..60..63..66..69..72..75..78..81..84..87..90..93..96..99..100
 }}}

 wxGUI also works since it uses it's own display resolution.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2403>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list