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

GRASS GIS trac at osgeo.org
Fri Aug 29 05:27:25 PDT 2014


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

Comment(by glynn):

 Replying to [ticket:2403 martinl]:

 >
 {{{
 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
 }}}

 It would be possible to change the cairo driver (lib/cairodriver/Raster.c)
 to render each row separately.

 However, this would effectively preclude adding certain features (e.g.
 anti-aliasing or rotation). It would also make a mess of the file
 structure for formats such as SVG.

 For those reasons, I'd suggest making row-by-row rendering an alternative
 to the existing method rather than simply replacing it.

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



More information about the grass-dev mailing list