one step further ;-)

Bernhard Reiter bernhard at intevation.de
Tue Apr 4 18:16:46 CEST 2006


Am  4. Apr 2006 um 09:11:59 schrieb Didrik Pinte:
> Le lundi 03 avril 2006 à 20:18 +0200, Didrik Pinte a écrit :
> > 
> > That must be the problem. I'll recompile all the project with only the
> > wxWindows source installed (not the binary package installed in my
> > python 2.4 installation)
> > 
> > Didrik
> > _________
> 
> Ok, it was the problem.

Cool!

> My Python 2.4 installation uses the official WxPython  2.6.3
> installation BUT the UNICODE version and not the ANSI version. Thuban
> seems to compile with the ANSI dll and not the unicode one.

Does this depend on what you have downloaded?
Maybe it was my mistake to try the unicode version.
Robin Dunn also mentioned that there might be subtle bugs in the on windows.

> Now thuban does not crash anymore when loading shapefiles with polygons
> or lines ! GREAT but they do not appear ;-). Here is the traceback i
> receive :
> 
> Traceback (most recent call last):
>   File "C:\thubanbuild\Thuban-1.1.0\Thuban\UI\view.py", line 209, in
> _do_redraw
>     if self.render_iter.next():
>   File "C:\thubanbuild\Thuban-1.1.0\Thuban\UI\view.py", line 258, in
> _render_iterator
>     for cont in renderer.RenderMapIncrementally():
>   File "C:\thubanbuild\Thuban-1.1.0\Thuban\UI\baserenderer.py", line
> 191, in render_map_incrementally
>     for i in self.draw_shape_layer_incrementally(layer):
>   File "C:\thubanbuild\Thuban-1.1.0\Thuban\UI\baserenderer.py", line
> 242, in draw_shape_layer_incrementally
>     useraw, draw_func, draw_func_param = self.low_level_renderer(layer)
>   File "C:\thubanbuild\Thuban-1.1.0\Thuban\UI\renderer.py", line 110, in
> low_level_renderer
>     self.scale, -self.scale, offx, offy))
> TypeError: third argument must be a wxDC instance
> 
> This seems to be related to wxproj.draw_polygon_init.
> 
> Bernhard, you probably know wxWindows better than me. Do you have an
> idea on the problem ?

Maybe Bernhard H. has an idea.

You could add an
	print repr(sel.dc)
before the return in Thuban\UI\renderer.py line 105.
Then we see what there is instead of the wxDC instance, that should
be there.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20060404/be2cb8b2/attachment.bin


More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)