From mlennert at club.worldonline.be Mon Jan 3 11:17:35 2005 From: mlennert at club.worldonline.be (Moritz Lennert) Date: Mon, 3 Jan 2005 11:17:35 +0100 (CET) Subject: [Thuban-list] svgexport: line width In-Reply-To: <20041227160742.GM1497@intevation.de> References: <20041221113216.GL21459@intevation.de> <58210.164.15.134.155.1103632243.squirrel@vivegnulinux.homelinux.org> <20041223165314.GI2484@intevation.de> <20041227160742.GM1497@intevation.de> Message-ID: <32902.164.15.134.161.1104747455.squirrel@vivegnulinux.homelinux.org> Hi Bernhard, On Mon, December 27, 2004 17:07, Bernhard Reiter said: > On Thu, Dec 23, 2004 at 05:53:14PM +0100, Bernhard Reiter wrote: >> On Tue, Dec 21, 2004 at 01:30:43PM +0100, Moritz Lennert wrote: > >> > line width is always the same (1) in the svg file (at >> > least as it is read by sketch 0.6.15 on Debian) >> > whatever its value in Thuban. > > Hi Moritz, > > I cannot reproduce this problem: > > svgexport 1.0.0 > Thuban CVS current. > Skencil 0.6.15, 0.6.16 and 0.7. CVS. > > Used the iceland_sample_class.thuban > and gave the blue lines width 2 and the green ones width 3. > Also gave the farm circles a size three orange border line. > > Wrote out the map in Thuban-Map-SVG. > Opened in skencil, ungrouped the objects enough > and checked the line dialog to see that the width was different. > > Zooming in on a place where black, blue and green lines are > close to each other also makes the difference visible. > > Opening the svg file with an editor I see that > stroke-width: has the right proportions to each other. > > Can you try to zoon in and recheck? You are absolutely right. Sorry, I didn't check this enough before posting my "bug". (IIRC, I didn't ungroup.) Moritz From lorenzo.moretti at bologna.enea.it Sun Jan 16 00:11:02 2005 From: lorenzo.moretti at bologna.enea.it (Lorenzo Moretti) Date: Sun, 16 Jan 2005 00:11:02 +0100 Subject: [Thuban-list] Some errors on version 1.0.1 Message-ID: I have built a Thuban 1.0.1 for OS X. This version is a double clic app very fast and it's possible to open Thuban from a double clic on a xxxx.thuban session file. But I have some errors. This is a list. After I will submit the bugs in the bugtracker THUBAN 1.0.1 BUGS ON MAC OS X -- 1 -- Critical Generating class - Quantiles for table (not work) I select classes number from range, press Generate and I have this error: Si ? verificata una eccezione non prevista: (per piacere segnala l'errore a http://thuban.intevation.org/bugtracker.html) Traceback (most recent call last): File "/Applications/Grass/Thuban 1.0.1.app/Contents/Resources/Python/site-packages/Thuban/UI/classgen.py", line 263, in OnOK File "/Applications/Grass/Thuban 1.0.1.app/Contents/Resources/Python/site-packages/Thuban/UI/classgen.py", line 866, in GetRange AssertionError -- 2 -- Serious Toolbar is not drawing on OS X. (file mainwindow.py) In OS X the Menu is Up and it's not in the application window like Win or Unix. The same commands are in the Map menu. -- 3 -- Serious I only import geotiff files with GDAL installed: other gdal formats are not displayed. Is it a bug or is this a feature? -- 4 -- Serious Sometime Legend window is locked with display window and it's always not resizeble. This is the error when I resize the legend window over the display window: Si ? verificata una eccezione non prevista: (per piacere segnala l'errore a http://thuban.intevation.org/bugtracker.html) Traceback (most recent call last): File "/Applications/Grass/Thuban 1.0.1.app/Contents/Resources/Python/site-packages/Thuban/UI/dock.py", line 490, in _OnSashDragged AssertionError -- 5 -- Small Generating class - Uniform distribuition When you choose Groups number (1,2,3,4 or more) and you generate classes, the area with the exact last value is not colored but it's white (or your default color). I have to grow the last value and the area is colored. -- 6 -- Small Help menu is disabled (file mainwindow.py) From lorenzo.moretti at bologna.enea.it Mon Jan 17 17:53:50 2005 From: lorenzo.moretti at bologna.enea.it (Lorenzo Moretti) Date: Mon, 17 Jan 2005 17:53:50 +0100 Subject: [Thuban-list] Download for testing Thuban 1.0.1 for Mac OS X Message-ID: It's ready for testing Thuban 1.0.1 for Mac OS X (12.6 MB). Download at: http://wwwamb.bologna.enea.it/forthuban/thuban101.dmg PLEASE READ README.txt INSIDE THE PACKAGE REQUIRED - Mac OS X 10.3 or higher; - Python 2.3 (included in Mac OS X 10.3); - WxPython 2.4.2.4 for Panther or higher * * (version 2.5.x is not tested with Thuban 1.0.1 but it works from some comments). If you have already installed wxPython 2.4.2.4 or higher don't reinstall this version. THERE IS ALL IN THE PACKAGE. There is a link for downloading wxPython Thuban is built in OS X and it's fast. It's a normal Mac app and it opens .thuban file with a simple double clic and inside the README.txt file you can see how to load the extensions. BUGS KNOWN IN OS X VERSION - Toolbar is not present but you can select the same commands from Map menu. - Quantiles class not work. - Sometime Legend window is locked: exit and reopen Thuban and after press the button "Eliminate from Panel" in the Legend window. - Other bugs can be possible. Please send me your test on Thuban for OS X Bye -- ________________________________________________________________________ || Lorenzo Moretti e-mail: lorenzo.moretti at bologna.enea.it ||/|/| ENEA prot/idr Web: http://wwwamb.bologna.enea.it/ || | via Don Fiammelli, 2 FTP: ftp://ftpamb.bologna.enea.it/ (res.) ~~~~~~ 40128 BOLOGNA - ITALY Ph: +39-0516098086 Fax: +39-0516098131 Download GRASS for MAC OS X: ________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.intevation.de/pipermail/thuban-list/attachments/20050117/0f0ac9a6/attachment.html From lorenzo.moretti at bologna.enea.it Tue Jan 18 13:15:18 2005 From: lorenzo.moretti at bologna.enea.it (Lorenzo Moretti) Date: Tue, 18 Jan 2005 13:15:18 +0100 Subject: [Thuban-list] Download for testing Thuban 1.0.1 for Mac OS X Message-ID: After some comments I have rebuilt the package WITHOUT EXTERNAL DOWNLOAD. Now is all in a file. Download the file (17.3 MB) http://wwwamb.bologna.enea.it/forthuban/Thuban-OSX-Panther-1.0.1-1.dmg PLEASE READ README.rtf INSIDE THE PACKAGE REQUIRED: Mac OS X 10.3 or higher (Python 2.3 is already included in 10.3.x) Now it's complete, I hope. I ask to Thuban developers if this file can be stored in Thuban site (it's more logical) or in my site with a link from Thuban site. The file is a .dmg (disk image) already compress. The name is complete with name (Thuban), OS compatibility (OSX 10.3 Panther), version (1.0.1) and revision (1) Bye and thanks to all -- ________________________________________________________________________ || Lorenzo Moretti e-mail: lorenzo.moretti at bologna.enea.it ||/|/| ENEA prot/idr Web: http://wwwamb.bologna.enea.it/ || | via Don Fiammelli, 2 FTP: ftp://ftpamb.bologna.enea.it/ (res.) ~~~~~~ 40128 BOLOGNA - ITALY Ph: +39-0516098086 Fax: +39-0516098131 Download GRASS for MAC OS X: http://wwwamb.bologna.enea.it/forgrass/ ________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.intevation.de/pipermail/thuban-list/attachments/20050118/b827031d/attachment.html From jan at intevation.de Tue Jan 18 17:14:43 2005 From: jan at intevation.de (Jan-Oliver Wagner) Date: Tue, 18 Jan 2005 17:14:43 +0100 Subject: [Thuban-list] Re: Download for testing Thuban 1.0.1 for Mac OS X In-Reply-To: References: Message-ID: <20050118161443.GA22490@intevation.de> Hi Lorenzo, On Tue, Jan 18, 2005 at 01:15:18PM +0100, Lorenzo Moretti wrote: > I ask to Thuban developers if this file can be stored in Thuban site (it's more > logical) or in my site with a link from Thuban site. The file is a .dmg (disk > image) already compress. The name is complete with name (Thuban), OS > compatibility (OSX 10.3 Panther), version (1.0.1) and revision (1) thanks for you effort. I've added your package to the download page [1] and your name to the contributors page [2]. Best Jan [1] http://thuban.intevation.org/download.html#bin_macosx [2] http://thuban.intevation.org/about.html -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From jan at intevation.de Tue Jan 18 17:25:07 2005 From: jan at intevation.de (Jan-Oliver Wagner) Date: Tue, 18 Jan 2005 17:25:07 +0100 Subject: [Thuban-list] Some errors on version 1.0.1 In-Reply-To: References: Message-ID: <20050118162507.GB22490@intevation.de> On Sun, Jan 16, 2005 at 12:11:02AM +0100, Lorenzo Moretti wrote: > -- 1 -- Critical > Generating class - Quantiles for table (not work) > I select classes number from range, press Generate and I have this error: > Si ? verificata una eccezione non prevista: > > (per piacere segnala l'errore a > http://thuban.intevation.org/bugtracker.html) > > Traceback (most recent call last): > File "/Applications/Grass/Thuban > 1.0.1.app/Contents/Resources/Python/site-packages/Thuban/UI/classgen.py", > line 263, in OnOK > File "/Applications/Grass/Thuban > 1.0.1.app/Contents/Resources/Python/site-packages/Thuban/UI/classgen.py", > line 866, in GetRange > AssertionError Can you run "python runtests.py" in the test directory and see whether everthing works. Send error message is such occur. Note that you can add option -v for more verbose output and als run the failing tests directly to get more information. > -- 2 -- Serious > Toolbar is not drawing on OS X. (file mainwindow.py) > In OS X the Menu is Up and it's not in the application window like Win or > Unix. > The same commands are in the Map menu. strange. I would be glad if Mac OS X people could try to track this. I have no access to this operating system. > -- 3 -- Serious > I only import geotiff files with GDAL installed: > other gdal formats are not displayed. > Is it a bug or is this a feature? Thats a feature ;-) Currently Nina works on a more general integration of GDAL, but focusses the vector formats. In fact, it shoulnd be too difficult to support more then geotiff - takers? > -- 4 -- Serious > Sometime Legend window is locked with display > window and it's always not resizeble. > This is the error when I resize the legend window over the display window: > Si ? verificata una eccezione non prevista: > > (per piacere segnala l'errore a > http://thuban.intevation.org/bugtracker.html) > > Traceback (most recent call last): > File "/Applications/Grass/Thuban > 1.0.1.app/Contents/Resources/Python/site-packages/Thuban/UI/dock.py", > line 490, in _OnSashDragged > AssertionError Hm, does not happen on GNU/Linux or Windows, see -- 2 --. > -- 5 -- Small > Generating class - Uniform distribuition > When you choose Groups number (1,2,3,4 or more) > and you generate classes, the area with the exact > last value is not colored but it's white (or your > default color). I have to grow the last value and > the area is colored. Can you send a .thuban file based on iceland that demonstrates the problem? > -- 6 -- Small > Help menu is disabled (file mainwindow.py) Strange. See -- 4 --. Best Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From lorenzo.moretti at bologna.enea.it Wed Jan 19 15:51:14 2005 From: lorenzo.moretti at bologna.enea.it (Lorenzo Moretti) Date: Wed, 19 Jan 2005 15:51:14 +0100 Subject: [Thuban-list] Some errors on version 1.0.1 In-Reply-To: <20050118162507.GB22490@intevation.de> References: <20050118162507.GB22490@intevation.de> Message-ID: Hi Jan >On Sun, Jan 16, 2005 at 12:11:02AM +0100, Lorenzo Moretti wrote: >> -- 1 -- Critical >> Generating class - Quantiles for table (not work) > > I select classes number from range, press Generate and I have this error: >> Si ? verificata una eccezione non prevista: >> >> (per piacere segnala l'errore a >> http://thuban.intevation.org/bugtracker.html) >> >> Traceback (most recent call last): >> File "/Applications/Grass/Thuban >> 1.0.1.app/Contents/Resources/Python/site-packages/Thuban/UI/classgen.py", >> line 263, in OnOK >> File "/Applications/Grass/Thuban >> 1.0.1.app/Contents/Resources/Python/site-packages/Thuban/UI/classgen.py", >> line 866, in GetRange >> AssertionError > >Can you run "python runtests.py" in the test directory and see >whether everthing works. Send error message is such occur. >Note that you can add option -v for more verbose output and >als run the failing tests directly to get more information. I run every test with -v and you find the results in http://wwwamb.bologna.enea.it/forthuban/files/errors_thuban101-1_osx_runtest.txt My bugs are only in Quantiles, Toolbar, Legend Locked and not resizeble. Thuban in OS X run fast and I open every thuban file with a double clic (like .doc for Office). > > -- 2 -- Serious >> Toolbar is not drawing on OS X. (file mainwindow.py) >> In OS X the Menu is Up and it's not in the application window like Win or >> Unix. >> The same commands are in the Map menu. > >strange. I would be glad if Mac OS X people could try to track this. >I have no access to this operating system. New user have downloaded Thuban today ... > > -- 3 -- Serious >> I only import geotiff files with GDAL installed: >> other gdal formats are not displayed. >> Is it a bug or is this a feature? > >Thats a feature ;-) > >Currently Nina works on a more general integration >of GDAL, but focusses the vector formats. >In fact, it shoulnd be too difficult to support >more then geotiff - takers? OK. One question: I have seen that it's not possible to create a gtiff mosaic (many tiff linked) because every tiff delete the tiff below. Is the transparence a future feature ? "/Thuban 1.0.1.app/Contents/Resources/Python/site-packages/thuban.pyc" Another thing: in OS X I have created a double clic app but now it opens 1 session only. Is it possible in the future opens more sessions with only 1 app open? Now if I want open more session I must open more Thuban from inside app: /Thuban 1.0.1.app/Contents/Resources/Python/site-packages/thuban.pyc. This file is open from a Python session via terminal like GTK. > > -- 4 -- Serious >> Sometime Legend window is locked with display >> window and it's always not resizeble. >> This is the error when I resize the legend window over the display window: >> Si ? verificata una eccezione non prevista: >> >> (per piacere segnala l'errore a >> http://thuban.intevation.org/bugtracker.html) >> >> Traceback (most recent call last): >> File "/Applications/Grass/Thuban >> 1.0.1.app/Contents/Resources/Python/site-packages/Thuban/UI/dock.py", >> line 490, in _OnSashDragged >> AssertionError > >Hm, does not happen on GNU/Linux or Windows, see -- 2 --. > >> -- 5 -- Small >> Generating class - Uniform distribuition >> When you choose Groups number (1,2,3,4 or more) >> and you generate classes, the area with the exact >> last value is not colored but it's white (or your >> default color). I have to grow the last value and >> the area is colored. > >Can you send a .thuban file based on iceland that demonstrates >the problem? I will send a .thuban file > > -- 6 -- Small >> Help menu is disabled (file mainwindow.py) > >Strange. See -- 4 --. > >Best > > Jan >-- >Jan-Oliver Wagner http://intevation.de/~jan/ Bye and thanx -- ________________________________________________________________________ || Lorenzo Moretti e-mail: lorenzo.moretti at bologna.enea.it ||/|/| ENEA prot/idr Web: http://wwwamb.bologna.enea.it/ || | via Don Fiammelli, 2 FTP: ftp://ftpamb.bologna.enea.it/ (ris.) ~~~~~~ 40128 BOLOGNA - ITALY Ph: +39-0516098086 Fax: +39-0516098131 ________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.intevation.de/pipermail/thuban-list/attachments/20050119/5dbd0af9/attachment.html From dcalvelo at minag.gob.pe Wed Jan 19 21:05:14 2005 From: dcalvelo at minag.gob.pe (Daniel Calvelo Aros) Date: Wed, 19 Jan 2005 15:05:14 -0500 Subject: OSX quantiles [Re: [Thuban-list] Some errors on version 1.0.1] In-Reply-To: References: <20050118162507.GB22490@intevation.de> Message-ID: <20050119195042.M58901@minag.gob.pe> Hi The problem with quantiles under OSX comes from these handlers: [UI/classgen.py, lines 857-858] ... EVT_TEXT(self, ID_QUANTILES_RANGE, self.OnRangeText) EVT_BUTTON(self, ID_QUANTILES_RETRIEVE, self.OnRetrieve) ... OnRetrieve is triggered by the "Retrieve" button. It retrieves the range and does write it in the text field, but that does not trigger EVT_TEXT. I'd say it does in the other platforms since all this works. User workaround: If you *edit* the retrieved range (e.g. by deleting and retyping one digit), OnRangeText is called and everything's fine. Code workaround: I'd suggest force-calling OnRangeText within OnRetrieve, (insert 'self.OnRangeText(0)' in line 906 before the 'finally'; what do you think? I tried and it works, but is ugly. The real problem is inconsistency between wx platforms; should this be submitted to the wx people? Daniel. From lorenzo.moretti at bologna.enea.it Thu Jan 20 10:55:43 2005 From: lorenzo.moretti at bologna.enea.it (Lorenzo Moretti) Date: Thu, 20 Jan 2005 10:55:43 +0100 Subject: OSX quantiles [Re: [Thuban-list] Some errors on version 1.0.1] In-Reply-To: <20050119195042.M58901@minag.gob.pe> References: <20050118162507.GB22490@intevation.de> <20050119195042.M58901@minag.gob.pe> Message-ID: Daniel Calvelo Aros wrote >Hi > >The problem with quantiles under OSX comes from these handlers: > >[UI/classgen.py, lines 857-858] >... > EVT_TEXT(self, ID_QUANTILES_RANGE, self.OnRangeText) > EVT_BUTTON(self, ID_QUANTILES_RETRIEVE, self.OnRetrieve) >... > >OnRetrieve is triggered by the "Retrieve" button. It retrieves the range and >does write it in the text field, but that does not trigger EVT_TEXT. I'd say >it does in the other platforms since all this works. > >User workaround: If you *edit* the retrieved range (e.g. by deleting and >retyping one digit), OnRangeText is called and everything's fine. > >Code workaround: I'd suggest force-calling OnRangeText within OnRetrieve, >(insert 'self.OnRangeText(0)' in line 906 before the 'finally'; what do you >think? I tried and it works, but is ugly. The real problem is inconsistency >between wx platforms; should this be submitted to the wx people? > >Daniel. Hi Daniel Your tip works... GOOD The bug is resolved UI/classgen.py 904-907 try: min, max = table.ValueRange(self.fieldName) self.text_range.SetValue("[" + str(min) + ";" + str(max) + "]") + self.OnRangeText(0) finally: Why you say "is ugly"? Is this workaround good for CVS only for OS X with IF platform? Thanx -- ________________________________________________________________________ || Lorenzo Moretti e-mail: lorenzo.moretti at bologna.enea.it ||/|/| ENEA prot/idr Web: http://wwwamb.bologna.enea.it/ || | via Don Fiammelli, 2 FTP: ftp://ftpamb.bologna.enea.it/ (ris.) ~~~~~~ 40128 BOLOGNA - ITALY Ph: +39-0516098086 Fax: +39-0516098131 ________________________________________________________________________ From bernhard at intevation.de Thu Jan 20 12:21:48 2005 From: bernhard at intevation.de (Bernhard Reiter) Date: Thu, 20 Jan 2005 12:21:48 +0100 Subject: OSX quantiles [Re: [Thuban-list] Some errors on version 1.0.1] In-Reply-To: <20050119195042.M58901@minag.gob.pe> References: <20050118162507.GB22490@intevation.de> <20050119195042.M58901@minag.gob.pe> Message-ID: <20050120112148.GB30500@intevation.de> On Wed, Jan 19, 2005 at 03:05:14PM -0500, Daniel Calvelo Aros wrote: > The problem with quantiles under OSX comes from these handlers: > > [UI/classgen.py, lines 857-858] > ... > EVT_TEXT(self, ID_QUANTILES_RANGE, self.OnRangeText) > EVT_BUTTON(self, ID_QUANTILES_RETRIEVE, self.OnRetrieve) > ... > > OnRetrieve is triggered by the "Retrieve" button. It retrieves the range and > does write it in the text field, but that does not trigger EVT_TEXT. I'd say > it does in the other platforms since all this works. > > User workaround: If you *edit* the retrieved range (e.g. by deleting and > retyping one digit), OnRangeText is called and everything's fine. > > Code workaround: I'd suggest force-calling OnRangeText within OnRetrieve, > (insert 'self.OnRangeText(0)' in line 906 before the 'finally'; what do you > think? I tried and it works, but is ugly. The real problem is inconsistency > between wx platforms; should this be submitted to the wx people? It should be submitted to the wx people. Can you reproduce it with any wx demo? I guess that we need to make Thuban fully work with wx 2.5.x to have better change to get those bugs fixed by them. -------------- 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-list/attachments/20050120/92181929/attachment.bin From bh at intevation.de Thu Jan 20 12:30:00 2005 From: bh at intevation.de (Bernhard Herzog) Date: Thu, 20 Jan 2005 12:30:00 +0100 Subject: OSX quantiles [Re: [Thuban-list] Some errors on version 1.0.1] In-Reply-To: <20050119195042.M58901@minag.gob.pe> (Daniel Calvelo Aros's message of "Wed, 19 Jan 2005 15:05:14 -0500") References: <20050118162507.GB22490@intevation.de> <20050119195042.M58901@minag.gob.pe> Message-ID: "Daniel Calvelo Aros" writes: > [UI/classgen.py, lines 857-858] > ... > EVT_TEXT(self, ID_QUANTILES_RANGE, self.OnRangeText) > EVT_BUTTON(self, ID_QUANTILES_RETRIEVE, self.OnRetrieve) > ... > > OnRetrieve is triggered by the "Retrieve" button. It retrieves the range and > does write it in the text field, but that does not trigger EVT_TEXT. I'd say > it does in the other platforms since all this works. Thuban calls the SetValue method of the wxTextCtrl object. According to the docs (wx 2.4): Note that this function will generate a wxEVT_COMMAND_TEXT_UPDATED event. wxEVT_COMMAND_TEXT_UPDATED is the event that is handled with EVT_TEXT. So if that event is not sent on OSX, it's a bug in wxWidgets. Bernhard -- Intevation GmbH http://intevation.de/ Skencil http://skencil.org/ Thuban http://thuban.intevation.org/ From bernhard at intevation.de Thu Jan 20 12:32:59 2005 From: bernhard at intevation.de (Bernhard Reiter) Date: Thu, 20 Jan 2005 12:32:59 +0100 Subject: OSX quantiles [Re: [Thuban-list] Some errors on version 1.0.1] In-Reply-To: References: <20050118162507.GB22490@intevation.de> <20050119195042.M58901@minag.gob.pe> Message-ID: <20050120113259.GC30500@intevation.de> On Thu, Jan 20, 2005 at 10:55:43AM +0100, Lorenzo Moretti wrote: > Daniel Calvelo Aros wrote > >The problem with quantiles under OSX comes from these handlers: > Your tip works... GOOD > > The bug is resolved > UI/classgen.py 904-907 > > try: > min, max = table.ValueRange(self.fieldName) > self.text_range.SetValue("[" + str(min) + ";" + str(max) + > "]") > + self.OnRangeText(0) > finally: > > Why you say "is ugly"? I cannot immedeatly see how this could hurt otherwise, so I commited this to CVS HEAD for now. > Is this workaround good for CVS only for OS X with IF platform? Conditionals for certain platform should be avoided if possible, as they make the code really hard to maintain. -------------- 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-list/attachments/20050120/19a51820/attachment.bin From dcalvelo at minag.gob.pe Thu Jan 20 19:07:05 2005 From: dcalvelo at minag.gob.pe (Daniel Calvelo Aros) Date: Thu, 20 Jan 2005 13:07:05 -0500 Subject: OSX quantiles [Re: [Thuban-list] Some errors on version 1.0.1] In-Reply-To: <20050120113259.GC30500@intevation.de> References: <20050118162507.GB22490@intevation.de> <20050119195042.M58901@minag.gob.pe> <20050120113259.GC30500@intevation.de> Message-ID: <20050120175613.M33094@minag.gob.pe> From: Bernhard Reiter > On Thu, Jan 20, 2005 at 10:55:43AM +0100, Lorenzo Moretti wrote: > > UI/classgen.py 904-907 > > > > try: > > min, max = table.ValueRange(self.fieldName) > > self.text_range.SetValue("[" + str(min) + ";" + str(max) + > > "]") > > + self.OnRangeText(0) > > finally: > > > > Why you say "is ugly"? > > I cannot immedeatly see how this could hurt otherwise, > so I commited this to CVS HEAD for now. I said ugly because OnRangeText is supposed to be an event handler, not a regular function... Oh, never mind, it's just nitpicky. It works well for the other platforms too, BTW. I've also been looking at the other OSX problems. Most are wx's fault. For example, the sash assertion exception is triggered by the fact that the sash's GetChildren() returns a triplet [scrollbar,scrollbar,panel] in OSX instead of [panel,panel]. I suspect this is linked to the toolbar not displaying, the legend scrollbar not always working, and docking/undocking not resizing properly the sash. Events not triggered and panel wierdnesses... I'm afraid we should aim for wx2.5 in order to have OSX as a supported platform. Will look into it a little: try to spot these problems in the wx demo and look into wx bug reports, I hope they are fixed in 2.5. Lorenzo, could you describe your development environment (python modules, wx installation,...) in order to duplicate it here? I only have your dmg installed. And a great piece of work it is. Daniel. From bernhard at intevation.de Thu Jan 20 19:18:49 2005 From: bernhard at intevation.de (Bernhard Reiter) Date: Thu, 20 Jan 2005 19:18:49 +0100 Subject: OSX quantiles [Re: [Thuban-list] Some errors on version 1.0.1] In-Reply-To: <20050120175613.M33094@minag.gob.pe> References: <20050118162507.GB22490@intevation.de> <20050119195042.M58901@minag.gob.pe> <20050120113259.GC30500@intevation.de> <20050120175613.M33094@minag.gob.pe> Message-ID: <20050120181849.GF7470@intevation.de> On Thu, Jan 20, 2005 at 01:07:05PM -0500, Daniel Calvelo Aros wrote: > I've also been looking at the other OSX problems. Most are wx's fault. Ah, thanks for doing so, as Jan already wrote, we rarely have access to that platform to test. > I'm afraid we should aim for wx2.5 in order to have OSX as a supported > platform. Will look into it a little: try to spot these problems in the wx > demo and look into wx bug reports, I hope they are fixed in 2.5. I agree that we should make Thuban work well with wx2.5, help and contributions welcome on thuban-devel. (That is where we should go for the glory technical details I guess.) Bernhard R. -------------- 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-list/attachments/20050120/01baa73b/attachment.bin From lorenzo.moretti at bologna.enea.it Fri Jan 21 12:50:58 2005 From: lorenzo.moretti at bologna.enea.it (Lorenzo Moretti) Date: Fri, 21 Jan 2005 12:50:58 +0100 Subject: OSX quantiles [Re: [Thuban-list] Some errors on version 1.0.1] In-Reply-To: <20050120175613.M33094@minag.gob.pe> References: <20050118162507.GB22490@intevation.de> <20050119195042.M58901@minag.gob.pe> <20050120113259.GC30500@intevation.de> <20050120175613.M33094@minag.gob.pe> Message-ID: Daniel wrote >I said ugly because OnRangeText is supposed to be an event handler, not a >regular function... Oh, never mind, it's just nitpicky. > >It works well for the other platforms too, BTW. Hi Daniel Ok I understand >I've also been looking at the other OSX problems. Most are wx's fault. For >example, the sash assertion exception is triggered by the fact that the sash's >GetChildren() returns a triplet [scrollbar,scrollbar,panel] in OSX instead of >[panel,panel]. I suspect this is linked to the toolbar not displaying, the >legend scrollbar not always working, and docking/undocking not resizing >properly the sash. Events not triggered and panel wierdnesses... Yes I think so. Legend, dock, icon problems are linked to the toolbar. I've seen Thuban on Win and Linux. The toolbar is integrated with menu in this way. Only 1 window (WINDOW A) with this sequence: - Menu (row 1 of WINDOW A) - Toolbar (row 2 - icons on WINDOW A) - Legend + Display (row 3 new window, WINDOW B + WINDOW C nested in WINDOW A) I have built Thuban also in FINK with X11 (OS X is Unix) and it works with all icons like Win and Linux: there is 1 window only. But in OS X native (not X11) the gui is different. I have not 1 window only but the menu go up and it is broken from the rest and toolbar goes out. I have: - Menu (always up, not in a window) - Toolbar (missing because it doesn't find WINDOW A for icons) - Legend + Display (row 3 new in a window, WINDOW B + WINDOW C) The resizing problem is linked to this one: WINDOW A is not present. The map work because they are on WINDOW C In OSX the Toolbar must to go on a new window (row 1) and below Legend window + Dispay window (row 2) >I'm afraid we should aim for wx2.5 in order to have OSX as a supported >platform. Will look into it a little: try to spot these problems in the wx >demo and look into wx bug reports, I hope they are fixed in 2.5. Now wxpython on Mac is 2.5.3.1 wxWindows is 2.5.3 but I have used: wxpython on Mac 2.4.2.0 wxWindows 2.4.2 In Thuban OS X the only problems are in quantiles and toolbar Your workaround for quantiles is good and it works. About toolbar I have seen the demo files in 2.4.2 and they work in OS X. Example: pysketch is interesting Inside the samples/pySketch folder I have entered in terminal: % pythonw pySketch.pyw and the program is started without problems: the menu is up and I have a window with: - row 1: 7 icons (toolbar) - row 2: icons at left and display at right Thuban is would be like this one (in OS X version) Inside the pysketch code: Menu up > # Setup our menu bar. > > menuBar = wxMenuBar() > > self.fileMenu = wxMenu() > self.fileMenu.Append(wxID_NEW, "New\tCTRL-N") > self.fileMenu.Append(wxID_OPEN, "Open...\tCTRL-O") > self.fileMenu.Append(wxID_CLOSE, "Close\tCTRL-W") > self.fileMenu.AppendSeparator() > ..... row 1 > # Create our toolbar. > > self.toolbar = self.CreateToolBar(wxTB_HORIZONTAL | > wxNO_BORDER | wxTB_FLAT) > > self.toolbar.AddSimpleTool(wxID_NEW, > wxBitmap("images/new.bmp", > wxBITMAP_TYPE_BMP), > "New") > self.toolbar.AddSimpleTool(wxID_OPEN, > wxBitmap("images/open.bmp", > wxBITMAP_TYPE_BMP), > ..... row 2 (left side) > # Setup our tool palette, with all our drawing tools and option icons. > > self.toolPalette = wxBoxSizer(wxVERTICAL) > > self.selectIcon = ToolPaletteIcon(self.topPanel, id_SELECT, > "select", "Selection Tool") > self.lineIcon = ToolPaletteIcon(self.topPanel, id_LINE, > "line", "Line Tool") > self.rectIcon = ToolPaletteIcon(self.topPanel, id_RECT, > "rect", "Rectangle Tool") > ..... Now Thuban code in Thuban/UI/mainwindow.py ># Map menu >_method_command("map_projection", _("Pro&jection..."), "MapProjection", > helptext = _("Set or change the map projection")) > >_tool_command("map_zoom_in_tool", _("&Zoom in"), "ZoomInTool", "ZoomInTool", > helptext = _("Switch to map-mode 'zoom-in'"), icon = "zoom_in", > sensitive = _has_visible_map) >_tool_command("map_zoom_out_tool", _("Zoom &out"), "ZoomOutTool", >"ZoomOutTool", > helptext = _("Switch to map-mode 'zoom-out'"), icon = >"zoom_out", > sensitive = _has_visible_map) > >....... The icons are with menu because they go on WINDOW A but this is wrong for OS X. WINDOW A is not present. The source code like pysketch is good for the total compatibility between platforms. >Lorenzo, could you describe your development environment (python modules, wx >installation,...) in order to duplicate it here? I only have your dmg >installed. And a great piece of work it is. > This is the method. I have installed in OS X 10.3 (Python 2.3 is included): - XCode 1.5 (Developer software free from Apple http://connect.apple.com) - addon for Python 2.3 for Panther (http://homepages.cwi.nl/~jack/macpython/download.html) - wxWindows 2.4.2 for the Mac (http://www.wxwindows.org/) (it's old but now it's better for Thuban) - wxPython on Mac 2.4.2.0 for Python 2.3 (http://www.wxpython.org/) (it's old but now it's better for Thuban) - SQLite 2.8.15 - PySQLite 0.5.1 - Proj 4.4.9 (installed in /usr/local/thubanlib) - GDAL 1.2.5 (built without python and installed in /usr/local/thubanlib and after the I have built python module) - PostgreSQL + PostGIS (7.4.3 + 0.8.1) - mxDateTime 2.0.5 (http://www.egenix.com/files/python/mxDateTime.html) - Pyscopg 1.1.14 (http://www.python.org/topics/database/modules.html) this is a bit complex because it requires a folder /postgresql-7.4.1/src/include/catalog/ not present in binary PostgreSQL. You must build PostgreSQL + PostGIS and after you must copy this folder on your bin build: % cp -r /src/postgresql-7.4.1/src/include/catalog/ /usr/local/pgsql/include/ After you can build Pyscopg 1.1.14 with: ./configure \ --with-postgres-libraries=/usr/local/pgsql/lib \ --with-postgres-includes=/usr/local/pgsql/include \ --with-mxdatetime-includes=/Library/Python/2.3/mx/DateTime/mxDateTime - Thuban in setup.py you must change the path for proj, gdal_config and wx. Now Thuban is built like a normal UNIX app in /usr/local/lib/thuban and I can open it from terminal .... but I want an OS X program with a simple double clic and with all libs linked internally. There are many and many libraries linked to Thuban. I have an help as you seen on my ReadMe file: - py2app (http://undefined.org/python/#py2app) It's like py2exe in Win and it's fantastic. Drag and drop and I have created in 5 sec an app with some libs linked. It doesn't run .... Now inside the package I have seen the code and I have entered in some folders all wx and wxpython needs for Thuban. I check the code and I have seen that the only external libs need for Thuban are: - libwx_mac-2.4.*.dylib and libwx_mac_gl-2.4.*.dylib (4 files + 4 sym links) installed in /usr/local/lib; - proj and gdal installed in /usr/local/thunalib (new folder creates from me) This libs don't overwrite libs installed in OS X. If you have newer versions of wxPython or wxWindows you can use them because they have another name. Inside the package there are all python extensions and other libs need for Python. I wanted to build a simple app without installer but I must install these few libs and I have create a double clic pkg file for all users without external download. (DMG file is 17 MB compressed but the app is about 50 MB and the libs in /usr/local about 11 MB) Advantage - mac package is different from other platforms because it doesn't require external download. Normal user wants a simple app with a double clic on file and thuban do it. I do a double clic on .thuban file and it is opened in Thuban; - you can change the Thuban code inside the package (eg: your workaround on Quantiles is easy to apply in Thuban: see http://wwwamb.bologna.enea.it/forthuban) - it always work with any other libs installes from other software because it uses only few external libs in a new directory thubanlib. What I want to see on Thuban: - better raster support (eg geotiff loaded as mosaic: now every raster delete the raster below); - gdal-ogr support; - grass support (raster-vect); - text label more easy (now I must enter the label one by one); - printing better (SVG now is good but not for all users); - importAPR (it's a fantastic idea - this a big step for many users) ------------------------------------------- NOTE FOR JAN Notes are wrong on http://thuban.intevation.org/download.html#bin_macosx. The notes are old. New notes: Please first read the file ReadMe inside the package Notes: Mac OS X 10.3 or higher is required (Python 2.3 is included in OS X 10.3) Thuban is built in OS X and it's fast. It's a normal Mac app and it opens .thuban file with a simple double click and inside the ReadMe file you can see how to load the extensions. Known Bugs: Toolbar is not present but you can select the same commands from Map menu. Quantiles class not work. Sometime Legend window is locked: exit and reopen Thuban and after press the button "UnDock" in the Legend window. Bye and good work -- ________________________________________________________________________ || Lorenzo Moretti e-mail: lorenzo.moretti at bologna.enea.it ||/|/| ENEA prot/idr Web: http://wwwamb.bologna.enea.it/ || | via Don Fiammelli, 2 FTP: ftp://ftpamb.bologna.enea.it/ (res.) ~~~~~~ 40128 BOLOGNA - ITALY Ph: +39-0516098086 Fax: +39-0516098131 Download GRASS for MAC OS X: http://wwwamb.bologna.enea.it/forgrass/ ________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.intevation.de/pipermail/thuban-list/attachments/20050121/cde0d9d5/attachment.html From jan at intevation.de Fri Jan 21 15:55:26 2005 From: jan at intevation.de (Jan-Oliver Wagner) Date: Fri, 21 Jan 2005 15:55:26 +0100 Subject: OSX quantiles [Re: [Thuban-list] Some errors on version 1.0.1] In-Reply-To: References: <20050118162507.GB22490@intevation.de> <20050119195042.M58901@minag.gob.pe> <20050120113259.GC30500@intevation.de> <20050120175613.M33094@minag.gob.pe> Message-ID: <20050121145526.GB30778@intevation.de> On Fri, Jan 21, 2005 at 12:50:58PM +0100, Lorenzo Moretti wrote: > What I want to see on Thuban: > - better raster support (eg geotiff loaded as mosaic: now every raster delete > the raster below); yes, that would be really helpful. So far, the implementation is not scheduled yet. > - gdal-ogr support; Being worked on by Nina. OGR is going to be an extension, a first working version for shapefiles is already in CVS HEAD. > - grass support (raster-vect); Yes, something that is on the wishlist for quite some time. But here also so far not scheduled yet. > - text label more easy (now I must enter the label one by one); What do you have in mind here? > - printing better (SVG now is good but not for all users); What do you have in mind? > - importAPR (it's a fantastic idea - this a big step for many users) a fulll implementation will never be possible since Thuban will always differ in some ways from ArcView. But I try to improve it step by step (note that I do this without haveing ArcView available ;-). Best Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From bernhard at intevation.de Fri Jan 21 17:54:39 2005 From: bernhard at intevation.de (Bernhard Reiter) Date: Fri, 21 Jan 2005 17:54:39 +0100 Subject: [Thuban-list] New Raster code in CVS In-Reply-To: <20050121145526.GB30778@intevation.de> References: <20050118162507.GB22490@intevation.de> <20050119195042.M58901@minag.gob.pe> <20050120113259.GC30500@intevation.de> <20050120175613.M33094@minag.gob.pe> <20050121145526.GB30778@intevation.de> Message-ID: <20050121165439.GC32748@intevation.de> On Fri, Jan 21, 2005 at 03:55:26PM +0100, Jan-Oliver Wagner wrote: > On Fri, Jan 21, 2005 at 12:50:58PM +0100, Lorenzo Moretti wrote: > > What I want to see on Thuban: > > - better raster support (eg geotiff loaded as mosaic: now every raster delete > > the raster below); > > yes, that would be really helpful. > So far, the implementation is not scheduled yet. If I am not completely wrong Jonathan today checked in new raster code that does not delete everything, so basic mosaicing can work. However the edges are not sharp yet. ;) -------------- 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-list/attachments/20050121/d273b33b/attachment.bin From jonathan at jpcoles.com Fri Jan 21 18:32:03 2005 From: jonathan at jpcoles.com (Jonathan Coles) Date: Fri, 21 Jan 2005 12:32:03 -0500 Subject: [Thuban-list] New Raster code in CVS In-Reply-To: <20050121165439.GC32748@intevation.de> References: <20050118162507.GB22490@intevation.de> <20050119195042.M58901@minag.gob.pe> <20050120113259.GC30500@intevation.de> <20050120175613.M33094@minag.gob.pe> <20050121145526.GB30778@intevation.de> <20050121165439.GC32748@intevation.de> Message-ID: <1106328723.3712.48.camel@localhost.localdomain> Am Freitag, den 21.01.2005, 17:54 +0100 schrieb Bernhard Reiter: > On Fri, Jan 21, 2005 at 03:55:26PM +0100, Jan-Oliver Wagner wrote: > > On Fri, Jan 21, 2005 at 12:50:58PM +0100, Lorenzo Moretti wrote: > > > What I want to see on Thuban: > > > - better raster support (eg geotiff loaded as mosaic: now every raster delete > > > the raster below); > > > > yes, that would be really helpful. > > So far, the implementation is not scheduled yet. > > If I am not completely wrong Jonathan today checked in new raster > code that does not delete everything, so basic mosaicing can work. > However the edges are not sharp yet. > > ;) i wasn't going to comment on this until i have a working implementation of the raster layer dialog, but i will since you bring it up again. if by mosaic you mean loading several raster layers where the images are not (or partially) overlapping then yes, this should work in theory, but i don't have proper data to test it. if you have data that you're willing to share, please send it to me directly, or post a link to it. why do you say that the edges are not sharp? i believe that the code i checked in had masking enabled by default, so only the "good" data should get drawn, which means that the projected edges of the image should be perfect. if i'm mistaken please correct me, and also, if you have it, send me test files. --jonathan -- ===================================================================== Jonathan Coles http://www.jpcoles.com jonathan at jpcoles.com GnuPG Key: /gpg_pub_key.asc ===================================================================== From bernhard at intevation.de Sat Jan 22 16:15:35 2005 From: bernhard at intevation.de (Bernhard Reiter) Date: Sat, 22 Jan 2005 16:15:35 +0100 Subject: [Thuban-list] New Raster code in CVS In-Reply-To: <1106328723.3712.48.camel@localhost.localdomain> References: <20050118162507.GB22490@intevation.de> <20050119195042.M58901@minag.gob.pe> <20050120113259.GC30500@intevation.de> <20050120175613.M33094@minag.gob.pe> <20050121145526.GB30778@intevation.de> <20050121165439.GC32748@intevation.de> <1106328723.3712.48.camel@localhost.localdomain> Message-ID: <20050122151535.GA11811@intevation.de> On Fri, Jan 21, 2005 at 12:32:03PM -0500, Jonathan Coles wrote: > if by mosaic you mean loading several raster layers where the images are > not (or partially) overlapping then yes, this should work in theory > Cool! > why do you say that the edges are not sharp? i believe that the code i > checked in had masking enabled by default, so only the "good" data > should get drawn, which means that the projected edges of the image > should be perfect. if i'm mistaken please correct me, and also, if you > have it, send me test files. I was just guessing rom the discussions I have had with Bernhard H. and what I have geathered from the list and the code. Also have not done a test. From bernhard at intevation.de Sat Jan 22 16:29:11 2005 From: bernhard at intevation.de (Bernhard Reiter) Date: Sat, 22 Jan 2005 16:29:11 +0100 Subject: [Thuban-list] Thuban 1.0.1 [bernhard@intevation.de: Experimental Mandrake 10.0 package] Message-ID: <20050122152911.GC11811@intevation.de> FYI. -------------- next part -------------- An embedded message was scrubbed... From: Bernhard Reiter Subject: Experimental Mandrake 10.0 package Date: Sat, 22 Jan 2005 16:25:59 +0100 Size: 3144 Url: http://www.intevation.de/pipermail/thuban-list/attachments/20050122/a79d7b43/attachment.txt From bernhard at intevation.de Sat Jan 22 19:18:46 2005 From: bernhard at intevation.de (Bernhard Reiter) Date: Sat, 22 Jan 2005 19:18:46 +0100 Subject: [Thuban-list] New Raster code in CVS In-Reply-To: <20050122151535.GA11811@intevation.de> References: <20050119195042.M58901@minag.gob.pe> <20050120113259.GC30500@intevation.de> <20050120175613.M33094@minag.gob.pe> <20050121145526.GB30778@intevation.de> <20050121165439.GC32748@intevation.de> <1106328723.3712.48.camel@localhost.localdomain> <20050122151535.GA11811@intevation.de> Message-ID: <20050122181846.GA14817@intevation.de> On Sat, Jan 22, 2005 at 04:15:35PM +0100, Bernhard Reiter wrote: > > why do you say that the edges are not sharp? i believe that the code i > > checked in had masking enabled by default, so only the "good" data > > should get drawn, which means that the projected edges of the image > > should be perfect. if i'm mistaken please correct me, and also, if you > > have it, send me test files. You could use gdal_translate to cut the island.tif in pieces. ;) Works with other images, too. -------------- 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-list/attachments/20050122/13daea54/attachment.bin From serviopa at sili.com.br Sat Jan 22 21:32:50 2005 From: serviopa at sili.com.br (Servio Tulio Pires Amarante) Date: Sat, 22 Jan 2005 18:32:50 -0200 Subject: [Thuban-list] Thuban 1.0.1 [bernhard@intevation.de: Experimental Mandrake 10.0 package] In-Reply-To: <20050122152911.GC11811@intevation.de> References: <20050122152911.GC11811@intevation.de> Message-ID: <200501221832.50158.serviopa@sili.com.br> Are there any chance to make it working in MDK 10.1? Even with wxPython 2.4.x in MDK 10.1, taken from 10.0, no success here. From bernhard at intevation.de Mon Jan 24 09:46:23 2005 From: bernhard at intevation.de (Bernhard Reiter) Date: Mon, 24 Jan 2005 09:46:23 +0100 Subject: [Thuban-list] Thuban 1.0.1 [bernhard@intevation.de: Experimental Mandrake 10.0 package] In-Reply-To: <200501221832.50158.serviopa@sili.com.br> References: <20050122152911.GC11811@intevation.de> <200501221832.50158.serviopa@sili.com.br> Message-ID: <20050124084623.GA12984@intevation.de> On Sat, Jan 22, 2005 at 06:32:50PM -0200, Servio Tulio Pires Amarante wrote: > Are there any chance to make it working in MDK 10.1? > Even with wxPython 2.4.x > in MDK 10.1, taken from 10.0, no success here. Try to be as specific as you can about your difficulties. What did you do exactely? What nature are the problem? Warnings? Error messages? Bernhard -------------- 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-list/attachments/20050124/6e8611f7/attachment.bin From lorenzo.moretti at bologna.enea.it Mon Jan 24 11:59:26 2005 From: lorenzo.moretti at bologna.enea.it (Lorenzo Moretti) Date: Mon, 24 Jan 2005 11:59:26 +0100 Subject: [Thuban-list] Download new Thuban 1.0.1-2 for Mac OS X Message-ID: It's ready for downloading new OS X (1.0.1-2) version (15.9 MB) at: http://wwwamb.bologna.enea.it/forthuban/ PLEASE READ ReadMe FILE INSIDE THE PACKAGE REQUIRED: Mac OS X 10.3 or higher Changes from 1.0.1-1 Thuban is only an APPLICATION without installer (there aren't external libraries); quantiles class problem fixed; better raster support BUGS KNOWN IN OS X VERSION - Toolbar is not present but you can select the same commands from Map menu. - Sometime Legend window is locked: exit and reopen Thuban and after press the button "UnDock" in the Legend window. - Thuban is opened with your language but if you have errors or problems with translation go to native language (english) in this way: change this folder name: Thuban 1.0.1.app/Contents/Resources/Python/site-packages/Resources/Locale in Thuban 1.0.1.app/Contents/Resources/Python/site-packages/Resources/Locale_no - Other bugs can be possible. The big change is new Application without installer. ALL LIBRARIES (wx 2.4, proj, gdal, etc...) are inside the app. - Now the bigger bug in OS X version is Toolbar not present (see my previous post); - Raster is better (with new lib raster above does not delete raster below) but it lost the mosaic feature: white part remains. Bye -- ________________________________________________________________________ || Lorenzo Moretti e-mail: lorenzo.moretti at bologna.enea.it ||/|/| ENEA prot/idr Web: http://wwwamb.bologna.enea.it/ || | via Don Fiammelli, 2 FTP: ftp://ftpamb.bologna.enea.it/ (ris.) ~~~~~~ 40128 BOLOGNA - ITALY Ph: +39-0516098086 Fax: +39-0516098131 ________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.intevation.de/pipermail/thuban-list/attachments/20050124/9ad95587/attachment.html From serviopa at sili.com.br Mon Jan 24 18:57:02 2005 From: serviopa at sili.com.br (Servio Tulio Pires Amarante) Date: Mon, 24 Jan 2005 15:57:02 -0200 Subject: [Thuban-list] Thuban 1.0.1 [bernhard@intevation.de: Experimental Mandrake 10.0 package] In-Reply-To: <20050124084623.GA12984@intevation.de> References: <20050122152911.GC11811@intevation.de> <200501221832.50158.serviopa@sili.com.br> <20050124084623.GA12984@intevation.de> Message-ID: <200501241557.02437.serviopa@sili.com.br> Em Seg 24 Jan 2005 06:46, Bernhard Reiter escreveu: > > Try to be as specific as you can about your difficulties. > What did you do exactely? > What nature are the problem? > Warnings? Error messages? > > Bernhard > Bernhard I got this when calling Thuban: $ thuban Traceback (most recent call last): File "/usr/bin/thuban", line 20, in ? import Thuban.UI.main File "/usr/lib/thuban/Thuban/UI/main.py", line 18, in ? from application import ThubanApplication File "/usr/lib/thuban/Thuban/UI/application.py", line 33, in ? import view File "/usr/lib/thuban/Thuban/UI/view.py", line 40, in ? from renderer import ScreenRenderer, ExportRenderer, PrinterRenderer File "/usr/lib/thuban/Thuban/UI/renderer.py", line 25, in ? from wxproj import draw_polygon_shape, draw_polygon_init ImportError: /usr/lib/wxPython/lib/libwx_gtk2u-2.4.so.0: undefined symbol: _gtk_accel_group_detach I guess that something else is missing, but which library? S?rvio From bernhard at intevation.de Mon Jan 24 20:20:35 2005 From: bernhard at intevation.de (Bernhard Reiter) Date: Mon, 24 Jan 2005 20:20:35 +0100 Subject: [Thuban-list] Thuban 1.0.1 [bernhard@intevation.de: Experimental Mandrake 10.0 package] In-Reply-To: <200501241557.02437.serviopa@sili.com.br> References: <20050122152911.GC11811@intevation.de> <200501221832.50158.serviopa@sili.com.br> <20050124084623.GA12984@intevation.de> <200501241557.02437.serviopa@sili.com.br> Message-ID: <20050124192035.GF29023@intevation.de> On Mon, Jan 24, 2005 at 03:57:02PM -0200, Servio Tulio Pires Amarante wrote: > Em Seg 24 Jan 2005 06:46, Bernhard Reiter escreveu: > I got this when calling Thuban: > > $ thuban > Traceback (most recent call last): > File "/usr/bin/thuban", line 20, in ? > import Thuban.UI.main > File "/usr/lib/thuban/Thuban/UI/main.py", line 18, in ? > from application import ThubanApplication > File "/usr/lib/thuban/Thuban/UI/application.py", line 33, in ? > import view > File "/usr/lib/thuban/Thuban/UI/view.py", line 40, in ? > from renderer import ScreenRenderer, ExportRenderer, PrinterRenderer > File "/usr/lib/thuban/Thuban/UI/renderer.py", line 25, in ? > from wxproj import draw_polygon_shape, draw_polygon_init > ImportError: /usr/lib/wxPython/lib/libwx_gtk2u-2.4.so.0: undefined symbol: > _gtk_accel_group_detach > > I guess that something else is missing, but which library? Seems to be a problem within the Mandrake packages, probably some GTK package. It could be that the requirements only specify a >= version for GTK and that the even newer versions do not work anymore. Did you try with the Mandrake 10.1 packages and rebuild the src.rpm? Bernhard -------------- 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-list/attachments/20050124/5765cd1e/attachment.bin From lorenzo.moretti at bologna.enea.it Tue Jan 25 13:18:44 2005 From: lorenzo.moretti at bologna.enea.it (Lorenzo Moretti) Date: Tue, 25 Jan 2005 13:18:44 +0100 Subject: [Thuban-list] Download new Thuban 1.0.1-3 for Mac OS X Message-ID: Sorry but this version fix 1 bug with proj lib. It's ready for downloading new OS X (1.0.1-3) version (15.9 MB) at: http://wwwamb.bologna.enea.it/forthuban/ PLEASE READ ReadMe FILE INSIDE THE PACKAGE REQUIRED: Mac OS X 10.3 or higher Changes from 1.0.1-2 problem library fixed NOTE Problem with RASTER reprojected: If I import RASTER and I assign it the right projection the map is OK with the vectors. If I change the map projection the raster is not displayed and I only see the vectors modified Vectors work and Raster no with the reprojection... Bye -- ________________________________________________________________________ || Lorenzo Moretti e-mail: lorenzo.moretti at bologna.enea.it ||/|/| ENEA prot/idr Web: http://wwwamb.bologna.enea.it/ || | via Don Fiammelli, 2 FTP: ftp://ftpamb.bologna.enea.it/ (ris.) ~~~~~~ 40128 BOLOGNA - ITALY Ph: +39-0516098086 Fax: +39-0516098131 ________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.intevation.de/pipermail/thuban-list/attachments/20050125/88411fad/attachment.html From serviopa at sili.com.br Tue Jan 25 20:02:55 2005 From: serviopa at sili.com.br (Servio Tulio Pires Amarante) Date: Tue, 25 Jan 2005 17:02:55 -0200 Subject: [Spam] Re: [Thuban-list] Thuban 1.0.1 [bernhard@intevation.de: ExperimentalMandrake 10.0 package] In-Reply-To: <20050124192035.GF29023@intevation.de> References: <20050122152911.GC11811@intevation.de> <200501241557.02437.serviopa@sili.com.br> <20050124192035.GF29023@intevation.de> Message-ID: <200501251702.56258.serviopa@sili.com.br> Em Seg 24 Jan 2005 17:20, Bernhard Reiter escreveu: > Seems to be a problem within the Mandrake packages, probably some GTK package. > It could be that the requirements only specify a >= version for GTK > and that the even newer versions do not work anymore. > > Did you try with the Mandrake 10.1 packages and rebuild the src.rpm? > Bernhard > > Yes, I did. I can't figure out which GTK package is missing. As I have to run ldconfig to tell Thuban where the wxPython stuff can be found, it is possible that Thuban is looking for something else in a wrong place. There are other wx and wxPython stuff running fine here, so it is problem with Thuban needs. S?rvio From bernhard at intevation.de Tue Jan 25 23:37:21 2005 From: bernhard at intevation.de (Bernhard Reiter) Date: Tue, 25 Jan 2005 23:37:21 +0100 Subject: [Thuban-list] Re: Experimental Mandrake 10.0 package In-Reply-To: <20050124085054.GC12984@intevation.de> References: <20050122152559.GB11811@intevation.de> <20050124085054.GC12984@intevation.de> Message-ID: <20050125223721.GA16221@intevation.de> On Mon, Jan 24, 2005 at 09:50:54AM +0100, Bernhard Reiter wrote: > On Sat, Jan 22, 2005 at 07:25:15PM +0100, Bernhard Herzog wrote: > > Bernhard Reiter writes: > > > > > http://ftp.intevation.de/users/bernhard/thuban/mandrake/ > > > Placed some experimental Mandrake 10.0 i586 packages there. > > > > Why is there a shapelib RPM? It shouldn't be necessary for Thuban. > > Thuban contains a copy of part of shapelib. Put up a new version that has no shapelib requirement, that was just a mistake on my side. It is also build with gdal, so if you have gdal installed you can use it. Note that reprojection with gdal so far did not work for me on Mandrake for unknown reason. (My personal guess is problems because of optimising compiler switches.) -------------- 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-list/attachments/20050125/4f0570b6/attachment.bin From bernhard at intevation.de Tue Jan 25 23:44:49 2005 From: bernhard at intevation.de (Bernhard Reiter) Date: Tue, 25 Jan 2005 23:44:49 +0100 Subject: [Thuban-list] Thuban on Mandrake 10.1? In-Reply-To: <200501251702.56258.serviopa@sili.com.br> References: <20050122152911.GC11811@intevation.de> <200501241557.02437.serviopa@sili.com.br> <20050124192035.GF29023@intevation.de> <200501251702.56258.serviopa@sili.com.br> Message-ID: <20050125224449.GB16221@intevation.de> On Tue, Jan 25, 2005 at 05:02:55PM -0200, Servio Tulio Pires Amarante wrote: > Em Seg 24 Jan 2005 17:20, Bernhard Reiter escreveu: > I can't figure out which GTK package is missing. As I have to run > ldconfig to tell Thuban where the wxPython stuff can be found, it is possible > that Thuban is looking for something else in a wrong place. There are other > wx and wxPython stuff running fine here, so it is problem with Thuban needs. Actually this is an issue with the loader then, the missing symbol seems to be within the Mandrake package, though. You could run ldd on the /usr/lib/wxPython/lib/libwx_gtk2u-2.4.so.0 Here on Mandrake 10.0 that gives me: ldd /usr/lib/wxPython/lib/libwx_gtk2u-2.4.so.0 linux-gate.so.1 => (0xffffe000) libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x4056c000) libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x407d3000) libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x40844000) libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x4085f000) libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x40873000) libpangox-1.0.so.0 => /usr/lib/libpangox-1.0.so.0 (0x40896000) libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x408a3000) libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x408d8000) libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x4090d000) libdl.so.2 => /lib/libdl.so.2 (0x40911000) libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x40914000) libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x40919000) libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x40985000) libm.so.6 => /lib/tls/libm.so.6 (0x409aa000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x409cd000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40a8d000) libpthread.so.0 => /lib/tls/libpthread.so.0 (0x40a96000) libc.so.6 => /lib/tls/libc.so.6 (0x40aa6000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40bee000) libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x40cd1000) libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0x40cd5000) libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0x40cdd000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40ce0000) libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x40cee000) libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x40d00000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x40d09000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40d31000) libz.so.1 => /lib/libz.so.1 (0x40d90000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) libexpat.so.0 => /usr/lib/libexpat.so.0 (0x40da1000) I expext the issues to be at libgtk-x11-2.0.so.0 Grep shows that the symbol you are missing is in there on my system: nm -D /usr/lib/libgtk-x11-2.0.so.0.200.4 | grep _gtk_accel_group_detach 0003da30 T _gtk_accel_group_detach I hope this is helpful in some way! Bernhard -------------- 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-list/attachments/20050125/0cc265df/attachment.bin From serviopa at sili.com.br Wed Jan 26 05:18:49 2005 From: serviopa at sili.com.br (Servio Tulio Pires Amarante) Date: Wed, 26 Jan 2005 02:18:49 -0200 Subject: [Thuban-list] Thuban on Mandrake 10.1? In-Reply-To: <20050125224449.GB16221@intevation.de> References: <20050122152911.GC11811@intevation.de> <200501251702.56258.serviopa@sili.com.br> <20050125224449.GB16221@intevation.de> Message-ID: <200501260218.49799.serviopa@sili.com.br> > Actually this is an issue with the loader then, the missing symbol seems to > be within the Mandrake package, though. You could run ldd on the > /usr/lib/wxPython/lib/libwx_gtk2u-2.4.so.0 > > Here on Mandrake 10.0 that gives me: > ldd /usr/lib/wxPython/lib/libwx_gtk2u-2.4.so.0 > linux-gate.so.1 => (0xffffe000) > libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x4056c000) > libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x407d3000) > I expext the issues to be at libgtk-x11-2.0.so.0 > Grep shows that the symbol you are missing is in there on my system: > nm -D /usr/lib/libgtk-x11-2.0.so.0.200.4 | grep _gtk_accel_group_detach > 0003da30 T _gtk_accel_group_detach > > I hope this is helpful in some way! > Bernhard > I see. From what I read elsewhere, _gtk_accel_group_detach have been removed/replaced in GTK 2.4x, standard library in mdk 10.1. So, I think that only a new version of Thuban, built over wxPython 2.5x will run under Mandrake 10.1. The kind of changes in the system to make it run under 10.1 may causes too much trouble. S?rvio From bernhard at intevation.de Wed Jan 26 11:07:42 2005 From: bernhard at intevation.de (Bernhard Reiter) Date: Wed, 26 Jan 2005 11:07:42 +0100 Subject: [Thuban-list] Thuban on Mandrake 10.1? In-Reply-To: <200501260218.49799.serviopa@sili.com.br> References: <20050122152911.GC11811@intevation.de> <200501251702.56258.serviopa@sili.com.br> <20050125224449.GB16221@intevation.de> <200501260218.49799.serviopa@sili.com.br> Message-ID: <20050126100742.GA29851@intevation.de> On Wed, Jan 26, 2005 at 02:18:49AM -0200, Servio Tulio Pires Amarante wrote: > I see. From what I read elsewhere, _gtk_accel_group_detach have been > removed/replaced in GTK 2.4x, standard library in mdk 10.1. So, I think that > only a new version of Thuban, built over wxPython 2.5x will run under > Mandrake 10.1. The kind of changes in the system to make it run under 10.1 > may causes too much trouble. It should be possible without too much problem as wxPython 2.4 shall work without problem with GTK 2.4.x if I am not mistaken. So you might only need to rebuild wxPythonGTK from the Mandrake src.rpm once. Can you try this? It should be fairly easy. -------------- 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-list/attachments/20050126/7af78fa0/attachment.bin From bernhard at intevation.de Thu Jan 27 01:46:42 2005 From: bernhard at intevation.de (Bernhard Reiter) Date: Thu, 27 Jan 2005 01:46:42 +0100 Subject: [Thuban-list] Download new Thuban 1.0.1-3 for Mac OS X In-Reply-To: References: Message-ID: <20050127004642.GA30935@intevation.de> On Tue, Jan 25, 2005 at 01:18:44PM +0100, Lorenzo Moretti wrote: > Problem with RASTER reprojected: > > If I import RASTER and I assign it the right projection the map is OK > with the vectors. > > If I change the map projection the raster is not displayed and I only > see the vectors modified > > Vectors work and Raster no with the reprojection... I had a similiar problem on Mandrake due to proj and gdal behaving a bit strange. Try the following gdal command on the command line (and the iceland data): gdalwarp -s_srs '+proj=latlong' -t_srs '+proj=utm +zone=27 +datum=clrk66' island.tif iceland_projected.tif I got the following with my strange proj library build on Mandrake: ERROR 6: Unable to load PROJ.4 library (libproj.so), creation of OGRCoordinateTransformation failed. Creating output file is that 4810P x 1428L. ERROR 6: Unable to load PROJ.4 library (libproj.so), creation of OGRCoordinateTransformation failed. :0...10...20...30...40...50...60...70...80...90...100 - done. If this is the case doing cd /usr/lib/ ln -s libproj libproj.so ldconfig seems to resolve the issue. From bernhard at intevation.de Thu Jan 27 01:50:07 2005 From: bernhard at intevation.de (Bernhard Reiter) Date: Thu, 27 Jan 2005 01:50:07 +0100 Subject: [Thuban-list] Re: Experimental Mandrake 10.0 package In-Reply-To: <20050125223721.GA16221@intevation.de> References: <20050122152559.GB11811@intevation.de> <20050124085054.GC12984@intevation.de> <20050125223721.GA16221@intevation.de> Message-ID: <20050127005007.GB30935@intevation.de> On Tue, Jan 25, 2005 at 11:37:21PM +0100, Bernhard Reiter wrote: > On Mon, Jan 24, 2005 at 09:50:54AM +0100, Bernhard Reiter wrote: > > On Sat, Jan 22, 2005 at 07:25:15PM +0100, Bernhard Herzog wrote: > > > Bernhard Reiter writes: > > > > > > > http://ftp.intevation.de/users/bernhard/thuban/mandrake/ > > > > Placed some experimental Mandrake 10.0 i586 packages there. > > > > > > Why is there a shapelib RPM? It shouldn't be necessary for Thuban. > > > Thuban contains a copy of part of shapelib. > > Put up a new version that has no shapelib requirement, > that was just a mistake on my side. > > It is also build with gdal, so if you have gdal installed you can use it. > Note that reprojection with gdal so far did not work for me on Mandrake > for unknown reason. (My personal guess is problems because of > optimising compiler switches.) Solved the raster reprojection problem with a new proj rpm that I have just uploaded. -------------- 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-list/attachments/20050127/e7aac568/attachment.bin From serviopa at sili.com.br Thu Jan 27 07:15:06 2005 From: serviopa at sili.com.br (Servio Tulio Pires Amarante) Date: Thu, 27 Jan 2005 04:15:06 -0200 Subject: [Thuban-list] Thuban on Mandrake 10.1? In-Reply-To: <20050126100742.GA29851@intevation.de> References: <20050122152911.GC11811@intevation.de> <200501260218.49799.serviopa@sili.com.br> <20050126100742.GA29851@intevation.de> Message-ID: <200501270415.06823.serviopa@sili.com.br> > It should be possible without too much problem as wxPython 2.4 shall > work without problem with GTK 2.4.x if I am not mistaken. > > So you might only need to rebuild wxPythonGTK from the Mandrake src.rpm once. > Can you try this? It should be fairly easy. > I rebuilt wxPythonGTK, but it did not work. Thuban still asks for that missing symbol. I tried to rebuild the wxPythonGTK src rpm from the wxPython site and got the same error on that missing symbol, but now when rebuilding the rpm package... S?rvio