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

GRASS GIS trac at osgeo.org
Mon Dec 8 10:19:05 PST 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 [comment:4 martinl]:

 > the problem is that cairo limits number of rows and cols to 32767 (1).
 Any idea how this bug could be resolved in GRASS?

 One option is to require clients (d.rast, d.his, d.rgb) to limit the
 region resolution. Another is to modify the driver(s) to decimate the data
 if it exceeds certain limits. Yet another is to modify the cairo driver to
 down-sample the data itself (this avoids the issue that a source region of
 32767x32767 will require 4 GiB of memory to store the surface regardless
 of the output resolution).

 All of these have the advantage that the client won't waste time reading
 rows which will be discarded by the driver (when down-sampling, the driver
 reports the next row which will be used).

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



More information about the grass-dev mailing list