[GRASS-dev] Re: [GRASS GIS] #822: enhance "Save display to graphic file" in wxGUI

GRASS GIS trac at osgeo.org
Sat Nov 21 13:02:47 EST 2009

#822: enhance "Save display to graphic file" in wxGUI
  Reporter:  neteler      |       Owner:  grass-dev at lists.osgeo.org
      Type:  enhancement  |      Status:  new                      
  Priority:  normal       |   Milestone:  7.0.0                    
 Component:  wxGUI        |     Version:  svn-trunk                
Resolution:               |    Keywords:                           
  Platform:  All          |         Cpu:  All                      
Comment (by neteler):

 The d.out.file stuff was only an idea. The point of the enhancement
 request is an equivalent of
 this code chunk in maptool.tcl to be added to the wxGUI:

         # menu for saving display
         set savefile [menu $mapsave.sf -type normal]
         set jpgfile [menu $savefile.jpg -type normal]

         $savefile add command -label "BMP*" -command {MapToolBar::savefile
 bmp 0}
         $savefile add cascade -label "JPG*" -menu $jpgfile
                 $jpgfile add command -label [G_msg "low quality (50)"]  \
                         -command {MapToolBar::savefile jpg 50}
                 $jpgfile add command -label [G_msg "mid quality (75)"] \
                         -command {MapToolBar::savefile jpg 75}
                 $jpgfile add command -label [G_msg "high quality (95)"] \
                         -command {MapToolBar::savefile jpg 95}
                 $jpgfile add command -label [G_msg "very high resolution
 (300% your current resolution)"] \
                         -command {MapToolBar::savefile jpg 300}
         $savefile add command -label "PPM/PNM" -command
 {MapToolBar::savefile ppm 0}
         $savefile add command -label "PNG" -command {MapToolBar::savefile
 png 0}
         $savefile add command -label "TIF*" -command {MapToolBar::savefile
 tif 0}
         $savefile add command -label [G_msg "(* requires gdal)"] -state


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

More information about the grass-dev mailing list