[GRASS-dev] georect.py

Vincent Bain bain at toraval.fr
Sat Mar 28 11:21:39 EDT 2009


Thank you Martin, it is fixed !

again in the georectify module, a display error occurs when trying to
resume a previous referencing session (ie when some gcp where already
defined for a given raster) -- not crucial in fact.

The error message is the following :

        Traceback (most recent call last):
          File "/usr/local/grass-6.5.svn/etc/wxpython/wxgui.py",
        line 361, in OnGeorectify
        
        georect.GeorectWizard(self)
          File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ge
        orect.py", line 196, in __init__
        
        self.gcpmgr.SetMapDisplay(self.xy_mapdisp)
          File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ge
        orect.py", line 792, in SetMapDisplay
        
        self.list.LoadData()
          File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ge
        orect.py", line 1292, in LoadData
        
        self.gcp.ReadGCPs()
          File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ge
        orect.py", line 990, in ReadGCPs
        
        sourceMapWin.UpdateMap(render=False, renderVector=False)
          File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ma
        pdisp_window.py", line 725, in UpdateMap
        
        self.parent.GetLayerManager().georectifying.DrawGCP(coordtyp
        e)
          File "/usr/local/grass-6.5.svn/etc/wxpython/gui_modules/ge
        orect.py", line 858, in DrawGCP
        
        wxCol = wx.Colour(col[0], col[1], col[2], 255)
          File "/usr/lib/python2.5/site-
        packages/wx-2.8-gtk2-unicode/wx/_gdi.py", line 114, in
        __init__
        
        _gdi_.Colour_swiginit(self,_gdi_.new_Colour(*args,
        **kwargs))
        TypeError
        :
        in method 'new_Colour', expected argument 1 of type 'byte'
        
        

Vincent



More information about the grass-dev mailing list