#1554: wxGUI Cartographic Composer: preview broken on Windows
----------------------------------------------------+-----------------------
 Reporter:  martinl                                 |       Owner:  grass-dev@… 
             
     Type:  defect                                  |      Status:  new         
             
 Priority:  normal                                  |   Milestone:  6.4.2       
             
Component:  wxGUI                                   |     Version:  unspecified 
             
 Keywords:  cartographic composer, psmap, wingrass  |    Platform:  MSWindows 
XP             
      Cpu:  Unspecified                             |  
----------------------------------------------------+-----------------------

Comment(by annakrat):

 There are a few problems:

 * Ghostscript is missing (not in OSGeo4W framework)

 * if it is installed it is not on the PATH

 * from the PIL source code (C:\OSGeo4W\apps\Python27\Lib\site-
 packages\PIL\EpsImagePlugin.py):

 {{{
 def Ghostscript(tile, size, fp):
     """Render an image using Ghostscript (Unix only)"""

 ...

     command = ["gs",
                "-q",                    # quite mode
                "-g%dx%d" % size,        # set output geometry (pixels)
                "-dNOPAUSE -dSAFER",     # don't pause between pages, safe
 mode
                "-sDEVICE=ppmraw",       # ppm driver
                "-sOutputFile=%s" % file,# output file
                "- >/dev/null 2>/dev/null"]
 }}}

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

_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to