From dpinte at itae.be Thu Oct 4 16:58:57 2007 From: dpinte at itae.be (Didrik Pinte) Date: Thu, 04 Oct 2007 16:58:57 +0200 Subject: labels Message-ID: <1191509937.24887.3.camel@ddp.simpson> Hi, I'm thinking about changing the behaviour of "Add/remove Labels" button. I think this button should toggle a full labelling of a layer. When the button is clicked, the list of attributes of the layer is shown, you select one attribute. Then all the objects are labelled with this selection. For example, you will have all the country names appearing in the countries, etc. At the moment, you have to do it shape by shape ... it's annoying ;-) What is the preferred method ? - change the behaviour of the current labelling method - add a new button Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20071004/cd46b784/attachment.bin From thuban-featurerequests at wald.intevation.org Thu Oct 4 17:08:05 2007 From: thuban-featurerequests at wald.intevation.org (thuban-featurerequests@wald.intevation.org) Date: Thu, 4 Oct 2007 17:08:05 +0200 (CEST) Subject: =?UTF-8?B?W3RodWJhbi1GZWF0dXJlIFJlcXVlc3RzXVs1MDBdIHVwZGF0ZSBtYWNvc3ggaW5zdGFsbGVy?= Message-ID: <20071004150805.0332A402BC@pyrosoma.intevation.org> Feature Requests item #500, was opened at 2007-10-04 17:08 Status: Open Priority: 3 Submitted By: Didrik Pinte (dpinte) Assigned to: Nobody (None) Summary: update macosx installer Version: None Category: None Initial Comment: Some people on the mailing list have asked for an updated version of the installer for MacOSX ---------------------------------------------------------------------- You can respond by visiting: http://wald.intevation.org/tracker/?func=detail&atid=108&aid=500&group_id=6 From thuban-bugs at wald.intevation.org Thu Oct 4 18:42:00 2007 From: thuban-bugs at wald.intevation.org (thuban-bugs@wald.intevation.org) Date: Thu, 4 Oct 2007 18:42:00 +0200 (CEST) Subject: =?UTF-8?B?W3RodWJhbi1CdWdzXVs1MDFdIHByb2ZpbGluZyBhbmQgZHJhd19zaGFwZSBleHRlbnNpb24gY3Jhc2hlcyB0aHViYW4gYXQgc3RhcnR1cA==?= Message-ID: <20071004164200.CCFD0B4008@pyrosoma.intevation.org> Bugs item #501, was opened at 2007-10-04 18:42 Status: Open Priority: 3 Submitted By: Didrik Pinte (dpinte) Assigned to: Nobody (None) Summary: profiling and draw_shape extension crashes thuban at startup Resolution: None Version: None Category: None Initial Comment: When profiling extension or draw_shape extension are enabled in thubanstart.py the following error appears : did at ddp:~/projets/python/thuban/current/thuban$ python thuban.py Problems with PyOGCLib (not installed?) An unhandled exception occurred: argument number 1: a 'wxWindow *' is expected, 'PySwigObject(_p_wxPyApp)' is received (please report to http://thuban.intevation.org/bugtracker.html) Traceback (most recent call last): File "thuban.py", line 36, in ? Thuban.UI.main.main() File "/home/did/projets/python/thuban/current/thuban/Thuban/UI/main.py", line 31, in main app = application.ThubanApplication(0) File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7700, in __init__ self._BootstrapApp() File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7352, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/home/did/projets/python/thuban/current/thuban/Thuban/UI/application.py", line 75, in OnInit self.read_startup_files() File "/home/did/projets/python/thuban/current/thuban/Thuban/UI/application.py", line 110, in read_startup_files exceptiondialog.run_exception_dialog(self, "cannot import mod %s" %str(e)) File "/home/did/projets/python/thuban/current/thuban/Thuban/UI/exceptiondialog.py", line 62, in run_exception_dialog dialog = ExceptionDialog(parent, message, title) File "/home/did/projets/python/thuban/current/thuban/Thuban/UI/exceptiondialog.py", line 26, in __init__ style = wx.RESIZE_BORDER|wx.CAPTION|wx.DIALOG_MODAL) File "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_windows.py", line 640, in __init__ newobj = _windows_.new_Dialog(*args, **kwargs) TypeError: argument number 1: a 'wxWindow *' is expected, 'PySwigObject(_p_wxPyApp)' is received This is strange. It seems there is a side-effect somewhere but I don't get it ... ---------------------------------------------------------------------- You can respond by visiting: http://wald.intevation.org/tracker/?func=detail&atid=105&aid=501&group_id=6 From bernhard at intevation.de Fri Oct 5 18:37:40 2007 From: bernhard at intevation.de (Bernhard Reiter) Date: Fri, 5 Oct 2007 18:37:40 +0200 Subject: labels In-Reply-To: <1191509937.24887.3.camel@ddp.simpson> References: <1191509937.24887.3.camel@ddp.simpson> Message-ID: <200710051837.45308.bernhard@intevation.de> Hi Didrik, On Thursday 04 October 2007 16:58, Didrik Pinte wrote: > I'm thinking about changing the behaviour of "Add/remove Labels" > button. yes, it is about time. > I think this button should toggle a full labelling of a layer. When the > button is clicked, the list of attributes of the layer is shown, you > select one attribute. Then all the objects are labelled with this > selection. For example, you will have all the country names appearing in > the countries, etc. The problem with this if you have lots of elements, then you probably cannot read anything. So we would need a label placement algorithm. > At the moment, you have to do it shape by shape ... it's annoying ;-) > > What is the preferred method ? > - change the behaviour of the current labelling method > - add a new button I am undecided. The button would work if you try to compose a map. On the other hand, it is useless in quite a few situations. Wouldn't the switch of show labels be a "toggle" button for one layer anyway? So maybe a new button for now it better, because it would work differently. -- Managing Director - Owner: www.intevation.net (Free Software Company) Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com. Intevation GmbH, Osnabr?ck, DE; Amtsgericht Osnabr?ck, HRB 18998 Gesch?ftsf?hrer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- 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/20071005/002275d0/attachment.bin From dpinte at itae.be Mon Oct 8 09:40:49 2007 From: dpinte at itae.be (Didrik Pinte) Date: Mon, 08 Oct 2007 09:40:49 +0200 Subject: labels In-Reply-To: <200710051837.45308.bernhard@intevation.de> References: <1191509937.24887.3.camel@ddp.simpson> <200710051837.45308.bernhard@intevation.de> Message-ID: <1191829249.24887.30.camel@ddp.simpson> On Fri, 2007-10-05 at 18:37 +0200, Bernhard Reiter wrote: > I am undecided. > The button would work if you try to compose a map. > On the other hand, it is useless in quite a few situations. > > Wouldn't the switch of show labels be a "toggle" button for one layer anyway? > So maybe a new button for now it better, because it would work > differently. Ok, let's go for a second button and we will see in the future if we want to merge them. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20071008/1d603245/attachment.bin From bernhard at intevation.de Tue Oct 9 15:39:40 2007 From: bernhard at intevation.de (Bernhard Reiter) Date: Tue, 9 Oct 2007 15:39:40 +0200 Subject: labels In-Reply-To: <1191829249.24887.30.camel@ddp.simpson> References: <1191509937.24887.3.camel@ddp.simpson> <200710051837.45308.bernhard@intevation.de> <1191829249.24887.30.camel@ddp.simpson> Message-ID: <200710091539.41881.bernhard@intevation.de> On Monday 08 October 2007 09:40, Didrik Pinte wrote: > Ok, let's go for a second button and we will see in the future if we > want to merge them. Fine. -- Managing Director - Owner: www.intevation.net (Free Software Company) Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com. Intevation GmbH, Osnabr?ck, DE; Amtsgericht Osnabr?ck, HRB 18998 Gesch?ftsf?hrer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- 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/20071009/8a9e70c6/attachment.bin From dpinte at itae.be Wed Oct 17 12:52:52 2007 From: dpinte at itae.be (Didrik Pinte) Date: Wed, 17 Oct 2007 12:52:52 +0200 Subject: runtime error on macosx - WAS : Re: [Thuban-list] Mac OSX version In-Reply-To: <200710152008.32801.bernhard@intevation.de> References: <1191510114.24887.5.camel@ddp.simpson> <1192206199.5579.23.camel@ddp.simpson> <200710152008.32801.bernhard@intevation.de> Message-ID: I have now all the needed dependencies for compilation and it seems to compile fine. When running thuban, I get the following error : macmini:~/thuban/Thuban-1.2.0 did$ /usr/local/bin/python2.5 thuban.py 12:50:28: Debug: ../src/common/object.cpp(224): assert "sm_classTable- >Get(m_className) == NULL" failed: class already in RTTI table - have you used IMPLEMENT_DYNAMIC_CLASS() twice (may be by linking some object module(s) twice)? ../src/common/object.cpp(224): assert "sm_classTable->Get (m_className) == NULL" failed: class already in RTTI table - have you used IMPLEMENT_DYNAMIC_CLASS() twice (may be by linking some object module(s) twice)? Trace/BPT trap ... this is a wx error ... I'm investigating Didrik Le 15-oct.-07 ? 20:08, Bernhard Reiter a ?crit : > On Friday 12 October 2007 18:23, Didrik Pinte wrote: >> Due to >> macintel platform and universal binaries, all the libraries used by >> thuban must be compiled as universal libs ... that's not easy ;-) > > No way to make two versions and mark them accordingly? > While I like the concept in principle, the other way would be much > easier to go, I guess. > > -- > Managing Director - Owner: www.intevation.net (Free Software > Company) > Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab- > Konsortium.com. > Intevation GmbH, Osnabr?ck, DE; Amtsgericht Osnabr?ck, HRB 18998 > Gesch?ftsf?hrer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner > _______________________________________________ > Thuban-list mailing list > Thuban-list at intevation.de > https://intevation.de/mailman/listinfo/thuban-list From dpinte at itae.be Wed Oct 17 14:52:42 2007 From: dpinte at itae.be (Didrik Pinte) Date: Wed, 17 Oct 2007 14:52:42 +0200 Subject: OSX build ok Message-ID: <2CE52CAF-350A-4CFB-9391-93253F5DA78D@itae.be> Guys, It works. There is a little bug with the use of wx.MemoryDC but it runs fine. See screen capture : http://downloads.itae.be/thuban_osx.jpg Didrik From bernhard at intevation.de Wed Oct 17 19:24:45 2007 From: bernhard at intevation.de (Bernhard Reiter) Date: Wed, 17 Oct 2007 19:24:45 +0200 Subject: OSX build ok In-Reply-To: <2CE52CAF-350A-4CFB-9391-93253F5DA78D@itae.be> References: <2CE52CAF-350A-4CFB-9391-93253F5DA78D@itae.be> Message-ID: <200710171924.49772.bernhard@intevation.de> On Wednesday 17 October 2007 14:52, Didrik Pinte wrote: > See screen capture : http://downloads.itae.be/thuban_osx.jpg Wowo! :)) -- Managing Director - Owner: www.intevation.net (Free Software Company) Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com. Intevation GmbH, Osnabr?ck, DE; Amtsgericht Osnabr?ck, HRB 18998 Gesch?ftsf?hrer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- 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/20071017/59510028/attachment.bin From thuban-bugs at wald.intevation.org Fri Oct 19 15:41:57 2007 From: thuban-bugs at wald.intevation.org (thuban-bugs@wald.intevation.org) Date: Fri, 19 Oct 2007 15:41:57 +0200 (CEST) Subject: =?UTF-8?B?W3RodWJhbi1CdWdzXVs1MTZdIHd4Lk1lbW9yeURDIGZhdGFsIGVycm9yIG9uIE1hY09TWA==?= Message-ID: <20071019134157.BA2D8B4019@pyrosoma.intevation.org> Bugs item #516, was opened at 2007-10-19 15:41 Status: Open Priority: 3 Submitted By: Didrik Pinte (dpinte) Assigned to: Nobody (None) Summary: wx.MemoryDC fatal error on MacOSX Resolution: None Version: None Category: None Initial Comment: When running Thuban on MacOSX compiled with wxPython 2.8, I get the following error : macmini:~/thuban/Thuban-1.2.0 did$ /usr/local/bin/python2.5 thuban.py N'a pu trouver le module initial thubanstart Une exception non g?r?e a ?t? d?clench?e: C++ assertion "wxAssertFailure" failed in /BUILD/wxPython-src-2.6.4.0/src/mac/carbon/dc.cpp(1482): Invalid DC (veuillez faire un rapport ? l'adresse http://thuban.intevation.org/bugtracker.html) Traceback (most recent call last): File "thuban.py", line 35, in Thuban.UI.main.main() File "/Users/did/thuban/Thuban-1.2.0/Thuban/UI/main.py", line 31, in main app = application.ThubanApplication(0) File "//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.6-mac-unicode/wx/_core.py", line 7755, in __init__ self._BootstrapApp() File "//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.6-mac-unicode/wx/_core.py", line 7407, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/Users/did/thuban/Thuban-1.2.0/Thuban/UI/application.py", line 77, in OnInit self.top = self.CreateMainWindow() File "/Users/did/thuban/Thuban-1.2.0/Thuban/UI/application.py", line 170, in CreateMainWindow size = (600, 400)) File "/Users/did/thuban/Thuban-1.2.0/Thuban/UI/mainwindow.py", line 128, in __init__ self.ShowLegend() File "/Users/did/thuban/Thuban-1.2.0/Thuban/UI/mainwindow.py", line 826, in ShowLegend self.ToggleLegend() File "/Users/did/thuban/Thuban-1.2.0/Thuban/UI/mainwindow.py", line 835, in ToggleLegend legend.LegendPanel(dialog, None, self) File "/Users/did/thuban/Thuban-1.2.0/Thuban/UI/legend.py", line 116, in __init__ self.scalebarbitmap = ScaleBarBitmap(self, map, mainWindow) File "/Users/did/thuban/Thuban-1.2.0/Thuban/UI/legend.py", line 722, in __init__ textwidth, textheight = dc.GetTextExtent("%d"%0) File "//Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/wx-2.6-mac-unicode/wx/_gdi.py", line 3493, in GetTextExtent return _gdi_.DC_GetTextExtent(*args, **kwargs) PyAssertionError: C++ assertion "wxAssertFailure" failed in /BUILD/wxPython-src-2.6.4.0/src/mac/carbon/dc.cpp(1482): Invalid DC This seems related to the empty wx.MemoryDC created in legend.py. I found the same problem here : https://svn.enthought.com/enthought/ticket/710. Changing the wx.MemoryDC to a wx.ScreenDC works fine. I will test this under Linux and Windows and patch the code if it's ok. ---------------------------------------------------------------------- You can respond by visiting: http://wald.intevation.org/tracker/?func=detail&atid=105&aid=516&group_id=6