[GRASS-dev] [GRASS GIS] #3637: Use the system temporary directory for all GUI rendering files

GRASS GIS trac at osgeo.org
Sat Sep 15 13:49:20 PDT 2018


#3637: Use the system temporary directory for all GUI rendering files
-------------------------+-------------------------------------------------
  Reporter:  wenzeslaus  |      Owner:  grass-dev@…
      Type:  defect      |     Status:  closed
  Priority:  minor       |  Milestone:  8.0.0
 Component:  wxGUI       |    Version:  svn-trunk
Resolution:  fixed       |   Keywords:  rendering PPM g.pnmcomp tempfile
       CPU:              |  NamedTemporaryFile
  Unspecified            |   Platform:  Unspecified
-------------------------+-------------------------------------------------

Comment (by wenzeslaus):

 I tested the rendering with rasters, vectors and vector legend and it
 works including checking and unchecking. A debug output (WX_DEBUG=5,
 edited) after pressing ''Render map'' button is below showing only files
 in the session temporary directory which is in the system temporary
 directory (here /tmp).

 {{{
 GUI D3/5: Layer.Render(): type=overlay, name=vectleg,
           file=/tmp/grass7-$USER-11834/tmp0v6vpY.png
 GUI D1/5: RenderLayerMgr.Render(d.legend.vect at=20.0,80.0):
           force=0 img=/tmp/grass7-$USER-11834/tmp0v6vpY.png
 GUI D3/5: Layer.Render(): type=raster, name=aspect at PERMANENT,
           file=/tmp/grass7-$USER-11834/tmpmpjTAK.ppm
 GUI D1/5: RenderLayerMgr.Render(d.rast map=aspect at PERMANENT):
           force=0 img=/tmp/grass7-$USER-11834/tmpmpjTAK.ppm
 GUI D3/5: Layer.Render(): type=vector, name=bridges at PERMANENT,
           file=/tmp/grass7-$USER-11834/tmpY1Ns6j.ppm
 GUI D1/5: RenderLayerMgr.Render(d.vect map=bridges at PERMANENT width=1):
           force=0 img=/tmp/grass7-$USER-11834/tmpY1Ns6j.ppm
 ...
 GUI D1/5: gcmd.RunCommand(): g.pnmcomp --o opacity=1.0,1.0 width=825
 mask=/tmp/grass7-$USER-11834/tmpmpjTAK.pgm,/tmp/grass7-$USER-11834/tmpY1Ns6j.pgm
           height=572 bgcolor=255:255:255
 input=/tmp/grass7-$USER-11834/tmpmpjTAK.ppm,/tmp/grass7-$USER-11834/tmpY1Ns6j.ppm
           output=/tmp/grass7-$USER-11834/tmpSwtqYx.ppm
 }}}

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



More information about the grass-dev mailing list