[Thuban-list] (Still) No geodata output
Jonathan Coles
jonathan at intevation.de
Wed Mar 19 14:22:34 CET 2003
this appears to be a library problem. if you are compiling Thuban you
have to be careful which version of gcc you use. it must be the same
version that was used to compile the wxWindows libraries. my bet is that
Thuban crashes when it tries to draw the polygon layers using the proj
library. there is some C++ code included with Thuban which calls into
wxWindows code and if the compilers are not the same then the name
mangling will be different.
if you want to test this theory try doing this:
in file Thuban/UI/renderer.py on line 135 comment out the call to
self.draw_polygon_shape() and add "pass" so that the "if" block looks
like this:
if shapetype == SHAPETYPE_POINT:
self.dc.SetBrush(brush)
self.dc.SetPen(pen)
self.draw_point_shape(layer, i)
else:
pass #self.draw_polygon_shape(layer, i, pen, brush)
when you compile/run Thuban you should be able to load the
iceland_sample.thuban file. All the information about the session should
appear in the session tree but none of the polygon layers will be
visible.
--jonathan
On Wed, 2003-03-19 at 12:57, Alexander Pucher wrote:
> Hi,
> thanks for the help so far.
>
> Ok, I upgraded to 2.2.1, so now I'm running:
>
> GTK 2.0.6
> Phyton 2.2.1
> Python-xml 2.2
> wxWindows 2.4
> wxPython 2.4
> proj 4.4.5
>
> Application starts, I can add the data layer 'cultural_landmark-point'
> from the Thuban-data iceland sample data. When adding anothr layer from
> the dataset, or any other layer, or trying to open a saved session (e.g.
> from the iceland demo) the application crashes!!
>
> No error output, only 'Segmentation fault'.
>
> mfg
> alex
>
>
>
> Jonathan Coles wrote:
>
> >ok, apparently, we have made a mistake in the version that Thuban
> >depends on. I thought that the boolean values were defined in 2.2 when
> >in fact they are defined in 2.2.1. you will need to use the 2.2.1
> >package. sorry about this.
> >
> >http://at.rpmfind.net/opsys/linux/RPM/python.html
> >
> >--jonathan
> >
> >On Tue, 2003-03-18 at 17:41, Alexander Pucher wrote:
> >
> >
> >>I just took it off from the SuSe DVD.
> >>
> >>Thi sis my output:
> >>
> >>pucher at david:/download/Thuban-0.2.0/test> python
> >>Python 2.2 (#1, Mar 26 2002, 15:46:04)
> >>[GCC 2.95.3 20010315 (SuSE)] on linux2
> >>Type "help", "copyright", "credits" or "license" for more information.
> >> >>> x = False
> >>Traceback (most recent call last):
> >> File "<stdin>", line 1, in ?
> >>NameError: name 'False' is not defined
> >>
> >>mfg
> >>alex
> >>
> >>Jonathan Coles wrote:
> >>
> >>
> >>
> >>>alex,
> >>>
> >>>
> >>>i have run the following test:
> >>>
> >>>jonathan at salmakis:~$ python2.1
> >>>Python 2.1.3 (#1, Sep 7 2002, 15:29:56)
> >>>[GCC 2.95.4 20011002 (Debian prerelease)] on linux2
> >>>Type "copyright", "credits" or "license" for more information.
> >>>
> >>>
> >>>
> >>>
> >>>>>>x = False
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>Traceback (most recent call last):
> >>> File "<stdin>", line 1, in ?
> >>>NameError: name 'False' is not defined
> >>>
> >>>
> >>>
> >>>
> >>>jonathan at salmakis:~$ python2.2
> >>>Python 2.2.1 (#1, Sep 7 2002, 14:34:30)
> >>>[GCC 2.95.4 20011002 (Debian prerelease)] on linux2
> >>>Type "help", "copyright", "credits" or "license" for more information.
> >>>
> >>>
> >>>
> >>>
> >>>>>>x = False
> >>>>>>x
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>0
> >>>
> >>>
> >>>
> >>>
> >>>have you built your version of python from the source or are you running
> >>>prebuilt binaries?
> >>>
> >>>--jonathan
> >>>
> >>>
> >>>On Tue, 2003-03-18 at 17:16, Alexander Pucher wrote:
> >>>
> >>>
> >>>
> >>>
> >>>>Hi Jonathan,
> >>>>
> >>>>I use version 2.2-105
> >>>>
> >>>>alex
> >>>>
> >>>>Jonathan Coles wrote:
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>which version of Python are you using? you will need at least version
> >>>>>2.2
> >>>>>
> >>>>>--jonathan
> >>>>>
> >>>>>On Tue, 2003-03-18 at 17:06, Alexander Pucher wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Hi,
> >>>>>>
> >>>>>>first of all, congratiolations to everybody involved in the Thuban
> >>>>>>project for this nice piece of software. I guess this is what a lot of
> >>>>>>people are looking for as a kind of missing link in the freegis scene!!
> >>>>>>
> >>>>>>I compiled Thuban on my Linux machine with no errors showing. I can
> >>>>>>start the application, the windows look fine. But when I try to add a
> >>>>>>layer, I get this error:
> >>>>>>
> >>>>>>File "/usr/local//lib/thuban/Thuban/UI/mainwindow.py", line 209, in
> >>>>>>invoke_command
> >>>>>> command.Execute(self.Context())
> >>>>>>File "/usr/local//lib/thuban/Thuban/UI/command.py", line 121, in Execute
> >>>>>> apply(self.function, (context,) + self.args + args, kw)
> >>>>>>File "/usr/local//lib/thuban/Thuban/UI/mainwindow.py", line 582, in
> >>>>>>call_method
> >>>>>> apply(getattr(context.mainwindow, methodname), args)
> >>>>>>File "/usr/local//lib/thuban/Thuban/UI/mainwindow.py", line 385, in
> >>>>>>AddLayer
> >>>>>> layer = Layer(title, filename)
> >>>>>>File "/usr/local//lib/thuban/Thuban/Model/layer.py", line 150, in __init__
> >>>>>> self.__setClassLock = False
> >>>>>>NameError: global name 'False' is not defined
> >>>>>>
> >>>>>>and nothing shows up??
> >>>>>>
> >>>>>>Any hints?
> >>>>>>
> >>>>>>Best regards,
> >>>>>>alex
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
--
Jonathan Coles
Intevation GmbH
http://www.intevation.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
Url : http://www.intevation.de/pipermail/thuban-list/attachments/20030319/60fa63c4/attachment.bin
More information about the Thuban-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)