From jan at intevation.de Thu Dec 16 14:10:06 2004 From: jan at intevation.de (Jan-Oliver Wagner) Date: Thu, 16 Dec 2004 14:10:06 +0100 Subject: [Thuban-list] Open Source Geospatial '05 Conference Announcement Message-ID: <20041216131006.GA729@intevation.de> Hi Thuban people, probably ou have seen the announcement below already. I would be interested in if anyone from you has concrete plans to go there and maybe wants to contribute something related to Thuban. Best Jan | Open Source Geospatial '05, an international conference addressing | geospatial data technologies developed by or of relevance to the Open | Source community, will be held June 16-18, 2005 in Minneapolis, | Minnesota, USA. The conference will bring together the MapServer, | EOGEO, and OSGIS communities with the intent to be broadly inclusive. A | committee has been working since July to design a program with elements | that will interest participants from the novice to the expert. The | conference strives to build on the successes and enthusiasm generated | by previous, related meetings. This exciting event is being held on | June 16 - 18, 2005, at the University of Minnesota campus in | Minneapolis, Minnesota, USA. | | Important dates to note (dates are approximate and subject to change): | | Call for presentations: January 1st, 2005 | | Online registration begins: January 1st, 2005 | | Abstracts for presentations due: April 1st, 2005 | | Early registration ends: April 15th, 2005 | | Make your plans to attend early, as hotel space on and around the | University campus is expected to fill up quickly for the week of the | conference. | | For more information as it becomes available, please visit the | conference website at http://mapserver.gis.umn.edu/mum/mtg2005.html | | Take advantage of the opportunity Open Source Geospatial '05 offers to | network with fellow geospatial data professionals, renewing old | acquaintances and making new ones. Hope to see you there! -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From lorenzo.moretti at bologna.enea.it Fri Dec 17 17:13:22 2004 From: lorenzo.moretti at bologna.enea.it (Lorenzo Moretti) Date: Fri, 17 Dec 2004 17:13:22 +0100 Subject: [Thuban-list] Some bugs on Mac OS X Message-ID: I have built a Thuban for Mac OS X under Aqua (not Darwin) but there are some bugs. See the screenshot at: http://wwwamb.bologna.enea.it/forgrass/files/thuban_osx.jpg - The bar (zoom in, zoom out, etc) is missing (see the screenshot): I can only select these features from Map Menu (Mappa in Italian); - if I select Info from Help menu (Aiuto in Italian) I have this error Si ? verificata una eccezione non prevista: encode() argument 1 must be string, not None (per piacere segnala l'errore a http://thuban.intevation.org/bugtracker.html) Traceback (most recent call last): File "/usr/local/lib/thuban/Thuban/UI/mainwindow.py", line 284, 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 1002, in call_method apply(getattr(context.mainwindow, methodname), args) File "/usr/local/lib/thuban/Thuban/UI/mainwindow.py", line 479, in About dlg = About(self) File "/usr/local/lib/thuban/Thuban/UI/about.py", line 40, in __init__ developers = [ 'Jonathan Coles', File "/usr/local/lib/thuban/Thuban/UI/about.py", line 169, in unicodeToLocale return unicodeStr.encode(getlocale()[1]) TypeError: encode() argument 1 must be string, not None - ImportAPR - this features is very good but I have many bugs in different apr. Example: I import project.apr and the first window is "Import APR - 3775 pbject loaded". I select OK and often I have this error: Si ? verificata una eccezione non prevista: ODBBaseObject instance has no attribute 'GetThubanProp' (per piacere segnala l'errore a http://thuban.intevation.org/bugtracker.html) Traceback (most recent call last): File "/usr/local/lib/thuban/Thuban/UI/mainwindow.py", line 284, 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 "/Users/ben/.thuban/importAPR.py", line 265, in import_apr_dialog prop = symbol.GetThubanProp() AttributeError: ODBBaseObject instance has no attribute 'GetThubanProp' Sometimes Thuban imports many maps (.shp) but it does not create thematic colored map like original apr file. -------------------- Raster from GDAL The external color for raster is black in OS X and it's not good for viewing or printing. Printing from Thuban. The printing quality or PDF quality in Mac OS X is very poor. The lines are big like a screenshot. Is this a OS X problem or Thuban-Wx-Python problem? PRO for Thuban --------------- It's very very fast in OS X for raster and vector formats. TIA Great 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/20041217/8c1b6f7f/attachment.html From jan at intevation.de Fri Dec 17 18:08:45 2004 From: jan at intevation.de (Jan-Oliver Wagner) Date: Fri, 17 Dec 2004 18:08:45 +0100 Subject: [Thuban-list] Re: ImportAPR In-Reply-To: References: Message-ID: <20041217170845.GB3615@intevation.de> Hi Lorenzo, thats the type of reports I am waiting for ;-) Note: I do not have a ArcView I can play with. Thus, sending me .apr files where you have specific wishes helps me a lot. If you do so, please send me only minimalistic .apr files that contain the element you want to have improved. Preferably using the iceland demo data of Thuban. Best Jan On Fri, Dec 17, 2004 at 05:13:22PM +0100, Lorenzo Moretti wrote: > - ImportAPR - this features is very good but I have many bugs in different apr. > Example: I import project.apr and the first window is "Import APR - 3775 pbject > loaded". I select OK and often I have this error: > Si ? verificata una eccezione non prevista: > ODBBaseObject instance has no attribute 'GetThubanProp' > (per piacere segnala l'errore a http://thuban.intevation.org/bugtracker.html) > > Traceback (most recent call last): > File "/usr/local/lib/thuban/Thuban/UI/mainwindow.py", line 284, 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 "/Users/ben/.thuban/importAPR.py", line 265, in import_apr_dialog > prop = symbol.GetThubanProp() > AttributeError: ODBBaseObject instance has no attribute 'GetThubanProp' > Sometimes Thuban imports many maps (.shp) but it does not create thematic > colored map like original apr file. -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From bernhard at intevation.de Sun Dec 19 11:57:18 2004 From: bernhard at intevation.de (Bernhard Reiter) Date: Sun, 19 Dec 2004 11:57:18 +0100 Subject: [Thuban-list] Some bugs on Mac OS X In-Reply-To: References: Message-ID: <20041219105718.GC1450@intevation.de> Hi Lorenzo, On Fri, Dec 17, 2004 at 05:13:22PM +0100, Lorenzo Moretti wrote: > I have built a Thuban for Mac OS X under Aqua (not Darwin) but there > are some bugs. > See the screenshot at: > http://wwwamb.bologna.enea.it/forgrass/files/thuban_osx.jpg It is good news that you have made it work! This obviously mean I can close your report RT#2616 "Shape files are not displayed", can't I? ;) https://intevation.de/rt/webrt?serial_num=2616&display=History Can you give use some details about the various version numbers? Usually you would ust just copy and paste the about dialog information, but as you report below, this does not seem to work for you. :( > - The bar (zoom in, zoom out, etc) is missing (see the screenshot): I > can only select these features from Map Menu (Mappa in Italian); Might be a wxWidgets problem, do you have similiar difficulties with the demo applications from wxWidgets? If yes, then they probably like a bug report about this. If not, we need to get into the details. > - if I select Info from Help menu (Aiuto in Italian) I have this error > > Si ? verificata una eccezione non prevista: > encode() argument 1 must be string, not None > (per piacere segnala l'errore a > http://thuban.intevation.org/bugtracker.html) > Traceback (most recent call last): > File "/usr/local/lib/thuban/Thuban/UI/mainwindow.py", line 284, 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 1002, in > call_method > apply(getattr(context.mainwindow, methodname), args) > File "/usr/local/lib/thuban/Thuban/UI/mainwindow.py", line 479, in > About > dlg = About(self) > File "/usr/local/lib/thuban/Thuban/UI/about.py", line 40, in > __init__ > developers = [ 'Jonathan Coles', > File "/usr/local/lib/thuban/Thuban/UI/about.py", line 169, in > unicodeToLocale > return unicodeStr.encode(getlocale()[1]) > TypeError: encode() argument 1 must be string, not None Somehow getlocale() does not return a locale. Bernhard Herzog changed that code to use getdefaultlocale() two days ago. You can try this: replace getlocale with getdefaultlocale in the import from locale line the unicodeStr.encode line > - ImportAPR - this features is very good but I have many bugs in > different apr. Note that: importapr is still experimental because we need feedback from users and then fix the bugs as you can see from Jan's reply. > Raster from GDAL > > The external color for raster is black in OS X and it's not good for > viewing or printing. Can you submit a report to the tracker about the wish to make the default raster color adjustable? > Printing from Thuban. > > The printing quality or PDF quality in Mac OS X is very poor. The > lines are big like a screenshot. > > Is this a OS X problem or Thuban-Wx-Python problem? This is a general Thuban issue dealing with the possibilities of wx's device context drawing possibilities. Actually we envision to build a printing pipeline for high quality printing with Thuban and thus only have the direct print mechanism as a kind of fallback as long as the printing queue is not ready or in situations when it is not available. So for high quality printing try the route via the Thuban-Map-Svg format. This weekend I released the svgexport extension as stable 1.0.0; it allows to to write out an svg file that you can use with any decent vector drawing application to create a map for high quality printing. Markus Rechtien did a prototype implementation during his Master thesis about this printing pipeline which is based on my design concept of loosely couple components. Markus wrote a couple of script for Skencil to really make dealing with Thuban-Map-SVGs comfortable. Polishing and nicer publication within the Skencil project is pending. > PRO for Thuban > --------------- > It's very very fast in OS X for raster and vector formats. Cool! What did you compare it with? > TIA > Great work Thanks for taking the time evaluating Thuban and writing down this helpful feedback. 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/20041219/154dcf07/attachment.bin From bernhard at intevation.de Sun Dec 19 12:11:38 2004 From: bernhard at intevation.de (Bernhard Reiter) Date: Sun, 19 Dec 2004 12:11:38 +0100 Subject: [Thuban-list] High Quality printing In-Reply-To: <20041219105718.GC1450@intevation.de> References: <20041219105718.GC1450@intevation.de> Message-ID: <20041219111138.GE1450@intevation.de> On Sun, Dec 19, 2004 at 11:57:18AM +0100, Bernhard Reiter wrote: > On Fri, Dec 17, 2004 at 05:13:22PM +0100, Lorenzo Moretti wrote: > This obviously mean I can close your report [Sorry for the unusual high count of writing mistakes in my email, I am typing over a slow line here, but this is no excuse. :( ] > > Printing from Thuban. > > > > The printing quality or PDF quality in Mac OS X is very poor. The > > lines are big like a screenshot. > > > > Is this a OS X problem or Thuban-Wx-Python problem? > > This is a general Thuban issue dealing with the possibilities > of wx's device context drawing possibilities. > > Actually we envision to build a printing pipeline for high quality printing > with Thuban and thus only have the direct print mechanism as a kind > of fallback as long as the printing queue is not ready or in situations > when it is not available. > > So for high quality printing try the route via the Thuban-Map-Svg format. > This weekend I released the svgexport extension as stable 1.0.0; > it allows to to write out an svg file that you can use with any decent > vector drawing application to create a map for high quality printing. > > Markus Rechtien did a prototype implementation during his Master thesis > about this printing pipeline which is based on my design concept > of loosely couple components. > > Markus wrote a couple of script for Skencil to really make dealing > with Thuban-Map-SVGs comfortable. Polishing and nicer publication > within the Skencil project is pending. Forgot to write that you of course can use Skencil to make nice maps already. To make a long story short: If you want to print a map with a higher quality, Use the Extension->Write SVG Legend and Write SVG Map menu commands to write two files to disc. Then use a stable Skencil, e.g. 0.6.16 and open one file and insert the second one to get a nice map in which you can adapt symbols and layout for printing. Notes: Don't be alarmed on a huge black rectangle, this might be a wrongly interpreated clippath box. Just delete it. The Skencil extension scripts for selection like: "Select same line and color" can very useful. Bernhard -- Professional Service around Free Software (intevation.net) Experts for complex webmapping! In business since 1999: http://intevation.net/services/gis/webmapping.en.html -------------- 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/20041219/2776cbb2/attachment.bin From lorenzo.moretti at bologna.enea.it Mon Dec 20 14:36:20 2004 From: lorenzo.moretti at bologna.enea.it (Lorenzo Moretti) Date: Mon, 20 Dec 2004 14:36:20 +0100 Subject: [Thuban-list] Some bugs on Mac OS X In-Reply-To: <20041219105718.GC1450@intevation.de> References: <20041219105718.GC1450@intevation.de> Message-ID: Hi Bernhard >It is good news that you have made it work! > >This obviously mean I can close your report >RT#2616 "Shape files are not displayed", can't I? ;) >https://intevation.de/rt/webrt?serial_num=2616&display=History Yes it's fixed > >Can you give use some details about the various version numbers? >Usually you would ust just copy and paste the about dialog information, >but as you report below, this does not seem to work for you. :( > >> - The bar (zoom in, zoom out, etc) is missing (see the screenshot): I >> can only select these features from Map Menu (Mappa in Italian); > >Might be a wxWidgets problem, do you have similiar difficulties with >the demo applications from wxWidgets? If yes, then they probably like >a bug report about this. If not, we need to get into the details. This is the problem in thuban but I have an idea. I have seen the sample in WxPythonOSX and I check samples/pySketch In terminal I enter: % pythonw pysketch.pyw and the program works with all icons inside the window. Thuban usually run in Linux (GTK) and Windows system with menu in a floating window: in this window there are the icons (source mainwindow.py, I think). OS X is different: the menu is up not in a floating window and the icons are lost. These icons must to be in a floating window like a LEGEND (see LEGENDA window at http://wwwamb.bologna.enea.it/forgrass/files/thuban_osx.jpg). The source is in legend.py: the normal layer icons are there. If I select Zoom In from Map menu the icon is showed at the selected window but normally is hide. > > - if I select Info from Help menu (Aiuto in Italian) I have this error >> >> Si ? verificata una eccezione non prevista: > > encode() argument 1 must be string, not None > >Somehow getlocale() does not return a locale. >Bernhard Herzog changed that code to use getdefaultlocale() two days ago. >You can try this: > replace getlocale with getdefaultlocale in > the import from locale line > the unicodeStr.encode line This bug is fixed. Now works: this is the config Thuban 1.1 cvs-20041219 Currently using: wxPython 2.4.2.4 Python 2.3.0 PySQLite 0.5.1 SQLite 2.8.15 GDAL 1.2.5.0 psycopg 1.1.14 Compiled for: GTK - not available proj 4.4.9 Extensions: None registered. > > - ImportAPR - this features is very good but I have many bugs in >> different apr. > >Note that: importapr is still experimental because we need feedback >from users and then fix the bugs as you can see from Jan's reply. > > >> Raster from GDAL >> >> The external color for raster is black in OS X and it's not good for >> viewing or printing. > >Can you submit a report to the tracker about the wish >to make the default raster color adjustable? OK > >> Printing from Thuban. >> >> The printing quality or PDF quality in Mac OS X is very poor. The >> lines are big like a screenshot. >> >> Is this a OS X problem or Thuban-Wx-Python problem? > >This is a general Thuban issue dealing with the possibilities >of wx's device context drawing possibilities. > >Actually we envision to build a printing pipeline for high quality printing >with Thuban and thus only have the direct print mechanism as a kind >of fallback as long as the printing queue is not ready or in situations >when it is not available. > >So for high quality printing try the route via the Thuban-Map-Svg format. >This weekend I released the svgexport extension as stable 1.0.0; >it allows to to write out an svg file that you can use with any decent >vector drawing application to create a map for high quality printing. > >Markus Rechtien did a prototype implementation during his Master thesis >about this printing pipeline which is based on my design concept >of loosely couple components. > >Markus wrote a couple of script for Skencil to really make dealing >with Thuban-Map-SVGs comfortable. Polishing and nicer publication >within the Skencil project is pending. I have produced a Thuban SVG file: it's OK but the lines are very big, more than 1 point. OK I can change them in my vector program but perhaps it's possible to write a smaller size in SVG plugin. > > PRO for Thuban >> --------------- >> It's very very fast in OS X for raster and vector formats. > >Cool! >What did you compare it with? I have seen other Free and Commercials sw and Thuban is faster. > > TIA >> Great work > >Thanks for taking the time evaluating Thuban and writing >down this helpful feedback. > > Bernhard > Thank for the product -- ________________________________________________________________________ || 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/20041220/f977fd58/attachment.html From bernhard at intevation.de Mon Dec 20 17:32:45 2004 From: bernhard at intevation.de (Bernhard Reiter) Date: Mon, 20 Dec 2004 17:32:45 +0100 Subject: [Thuban-list] Some bugs on Mac OS X In-Reply-To: References: <20041219105718.GC1450@intevation.de> Message-ID: <20041220163245.GZ25444@intevation.de> On Mon, Dec 20, 2004 at 02:36:20PM +0100, Lorenzo Moretti wrote: > This obviously mean I can close your report > RT#2616 "Shape files are not displayed", can't I? ;) > https://intevation.de/rt/webrt?serial_num=2616&display=History > > Yes it's fixed Okay, closed the report. > > - The bar (zoom in, zoom out, etc) is missing (see the > screenshot): I > > can only select these features from Map Menu (Mappa in > Italian); > % pythonw pysketch.pyw > and the program works with all icons inside the window. > > Thuban usually run in Linux (GTK) and Windows system with menu in a > floating window: in this window there are the icons (source > mainwindow.py, I think). OS X is different: the menu is up not in a > floating window and the icons are lost. These icons must to be in a > floating window like a LEGEND (see LEGENDA window at > http://wwwamb.bologna.enea.it/forgrass/files/thuban_osx.jpg). The > source is in legend.py: the normal layer icons are there. If I select > Zoom In from Map menu the icon is showed at the selected window but > normally is hide. It is related to wxwidgets then, because the toolbar is not displayed like in other ports (gtk, windows). Hmmm, I think you should also submit a report about this problem. > Thuban 1.1 cvs-20041219 > Currently using: > wxPython 2.4.2.4 > Python 2.3.0 > PySQLite 0.5.1 > SQLite 2.8.15 > GDAL 1.2.5.0 > > psycopg 1.1.14 > Compiled for: > GTK - not available Obviously no GTK. ;) > proj 4.4.9 > > Extensions: > > None registered. This is strange you should have a few Extensions. Or how did you use svgexport? ;) > > Printing from Thuban. > I have produced a Thuban SVG file: it's OK but the lines are very big, > more than 1 point. OK I can change them in my vector program but > perhaps it's possible to write a smaller size in SVG plugin. Change the following line in Extensions/svgexport/svgmapwriter.py: self.pen["stroke-width"] = pen.GetWidth() You might even comment it out. Best, 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/20041220/de5ca0c3/attachment.bin From lorenzo.moretti at bologna.enea.it Tue Dec 21 12:11:32 2004 From: lorenzo.moretti at bologna.enea.it (Lorenzo Moretti) Date: Tue, 21 Dec 2004 12:11:32 +0100 Subject: [Thuban-list] Some bugs on Mac OS X Message-ID: Hi Bernhard Bernhard wrote > >It is related to wxwidgets then, because the toolbar is not displayed >like in other ports (gtk, windows). >Hmmm, I think you should also submit a report about this problem. OK > > Thuban 1.1 cvs-20041219 >> Currently using: >> wxPython 2.4.2.4 >> Python 2.3.0 >> PySQLite 0.5.1 >> SQLite 2.8.15 >> GDAL 1.2.5.0 >> >> psycopg 1.1.14 >> Compiled for: >> GTK - not available > >Obviously no GTK. ;) > >> proj 4.4.9 >> >> Extensions: >> >> None registered. > >This is strange you should have a few Extensions. >Or how did you use svgexport? ;) I've created thubanstart.py inside $HOME/.thuban folder and I have tested: Doesn't work ------------- export PYTHONPATH="/usr/local/lib/thuban/Extensions" Doesn't work ------------- import sys sys.path.append("/usr/local/lib/thuban/Extensions/") Works ----- I import all extensions: .... import bboxdump import drawshape import gns2shp import apr .... This method works but it's difficult. Another way? > > > Printing from Thuban. > >> I have produced a Thuban SVG file: it's OK but the lines are very big, >> more than 1 point. OK I can change them in my vector program but >> perhaps it's possible to write a smaller size in SVG plugin. > >Change the following line in Extensions/svgexport/svgmapwriter.py: > self.pen["stroke-width"] = pen.GetWidth() >You might even comment it out. Wow.. Now the SVG output is fantastic, really good. This line can be uncommented in CVS or no? > >Best, > Bernhard > >Attachment converted: APPLI:Untitled 74 ( / ) (004171EA) >_______________________________________________ >Thuban-list mailing list >Thuban-list at intevation.de >https://intevation.de/mailman/listinfo/thuban-list -- ________________________________________________________________________ || 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 bh at intevation.de Tue Dec 21 12:25:13 2004 From: bh at intevation.de (Bernhard Herzog) Date: Tue, 21 Dec 2004 12:25:13 +0100 Subject: [Thuban-list] Some bugs on Mac OS X In-Reply-To: (Lorenzo Moretti's message of "Tue, 21 Dec 2004 12:11:32 +0100") References: Message-ID: Lorenzo Moretti writes: > Works > ----- > I import all extensions: > > .... > import bboxdump > import drawshape > import gns2shp > import apr Just import Extensions.gns2shp ... should be enough without any PYTHONPATH or sys.path manipulations. drawshape is very experimental, BTW. make sure you read its README file before doing anything with it. Bernhard -- Intevation GmbH http://intevation.de/ Skencil http://skencil.org/ Thuban http://thuban.intevation.org/ From bernhard at intevation.de Tue Dec 21 12:32:16 2004 From: bernhard at intevation.de (Bernhard Reiter) Date: Tue, 21 Dec 2004 12:32:16 +0100 Subject: [Thuban-list] Some bugs on Mac OS X In-Reply-To: References: Message-ID: <20041221113216.GL21459@intevation.de> Hi Lorenzo, On Tue, Dec 21, 2004 at 12:11:32PM +0100, Lorenzo Moretti wrote: > Bernhard wrote > >It is related to wxwidgets then, because the toolbar is not displayed > >like in other ports (gtk, windows). > >Hmmm, I think you should also submit a report about this problem. > > OK Thanks in advance. > > > > Printing from Thuban. > > > >> I have produced a Thuban SVG file: it's OK but the lines are very big, > >> more than 1 point. OK I can change them in my vector program but > >> perhaps it's possible to write a smaller size in SVG plugin. > > > >Change the following line in Extensions/svgexport/svgmapwriter.py: > > self.pen["stroke-width"] = pen.GetWidth() > >You might even comment it out. > > Wow.. > Now the SVG output is fantastic, really good. > This line can be uncommented in CVS or no? The problem with taking the line out is that if you have changed the line types with a classification, you will not see a difference in line lenght anymore. I have to think about how to solve this best. I might make this an option to the extension then the user could decide in the future. 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/20041221/9b605d46/attachment.bin From mlennert at club.worldonline.be Tue Dec 21 13:30:43 2004 From: mlennert at club.worldonline.be (Moritz Lennert) Date: Tue, 21 Dec 2004 13:30:43 +0100 (CET) Subject: [Thuban-list] Some bugs on Mac OS X In-Reply-To: <20041221113216.GL21459@intevation.de> References: <20041221113216.GL21459@intevation.de> Message-ID: <58210.164.15.134.155.1103632243.squirrel@vivegnulinux.homelinux.org> On Tue, December 21, 2004 12:32, Bernhard Reiter said: > Hi Lorenzo, > >> > >> >> I have produced a Thuban SVG file: it's OK but the lines are very big, >> >> more than 1 point. OK I can change them in my vector program but >> >> perhaps it's possible to write a smaller size in SVG plugin. >> > >> >Change the following line in Extensions/svgexport/svgmapwriter.py: >> > self.pen["stroke-width"] = pen.GetWidth() >> >You might even comment it out. >> >> Wow.. >> Now the SVG output is fantastic, really good. >> This line can be uncommented in CVS or no? > > The problem with taking the line out is that if you have > changed the line types with a classification, you will not see > a difference in line lenght anymore. I have to think about how > to solve this best. I might make this an option to the extension > then the user could decide in the future. > I imagine we are talking about line width, or ? Funny, I cannot reproduce Lorenzo's problem. But at the same time, I seem to have the opposite one: 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. Am I misunderstanding the issue, or is there a bug ? Moritz From lorenzo.moretti at bologna.enea.it Thu Dec 16 17:37:57 2004 From: lorenzo.moretti at bologna.enea.it (Lorenzo Moretti) Date: Thu, 16 Dec 2004 17:37:57 +0100 Subject: [Thuban-list] Some bugs on Mac OS X Message-ID: I have built a Thuban for Mac OS X under Aqua (not Darwin) but there are some bugs. - The bar (zoom in, zoom out, etc) is missing (see the map above): I can only select these features from Map Menu (Mappa in Italian); - if I select Info from Help menu (Aiuto in Italian) I have this error Si ? verificata una eccezione non prevista: encode() argument 1 must be string, not None (per piacere segnala l'errore a http://thuban.intevation.org/bugtracker.html) Traceback (most recent call last): File "/usr/local/lib/thuban/Thuban/UI/mainwindow.py", line 284, 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 1002, in call_method apply(getattr(context.mainwindow, methodname), args) File "/usr/local/lib/thuban/Thuban/UI/mainwindow.py", line 479, in About dlg = About(self) File "/usr/local/lib/thuban/Thuban/UI/about.py", line 40, in __init__ developers = [ 'Jonathan Coles', File "/usr/local/lib/thuban/Thuban/UI/about.py", line 169, in unicodeToLocale return unicodeStr.encode(getlocale()[1]) TypeError: encode() argument 1 must be string, not None - ImportAPR - this features is very good but I have many bugs in different apr. Example: I import project.apr and the first window is "Import APR - 3775 pbject loaded". I select OK and often I have this error: Si ? verificata una eccezione non prevista: ODBBaseObject instance has no attribute 'GetThubanProp' (per piacere segnala l'errore a http://thuban.intevation.org/bugtracker.html) Traceback (most recent call last): File "/usr/local/lib/thuban/Thuban/UI/mainwindow.py", line 284, 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 "/Users/ben/.thuban/importAPR.py", line 265, in import_apr_dialog prop = symbol.GetThubanProp() AttributeError: ODBBaseObject instance has no attribute 'GetThubanProp' Sometimes Thuban imports many maps (.shp) but it does not create thematic colored map like original apr file. -------------------- Raster from GDAL The external color for raster is black in OS X and it's not good for viewing or for printing. Printing from Thuban. The printing quality or PDF quality in Mac OS X is very poor. The lines are big like a screenshot. Is this a OS X problem or Thuban with Wx problem? PRO for Thuban --------------- It's very very fast in OS X for raster and vector formats. TIA Great 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/20041216/ce47bce9/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: P7C71B144 Type: image/png Size: 24048 bytes Desc: not available Url : http://www.intevation.de/pipermail/thuban-list/attachments/20041216/ce47bce9/P7C71B144.png From lorenzo.moretti at bologna.enea.it Fri Dec 17 12:00:38 2004 From: lorenzo.moretti at bologna.enea.it (Lorenzo Moretti) Date: Fri, 17 Dec 2004 12:00:38 +0100 Subject: [Thuban-list] Some bugs on Mac OS X Message-ID: I have built a Thuban for Mac OS X under Aqua (not Darwin) but there are some bugs. - The bar (zoom in, zoom out, etc) is missing (see the map above): I can only select these features from Map Menu (Mappa in Italian); - if I select Info from Help menu (Aiuto in Italian) I have this error Si ? verificata una eccezione non prevista: encode() argument 1 must be string, not None (per piacere segnala l'errore a http://thuban.intevation.org/bugtracker.html) Traceback (most recent call last): File "/usr/local/lib/thuban/Thuban/UI/mainwindow.py", line 284, 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 1002, in call_method apply(getattr(context.mainwindow, methodname), args) File "/usr/local/lib/thuban/Thuban/UI/mainwindow.py", line 479, in About dlg = About(self) File "/usr/local/lib/thuban/Thuban/UI/about.py", line 40, in __init__ developers = [ 'Jonathan Coles', File "/usr/local/lib/thuban/Thuban/UI/about.py", line 169, in unicodeToLocale return unicodeStr.encode(getlocale()[1]) TypeError: encode() argument 1 must be string, not None - ImportAPR - this features is very good but I have many bugs in different apr. Example: I import project.apr and the first window is "Import APR - 3775 pbject loaded". I select OK and often I have this error: Si ? verificata una eccezione non prevista: ODBBaseObject instance has no attribute 'GetThubanProp' (per piacere segnala l'errore a http://thuban.intevation.org/bugtracker.html) Traceback (most recent call last): File "/usr/local/lib/thuban/Thuban/UI/mainwindow.py", line 284, 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 "/Users/ben/.thuban/importAPR.py", line 265, in import_apr_dialog prop = symbol.GetThubanProp() AttributeError: ODBBaseObject instance has no attribute 'GetThubanProp' Sometimes Thuban imports many maps (.shp) but it does not create thematic colored map like original apr file. -------------------- Raster from GDAL The external color for raster is black in OS X and it's not good for viewing or for printing. Printing from Thuban. The printing quality or PDF quality in Mac OS X is very poor. The lines are big like a screenshot. Is this a OS X problem or Thuban with Wx problem? PRO for Thuban --------------- It's very very fast in OS X for raster and vector formats. TIA Great 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/20041217/b6159d91/attachment.html -------------- next part -------------- A non-text attachment was scrubbed... Name: P7C71B144 Type: image/png Size: 24048 bytes Desc: not available Url : http://www.intevation.de/pipermail/thuban-list/attachments/20041217/b6159d91/P7C71B144.png From jan at intevation.de Thu Dec 23 15:39:52 2004 From: jan at intevation.de (Jan-Oliver Wagner) Date: Thu, 23 Dec 2004 15:39:52 +0100 Subject: [Thuban-list] [Thuban-announce] Thuban 1.0.1 released Message-ID: <20041223143952.GA21641@intevation.de> GIS-Viewer Thuban: Maintenance release 1.0.1 available Thuban[1] is a platform independent interactive viewer for geographic data layers. It can handle Shapefiles, PostgreSQL/PostGIS spatial databases and raster data. The first maintenance release of the stable 1.0 branch of Thuban is ready for download. Source code packages and an installer for Windows are already available[2]. Binary packages for further operating systems are expected to follow as time of package maintainers permits. The changes include: * Translations - Updated: Spanish, French, Russian and German - New: Hungarian and Brazillian Portuguese * Extensions - Updated gns2shp: Changes include fix for RT#2453. - New experimental extension: svgexport to export map and legend in svg format * Thuban now remembers directories during a session. E.g. if you open a shape file Thuban remembers the directory it was loaded from and the next time you open a shapefile the dialog will start in the same directory. This also works for projections. * The PostGIS interface was improved substantially compared to 1.0.0. However, there are some limitations in Thuban's PostGIS support that can't be fixed in the 1.0.x series without introducing incompatible file format changes (one such limitation is the requirement for a column called "gid"). The PostGIS changes in more detail: - Added support for LINESTRING geometries - Added some support for tables with an explicit SRID. - Thuban 1.0.0 used to allow tables with multiple geometry columns in some cases. Those cases worked only by accident. 1.0.1 gives an error message when such tables are opened. Real support for tables with multiple geometry columns is available in 1.1.x (currently only in CVS). * Fix a printing bug. The region of the map to be printed was a bit off so that some parts were not drawn sometimes (RT#2692) * Other fixed issues: - RT#2237 EPSG projection with unsupported (by the dialog) parameters causes exception - RT#2239 (only the session tree part) - RT#2245 Thuban don't start, unhandled exception - RT#2482 (partly) NameError: name 'wx' is not defined - RT#2549 exception when trying to generate one class [1] http://thuban.intevation.org/ [2] http://thuban.intevation.org/download.html -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ _______________________________________________ Thuban-announce mailing list Thuban-announce at intevation.de https://intevation.de/mailman/listinfo/thuban-announce From bernhard at intevation.de Thu Dec 23 17:53:14 2004 From: bernhard at intevation.de (Bernhard Reiter) Date: Thu, 23 Dec 2004 17:53:14 +0100 Subject: [Thuban-list] Some bugs on Mac OS X In-Reply-To: <58210.164.15.134.155.1103632243.squirrel@vivegnulinux.homelinux.org> References: <20041221113216.GL21459@intevation.de> <58210.164.15.134.155.1103632243.squirrel@vivegnulinux.homelinux.org> Message-ID: <20041223165314.GI2484@intevation.de> On Tue, Dec 21, 2004 at 01:30:43PM +0100, Moritz Lennert wrote: > On Tue, December 21, 2004 12:32, Bernhard Reiter said: > >> >> I have produced a Thuban SVG file: it's OK but the lines > >> >> are very big, more than 1 point. OK I can change them in > >> >> my vector program but perhaps it's possible to write a > >> >> smaller size in SVG plugin. > >> > > >> >Change the following line in Extensions/svgexport/svgmapwriter.py: > >> > self.pen["stroke-width"] = pen.GetWidth() > >> >You might even comment it out. > >> > >> Wow.. > >> Now the SVG output is fantastic, really good. > >> This line can be uncommented in CVS or no? > > > > The problem with taking the line out is that if you have > > changed the line types with a classification, you will not see > > a difference in line lenght anymore. I have to think about how > > to solve this best. I might make this an option to the extension > > then the user could decide in the future. > > > > I imagine we are talking about line width, or ? Of course. Sorry for that. > Funny, I cannot reproduce Lorenzo's problem. But at the same time, I seem to > have the opposite one: 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. > > Am I misunderstanding the issue, or is there a bug ? There probably are bugs in the code. What version of Thuban are you using? 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/20041223/fcc5da0e/attachment.bin From bernhard at intevation.de Thu Dec 23 18:00:15 2004 From: bernhard at intevation.de (Bernhard Reiter) Date: Thu, 23 Dec 2004 18:00:15 +0100 Subject: [Thuban-list] [Thuban-announce] Thuban 1.0.1 released In-Reply-To: <20041223143952.GA21641@intevation.de> References: <20041223143952.GA21641@intevation.de> Message-ID: <20041223170015.GJ2484@intevation.de> On Thu, Dec 23, 2004 at 03:39:52PM +0100, Jan-Oliver Wagner wrote: > GIS-Viewer Thuban: Maintenance release 1.0.1 available A note to the packagers: Check if the wxbug crash on bad encoding bug is there on your plattform and possibly remove the accents from the Lambert-93 projection name. Details: https://intevation.de/rt/webrt?serial_num=2850&display=History https://intevation.de/rt/webrt?serial_num=2536&display=History This is just a workaround as the real fix is to change Thuban to convert all text with unknown encoding from a local encoding to unicode, which would be a massive change beyond the scope of the 1.0.1 release. 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/20041223/eff5b33d/attachment.bin From bernhard at intevation.de Thu Dec 23 18:16:30 2004 From: bernhard at intevation.de (Bernhard Reiter) Date: Thu, 23 Dec 2004 18:16:30 +0100 Subject: [Thuban-list] Multiple appearence In-Reply-To: References: Message-ID: <20041223171630.GK2484@intevation.de> Sorry for the posts of Lorenzo appearing a few times. I just fixed a problem with our mailinglist software, Lorenzo is innocent! On Fri, Dec 17, 2004 at 05:13:22PM +0100, Lorenzo Moretti wrote: > > I have built a Thuban for Mac OS X under Aqua (not Darwin) but there > are some bugs. -------------- 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/20041223/7ce149a4/attachment.bin From bernhard at intevation.de Mon Dec 27 17:07:42 2004 From: bernhard at intevation.de (Bernhard Reiter) Date: Mon, 27 Dec 2004 17:07:42 +0100 Subject: [Thuban-list] svgexport: line width In-Reply-To: <20041223165314.GI2484@intevation.de> References: <20041221113216.GL21459@intevation.de> <58210.164.15.134.155.1103632243.squirrel@vivegnulinux.homelinux.org> <20041223165314.GI2484@intevation.de> Message-ID: <20041227160742.GM1497@intevation.de> 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? 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/20041227/be5fbe4e/attachment.bin