[GRASS-dev] Georrectification error in WinGRASS6.4.0RC6

Hi there

I have installed the latest WinGRASS binary release and I tried to use the georrectify functionality but I got an error. Immediately after I select image from where to get the GCP's, the Define/manage GCPs panel appears and an empty Map Display and the following is printed in the command output:

Traceback (most recent call last):
  File "C:/GRASS6/etc/wxpython/wxgui.py", line 368, in
OnGeorectify

georect.GeorectWizard(self)
  File "C:\GRASS6\etc\wxpython\gui_modules\georect.py", line
215, in __init__

self.xy_mapdisp.toolbars['georect'].OnZoomMap(None)
  File "C:\GRASS6\etc\wxpython\gui_modules\toolbars.py",
line 366, in OnZoomMap

self.mapdisplay.MapWindow.ZoomToMap(layer=layer)
  File "C:\GRASS6\etc\wxpython\gui_modules\mapdisp.py", line
2383, in ZoomToMap

self.UpdateMap()
  File "C:\GRASS6\etc\wxpython\gui_modules\mapdisp.py", line
811, in UpdateMap

self.parent.gismanager.georectifying.DrawGCP(coordtype)
  File "C:\GRASS6\etc\wxpython\gui_modules\georect.py", line
886, in DrawGCP

wxCol = wx.Colour(col[0], col[1], col[2], 255)
  File "C:\GRASS6\Python25\lib\site-packages\wx-2.8-msw-
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'

can it be some problem of my GRASS installation or is it a global issue?

Thanks
Antonio

__________ Information from ESET NOD32 Antivirus, version of virus signature database 5224 (20100624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

António Rocha:

Hi there

I have installed the latest WinGRASS binary release

Are you using WinGRASS-6.4.SVN-r42618-1-Setup.exe or another version?

and I tried to use the
georrectify functionality but I got an error. Immediately after I select
image from where to get the GCP's, the Define/manage GCPs panel appears and
an empty Map Display and the following is printed in the command output:

Traceback (most recent call last):
File "C:/GRASS6/etc/wxpython/wxgui.py", line 368, in
OnGeorectify

georect.GeorectWizard(self)
File "C:\GRASS6\etc\wxpython\gui_modules\georect.py", line
215, in __init__

self.xy_mapdisp.toolbars['georect'].OnZoomMap(None)
File "C:\GRASS6\etc\wxpython\gui_modules\toolbars.py",
line 366, in OnZoomMap

self.mapdisplay.MapWindow.ZoomToMap(layer=layer)
File "C:\GRASS6\etc\wxpython\gui_modules\mapdisp.py", line
2383, in ZoomToMap

self.UpdateMap()
File "C:\GRASS6\etc\wxpython\gui_modules\mapdisp.py", line
811, in UpdateMap

self.parent.gismanager.georectifying.DrawGCP(coordtype)
File "C:\GRASS6\etc\wxpython\gui_modules\georect.py", line
886, in DrawGCP

wxCol = wx.Colour(col[0], col[1], col[2], 255)
File "C:\GRASS6\Python25\lib\site-packages\wx-2.8-msw-
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'

can it be some problem of my GRASS installation or is it a global issue?

Thanks
Antonio

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 5224 (20100624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

Back to ML:
I fixed that only 3 days ago in r42618, a previous version could show
the error you got.

Ah, and you might need to remove a line in .grasswx6, starting with georect

ok:
georect;symbol;color;0:0:255;width;2

bad:
georect;symbol;color;(0,0,255,255);width;2

note: no brakets (), only 3 numbers separated by :

António Rocha:

Markus I cannot remember unfortunely. I will uninstall and intall exacly the
latest and get back to you and the mailing list.
Back in 30 minutes
Antonio

Markus Metz wrote:

António Rocha:

Hi there

I have installed the latest WinGRASS binary release

Are you using WinGRASS-6.4.SVN-r42618-1-Setup.exe or another version?

and I tried to use the
georrectify functionality but I got an error. Immediately after I select
image from where to get the GCP's, the Define/manage GCPs panel appears
and
an empty Map Display and the following is printed in the command output:

Traceback (most recent call last):
File "C:/GRASS6/etc/wxpython/wxgui.py", line 368, in
OnGeorectify

georect.GeorectWizard(self)
File "C:\GRASS6\etc\wxpython\gui_modules\georect.py", line
215, in __init__

self.xy_mapdisp.toolbars['georect'].OnZoomMap(None)
File "C:\GRASS6\etc\wxpython\gui_modules\toolbars.py",
line 366, in OnZoomMap

self.mapdisplay.MapWindow.ZoomToMap(layer=layer)
File "C:\GRASS6\etc\wxpython\gui_modules\mapdisp.py", line
2383, in ZoomToMap

self.UpdateMap()
File "C:\GRASS6\etc\wxpython\gui_modules\mapdisp.py", line
811, in UpdateMap

self.parent.gismanager.georectifying.DrawGCP(coordtype)
File "C:\GRASS6\etc\wxpython\gui_modules\georect.py", line
886, in DrawGCP

wxCol = wx.Colour(col[0], col[1], col[2], 255)
File "C:\GRASS6\Python25\lib\site-packages\wx-2.8-msw-
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'

can it be some problem of my GRASS installation or is it a global issue?

Thanks
Antonio

__________ Information from ESET NOD32 Antivirus, version of virus
signature
database 5224 (20100624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 5225 (20100624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 5225 (20100624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

My Source version, in OSGEO4W, is from 2 weeks ago and my binary it would be from also 2 weeks.
I have just downloaded r42618 and it's getting that error.
So I changed that file and now I don't get that error but only the source location is displayed. The other is still blank... IS that expected?

Markus Metz wrote:

Back to ML:
I fixed that only 3 days ago in r42618, a previous version could show
the error you got.

Ah, and you might need to remove a line in .grasswx6, starting with georect

ok:
georect;symbol;color;0:0:255;width;2

bad:
georect;symbol;color;(0,0,255,255);width;2

note: no brakets (), only 3 numbers separated by :

António Rocha:
  

Markus I cannot remember unfortunely. I will uninstall and intall exacly the
latest and get back to you and the mailing list.
Back in 30 minutes
Antonio

Markus Metz wrote:
    

António Rocha:

Hi there

I have installed the latest WinGRASS binary release

Are you using WinGRASS-6.4.SVN-r42618-1-Setup.exe or another version?

and I tried to use the
georrectify functionality but I got an error. Immediately after I select
image from where to get the GCP's, the Define/manage GCPs panel appears
and
an empty Map Display and the following is printed in the command output:

Traceback (most recent call last):
File "C:/GRASS6/etc/wxpython/wxgui.py", line 368, in
OnGeorectify

georect.GeorectWizard(self)
File "C:\GRASS6\etc\wxpython\gui_modules\georect.py", line
215, in __init__

self.xy_mapdisp.toolbars['georect'].OnZoomMap(None)
File "C:\GRASS6\etc\wxpython\gui_modules\toolbars.py",
line 366, in OnZoomMap

self.mapdisplay.MapWindow.ZoomToMap(layer=layer)
File "C:\GRASS6\etc\wxpython\gui_modules\mapdisp.py", line
2383, in ZoomToMap

self.UpdateMap()
File "C:\GRASS6\etc\wxpython\gui_modules\mapdisp.py", line
811, in UpdateMap

self.parent.gismanager.georectifying.DrawGCP(coordtype)
File "C:\GRASS6\etc\wxpython\gui_modules\georect.py", line
886, in DrawGCP

wxCol = wx.Colour(col[0], col[1], col[2], 255)
File "C:\GRASS6\Python25\lib\site-packages\wx-2.8-msw-
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'

can it be some problem of my GRASS installation or is it a global issue?

Thanks
Antonio

__________ Information from ESET NOD32 Antivirus, version of virus
signature
database 5224 (20100624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 5225 (20100624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 5225 (20100624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature database 5225 (20100624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature database 5225 (20100624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

António Rocha:

My Source version, in OSGEO4W, is from 2 weeks ago and my binary it would be
from also 2 weeks.
I have just downloaded r42618 and it's getting that error.
So I changed that file and now I don't get that error but only the source
location is displayed. The other is still blank... IS that expected?

Yes, any maps to be displayed for the target location must be added
through the regular GIS layer manager and will be displayed in the
main (or currently active) display.

Markus Metz wrote:

Back to ML:
I fixed that only 3 days ago in r42618, a previous version could show
the error you got.

Ah, and you might need to remove a line in .grasswx6, starting with
georect

ok:
georect;symbol;color;0:0:255;width;2

bad:
georect;symbol;color;(0,0,255,255);width;2

note: no brakets (), only 3 numbers separated by :

António Rocha:

Markus I cannot remember unfortunely. I will uninstall and intall exacly
the
latest and get back to you and the mailing list.
Back in 30 minutes
Antonio

Markus Metz wrote:

António Rocha:

Hi there

I have installed the latest WinGRASS binary release

Are you using WinGRASS-6.4.SVN-r42618-1-Setup.exe or another version?

and I tried to use the
georrectify functionality but I got an error. Immediately after I
select
image from where to get the GCP's, the Define/manage GCPs panel appears
and
an empty Map Display and the following is printed in the command
output:

Traceback (most recent call last):
File "C:/GRASS6/etc/wxpython/wxgui.py", line 368, in
OnGeorectify

georect.GeorectWizard(self)
File "C:\GRASS6\etc\wxpython\gui_modules\georect.py", line
215, in __init__

self.xy_mapdisp.toolbars['georect'].OnZoomMap(None)
File "C:\GRASS6\etc\wxpython\gui_modules\toolbars.py",
line 366, in OnZoomMap

self.mapdisplay.MapWindow.ZoomToMap(layer=layer)
File "C:\GRASS6\etc\wxpython\gui_modules\mapdisp.py", line
2383, in ZoomToMap

self.UpdateMap()
File "C:\GRASS6\etc\wxpython\gui_modules\mapdisp.py", line
811, in UpdateMap

self.parent.gismanager.georectifying.DrawGCP(coordtype)
File "C:\GRASS6\etc\wxpython\gui_modules\georect.py", line
886, in DrawGCP

wxCol = wx.Colour(col[0], col[1], col[2], 255)
File "C:\GRASS6\Python25\lib\site-packages\wx-2.8-msw-
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'

can it be some problem of my GRASS installation or is it a global
issue?

Thanks
Antonio

__________ Information from ESET NOD32 Antivirus, version of virus
signature
database 5224 (20100624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 5225 (20100624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus
signature
database 5225 (20100624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 5225 (20100624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

__________ Information from ESET NOD32 Antivirus, version of virus signature
database 5225 (20100624) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev