[GRASSGUI] Re: RENDERING SOLVED!!!!

Jachym Cepicky jachym.cepicky at gmail.com
Tue Mar 20 14:24:19 EDT 2007


Hi

2007/3/19, Michael Barton <michael.barton at asu.edu>:
>
>
> On 3/19/07 5:59 AM, "Jachym Cepicky" <jachym.cepicky at gmail.com> wrote:
>
> >
> > AFAIK, this is supposed to be the output PNG - the file, which at the
> > end contains all the layers renderd to one single file
>
> Jáchym,
>
> I misunderstood your reply. This is incorrect. The composited output file
> will be a PPM, not a PNG. So maybe the PNG is an unnecessary leftover from
> an earlier iteration?
>
> Michael
>
>

I hope, this is solved now

render.py:    		self.mapfile   = utils.GetTempfile()
mapdisp.py:

    def GetImage(self):
        """
        Converts files to wx.Image
        """
    	if Map.mapfile and os.path.isfile(Map.mapfile) and \
                os.path.getsize(Map.mapfile):
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    	    self.Img = wx.Image(Map.mapfile, wx.BITMAP_TYPE_ANY)
    	else:
    	    self.Img = None
    	return self.Img

Jachym



-- 
Jachym Cepicky
e-mail: jachym.cepicky gmail com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub




More information about the grass-gui mailing list