From bh at intevation.de Tue Sep 2 14:03:59 2003 From: bh at intevation.de (Bernhard Herzog) Date: Tue, 02 Sep 2003 14:03:59 +0200 Subject: [Thuban-list] Thuban 0.9.0 released Message-ID: <6qr82zpfbk.fsf@salmakis.intevation.de> ====================================================================== Thuban 0.9.0 Released ====================================================================== Download: http://thuban.intevation.org/download.html Overview of changes since 0.8.1: - Initial version of the User's Manual. This is only distributed in the source archives at the moment and there only in the form of the XML sources and images. The binaries do not contain the manual yet. You can read it online though: http://thuban.intevation.org/documentation.html - New Translations: German, Italian and Russian. Only the German one is up to date, though, as the others are based on older Thuban versions. For 1.0 we intend to have a translation period where all translations can be brought up to date. - PostGIS support. This feaure is still a bit experimental at this point and is not very well tested yet. It should work PostgreSQL 7.2.1 and postgis 0.7 as that's what we tested it with. Newer versions probably also work. For more details see the NEWS file in the sources or http://thuban.intevation.org/changelog.html Thanks to everyone who helped make this release possible. Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ Thuban http://thuban.intevation.org/ From jan at intevation.de Wed Sep 3 09:34:21 2003 From: jan at intevation.de (Jan-Oliver Wagner) Date: Wed, 3 Sep 2003 09:34:21 +0200 Subject: [Thuban-list] Thuban User's Manual 1.0pre2 Message-ID: <20030903073421.GA32060@intevation.de> Hi, I just uploaded pdf and online versions of the new version of the Thuban User's Manual (1.0pre2). Basically, there is just a new, brief chapter on how to use and implement Extensions for Thuban. Access via http://thuban.intevation.org/documentation.html Best -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From jan at intevation.de Wed Sep 3 11:35:57 2003 From: jan at intevation.de (Jan-Oliver Wagner) Date: Wed, 3 Sep 2003 11:35:57 +0200 Subject: [Thuban-list] projects.h In-Reply-To: <6qu1bxwszh.fsf@salmakis.intevation.de> References: <200305132112.h4DLCETw015458@www38.web2010.com> <20030514074141.GA19852@intevation.de> <3EC23C2C.7040705@pobox.com> <6qu1bxwszh.fsf@salmakis.intevation.de> Message-ID: <20030903093557.GA32341@intevation.de> On Wed, May 14, 2003 at 03:36:02PM +0200, Bernhard Herzog wrote: > Frank Warmerdam writes: > > I was wondering why thuban depends on projects.h? The current theory is that > > proj_api.h is the "public" include file for PROJ.4, and projects.h should not > > be required by modern PROJ.4 applications that don't reach in and use private > > information from the library. > > I can't remember why, but I'd guess it's because at least some of the > documentation (PROJ.4.3.pdf) says to use projects.h. the guess is true: See page 23 of file PROJ.4.3.ps. The projects.h file is installed into the public include directories. If it shouldn't be used anymore, it shouldn't be installed also. Thus, proj installation procedure should be adapted accordingly. Frank W.: What do you think? Best Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From warmerdam at pobox.com Wed Sep 3 14:54:39 2003 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 03 Sep 2003 08:54:39 -0400 Subject: [Thuban-list] projects.h In-Reply-To: <20030903093557.GA32341@intevation.de> References: <200305132112.h4DLCETw015458@www38.web2010.com> <20030514074141.GA19852@intevation.de> <3EC23C2C.7040705@pobox.com> <6qu1bxwszh.fsf@salmakis.intevation.de> <20030903093557.GA32341@intevation.de> Message-ID: <3F55E48F.6060006@pobox.com> Jan-Oliver Wagner wrote: > On Wed, May 14, 2003 at 03:36:02PM +0200, Bernhard Herzog wrote: > >>Frank Warmerdam writes: >> >>>I was wondering why thuban depends on projects.h? The current theory is that >>>proj_api.h is the "public" include file for PROJ.4, and projects.h should not >>>be required by modern PROJ.4 applications that don't reach in and use private >>>information from the library. >> >>I can't remember why, but I'd guess it's because at least some of the >>documentation (PROJ.4.3.pdf) says to use projects.h. > > > the guess is true: See page 23 of file PROJ.4.3.ps. > > The projects.h file is installed into the public include > directories. If it shouldn't be used anymore, it shouldn't be > installed also. > Thus, proj installation procedure should be adapted accordingly. > Frank W.: What do you think? Jan / Bernhard, I am not in a position to update the old PROJ documentation so I can't change references in it. Hopefully at some point we will have comprehensive new documentation. The pj_init.3 man page *has* been updated to describe the modern approach. In the meantime, as I mentioned, applications should just use proj_api.h unless they need some internal information available in projects.h. I will continue to install projects.h by default in order to provide backwards compatibility for applications setup to use the traditional PROJ include file. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jan at intevation.de Wed Sep 3 15:19:56 2003 From: jan at intevation.de (Jan-Oliver Wagner) Date: Wed, 3 Sep 2003 15:19:56 +0200 Subject: [Thuban-list] projects.h In-Reply-To: <3F55E48F.6060006@pobox.com> References: <200305132112.h4DLCETw015458@www38.web2010.com> <20030514074141.GA19852@intevation.de> <3EC23C2C.7040705@pobox.com> <6qu1bxwszh.fsf@salmakis.intevation.de> <20030903093557.GA32341@intevation.de> <3F55E48F.6060006@pobox.com> Message-ID: <20030903131956.GB32741@intevation.de> On Wed, Sep 03, 2003 at 08:54:39AM -0400, Frank Warmerdam wrote: > The pj_init.3 man page *has* been updated to describe the > modern approach. You are right. I did not had a look into this man page. Maybe it should be referenced under "SEE ALSO" on the proj manpage. -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From jan at intevation.de Wed Sep 10 15:13:41 2003 From: jan at intevation.de (Jan-Oliver Wagner) Date: Wed, 10 Sep 2003 15:13:41 +0200 Subject: [Thuban-list] Extension for Import of Geonet Names Server Message-ID: <20030910131341.GA12326@intevation.de> Hi, I checked a import tool for Geonet Names Server datafiles (http://www.nima.mil/gns/html/) into CVS. It is an extension, and you can activate with adding the line import Extensions.gns2shp.gns2shp to your file ~/.thuban/thubanstart.py Currently it converts all the data and displays them. This could take quite some time for the larger datasets. It would be helpful to add a simple dialog that asks for some type of locations to import in order to reduce the number. Spatial selection (all points within a selected polygon) would be interesting as well). Any volunteers ? :-) More about how to activate an Extension can be found here: http://thuban.intevation.org/doc/users_manual_for_thuban_1.0/html/c594.html Best Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From barbarito at omplace.com Fri Sep 12 06:21:03 2003 From: barbarito at omplace.com (Fidel Serrano) Date: Fri, 12 Sep 2003 00:21:03 -0400 (EDT) Subject: [Thuban-list] simple tool Message-ID: <200309120421.h8C4L3KH026295@www38.web2010.com> im working with thuban 0.9.0 in windows xp, i added the hello world extention and worked perfectly, so i tried to add simple_tool extention, adding the statement import simple_tool to the thubanstart.py file, and copying simple_tool.py and simple_tool.xpm to the thuban folder, it didnt work, is there something else that i have to do to make it work? any help would be great ______________________________________________________________ Sponsored By: The ByRegion Network http://www.HealerPages.info The Rumi Spirit Card http://www.omplace.com/rumi OmPlace - The Conscious Living Directory - FREE Email http://www.omplace.com From jan at intevation.de Fri Sep 12 10:38:26 2003 From: jan at intevation.de (Jan-Oliver Wagner) Date: Fri, 12 Sep 2003 10:38:26 +0200 Subject: [Thuban-list] simple tool In-Reply-To: <200309120421.h8C4L3KH026295@www38.web2010.com> References: <200309120421.h8C4L3KH026295@www38.web2010.com> Message-ID: <20030912083826.GB15101@intevation.de> On Fri, Sep 12, 2003 at 12:21:03AM -0400, Fidel Serrano wrote: > im working with thuban 0.9.0 in windows xp, i added the hello world extention and worked perfectly, so i tried to add simple_tool extention, adding the statement import simple_tool to the thubanstart.py file, and copying simple_tool.py and simple_tool.xpm > to the thuban folder, it didnt work, is there something else that i have to do to make it work? well, first of all you found a bug ;-) If fixed it in CVS a minute ago. In simple_command.py just import Tool from viewport, not from view (line 19). Furthermore, for simple_tool I recommed to use the alternative to leave the files where they are and extend the PYTHONPATH instead to cover the directory Examples/simple_extensions Now it should work. Thanks for finding this problem! Best Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From barbarito at omplace.com Tue Sep 16 01:48:17 2003 From: barbarito at omplace.com (Fidel Serrano) Date: Mon, 15 Sep 2003 19:48:17 -0400 (EDT) Subject: [Thuban-list] simple tool Message-ID: <200309152348.h8FNmH1A001442@www38.web2010.com> i want this simple tool to display the distance in a mesage box for example, so my cuestion is how can i get the thuban context?, adding a new command to the registry is the only way? ______________________________________________________________ Sponsored By: The ByRegion Network http://www.HealerPages.info The Rumi Spirit Card http://www.omplace.com/rumi OmPlace - The Conscious Living Directory - FREE Email http://www.omplace.com From bh at intevation.de Fri Sep 19 13:04:05 2003 From: bh at intevation.de (Bernhard Herzog) Date: Fri, 19 Sep 2003 13:04:05 +0200 Subject: [Thuban-list] simple tool References: <200309152348.h8FNmH1A001442@www38.web2010.com> Message-ID: <6qhe39m44a.fsf@salmakis.intevation.de> "Fidel Serrano" writes: > i want this simple tool to display the distance in a mesage box for > example, so my cuestion is how can i get the thuban context?, > adding a new command to the registry is the only way? The context as such is only used for the commands. Tools are activated through commands as shown in the simple_tool.py example so getting hold of the context shouldn't be a problem. In the tool object itself you can use self.view if you need to access the map window the tool is operating on. That self.view is the same as context.mainwindow.canvas. Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ Thuban http://thuban.intevation.org/ From jan at intevation.de Mon Sep 22 14:00:37 2003 From: jan at intevation.de (Jan-Oliver Wagner) Date: Mon, 22 Sep 2003 14:00:37 +0200 Subject: [Thuban-list] Ann: Experimental import of ArcView APR-Files Message-ID: <20030922120037.GA1416@intevation.de> Hi, I just checked in an initial import-method for ArcView project files (apr-files). It is implemented as an Extension and it is experimental. However, someone prepared a sample for the Iceland data which proves the import works in principle. Personally, I do not have an ArcView license and therefore I just worked blindly on the reverse engeneering. If anyone is out there who is interested in making the import smoother and has both, ArcView and Thuban running on his desktop, I would be happy to know. Best Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From jan at intevation.de Tue Sep 23 09:55:04 2003 From: jan at intevation.de (Jan-Oliver Wagner) Date: Tue, 23 Sep 2003 09:55:04 +0200 Subject: [Thuban-list] Apply wxInitAllImageHandlers? Message-ID: <20030923075504.GA3057@intevation.de> Hi, I wonder whether Thuban should always call wxInitAllImageHandlers() at startup to make JPEG and other formats available for wxBitmap. Any particular reason why this should better not be done? Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From jan at intevation.de Tue Sep 23 10:00:02 2003 From: jan at intevation.de (Jan-Oliver Wagner) Date: Tue, 23 Sep 2003 10:00:02 +0200 Subject: [Thuban-list] Experimental WMS Layer Message-ID: <20030923080002.GB3057@intevation.de> Hi, I've successfully implemented an Extension that adds a Layer as delivered by a WMS Server (e.g. UMN MapServer). It is not yet committed to CVS because I needed to add a special renderer into Thuban main. I think it would be a nice idea to introduce an abstraction for rendering in a way that an extension can add its own. How much work would that mean? Best Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From jan at intevation.de Tue Sep 23 14:01:23 2003 From: jan at intevation.de (Jan-Oliver Wagner) Date: Tue, 23 Sep 2003 14:01:23 +0200 Subject: [Thuban-list] Status and Roadmap towards 1.0 Message-ID: <20030923120123.GA3603@intevation.de> Hi, I've shifted the release schedule by one month so that the 1.0rc1 is planned for 20-October-2003. From there on, no further delays are to be expected for the roadmap. We'll spend the exta 4-weeks on further testing (external feedback was low so far, perhaps due to holiday time), some bugs, performance analysis/tunings and a small number of little but helpful features which add benefit to the 1.0 release. Furtermore, I've added WMS Layer support to the feature list of 1.2 - an experimental(!) support as Extension will probably available much earlier (runs for me :-). I've removed CSV tables as data source from the 1.0 feature list. The Table-View can create CSVs, but loading them appears not to be of much helps since you don't have the field types. One of the little additional features, also submitted as a wish to the bug-tracker, will be the support of EPSG for projections. This will also simplify the WMS Layer support. Best Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From dcalvelo at minag.gob.pe Sat Sep 27 20:30:54 2003 From: dcalvelo at minag.gob.pe (Daniel Calvelo) Date: Sat, 27 Sep 2003 13:30:54 -0500 Subject: [Thuban-list] Spanish and French translation updates Message-ID: <20030927182841.M55509@minag.gob.pe> Hi all. Attached are the PO files for french and spanish as of sept.18 CVS. Cheers. Daniel. -- Daniel Calvelo Aros -- Direcci?n General de Informaci?n Agraria -- Ministerio de Agricultura del Per? -- (51-1) 424-9001 -------------- next part -------------- A non-text attachment was scrubbed... Name: es_fr.po.tgz Type: application/x-gtar Size: 15926 bytes Desc: not available Url : http://www.intevation.de/pipermail/thuban-list/attachments/20030927/a226b645/es_fr.po.tgz From jan at intevation.de Mon Sep 29 14:27:26 2003 From: jan at intevation.de (Jan-Oliver Wagner) Date: Mon, 29 Sep 2003 14:27:26 +0200 Subject: [Thuban-list] Strange exception for user.proj Message-ID: <20030929122726.GA12742@intevation.de> Hi, I've inserted a special projection into ~/.thuban/user.proj which makes Thuban through | Exception exceptions.AttributeError: in ignored The projection origintates from the epsg file of the proj package. I wrote a small converter to produce a Thuban .proj file from the epsg file. However, at least for this projection (user.proj is attached) I get an exception when opening the Map Projection dialog. Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ -------------- next part -------------- From bh at intevation.de Mon Sep 29 14:34:20 2003 From: bh at intevation.de (Bernhard Herzog) Date: Mon, 29 Sep 2003 14:34:20 +0200 Subject: [Thuban-list] Strange exception for user.proj In-Reply-To: <20030929122726.GA12742@intevation.de> (Jan-Oliver Wagner's message of "Mon, 29 Sep 2003 14:27:26 +0200") References: <20030929122726.GA12742@intevation.de> Message-ID: <6qbrt3eptf.fsf@salmakis.intevation.de> Jan-Oliver Wagner writes: > I've inserted a special projection into ~/.thuban/user.proj > which makes Thuban through > > | Exception exceptions.AttributeError: in ignored > > The projection origintates from the epsg file of the proj package. > I wrote a small converter to produce a Thuban .proj file from the epsg > file. However, at least for this projection (user.proj is attached) That user.proj contains an empty projectionlist and AFAICT Thuban (current CVS) doesn't have any problems with it. Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ Thuban http://thuban.intevation.org/ From jan at intevation.de Mon Sep 29 15:55:42 2003 From: jan at intevation.de (Jan-Oliver Wagner) Date: Mon, 29 Sep 2003 15:55:42 +0200 Subject: [Thuban-list] Strange exception for user.proj In-Reply-To: <6qbrt3eptf.fsf@salmakis.intevation.de> References: <20030929122726.GA12742@intevation.de> <6qbrt3eptf.fsf@salmakis.intevation.de> Message-ID: <20030929135542.GA12789@intevation.de> On Mon, Sep 29, 2003 at 02:34:20PM +0200, Bernhard Herzog wrote: > That user.proj contains an empty projectionlist and AFAICT Thuban > (current CVS) doesn't have any problems with it. sorry, wrong user.proj. Now attached the one that produces the exception. -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ -------------- next part -------------- From bh at intevation.de Mon Sep 29 16:47:48 2003 From: bh at intevation.de (Bernhard Herzog) Date: Mon, 29 Sep 2003 16:47:48 +0200 Subject: [Thuban-list] Strange exception for user.proj In-Reply-To: <20030929135542.GA12789@intevation.de> (Jan-Oliver Wagner's message of "Mon, 29 Sep 2003 15:55:42 +0200") References: <20030929122726.GA12742@intevation.de> <6qbrt3eptf.fsf@salmakis.intevation.de> <20030929135542.GA12789@intevation.de> Message-ID: <6qsmmfd52j.fsf@salmakis.intevation.de> Jan-Oliver Wagner writes: > Now attached the one that produces the exception. > [...] > > > > > > > > > > > > > > Well, proj doesn't like the parameters: proj +proj=omerc +lat_0=46.952405556 +lonc=7.439583333 +alpha=90.000000000 +k=1.000000000 +x_0=2600000.000 +y_0=1200000.000 +ellps=bessel units=m Rel. 4.4.5, 9 January 2002 : projection initialization failure cause: lat_0 = 0 or 90 or alpha = 90 program abnormally terminated That Thuban doesn't give you a better error message is obviously a bug in Thuban. I filed a new bug report for it: https://intevation.de/rt/webrt?serial_num=2138 -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ Thuban http://thuban.intevation.org/ From sholl at gmx.net Mon Sep 29 18:45:02 2003 From: sholl at gmx.net (Stephan Holl) Date: Mon, 29 Sep 2003 18:45:02 +0200 Subject: [Thuban-list] Implementation of GDAL Message-ID: <20030929184502.03df764e.sholl@gmx.net> Dear list, I recently updated thuban from CVS and I would like to use gdal for displaying rasters. What do I have to add, that thuban recognises my gdal-installation? It lives in /usr/local/lib/. But the About-Section does not find it... Thanks for your hints. Cheers Stephan -- Stephan Holl GnuPG Key-ID: 11946A09 18:41:11 up 4:56, 1 user, load average: 0.30, 0.15, 0.10 -------------- 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/20030929/de092935/attachment.bin From bh at intevation.de Mon Sep 29 20:49:50 2003 From: bh at intevation.de (Bernhard Herzog) Date: Mon, 29 Sep 2003 20:49:50 +0200 Subject: [Thuban-list] Implementation of GDAL References: <20030929184502.03df764e.sholl@gmx.net> Message-ID: <6qekxzbfap.fsf@salmakis.intevation.de> Stephan Holl writes: > What do I have to add, that thuban recognises my gdal-installation? It > lives in /usr/local/lib/. > But the About-Section does not find it... For gdal support to work, thuban has to be able to import the python gdal bindings and the thuban specific gdalwarp module. You may have to recompile Thuban for the latter to become available. Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ Thuban http://thuban.intevation.org/ From sholl at gmx.net Tue Sep 30 07:25:41 2003 From: sholl at gmx.net (Stephan Holl) Date: Tue, 30 Sep 2003 07:25:41 +0200 Subject: [Thuban-list] Implementation of GDAL In-Reply-To: <6qekxzbfap.fsf@salmakis.intevation.de> References: <20030929184502.03df764e.sholl@gmx.net> <6qekxzbfap.fsf@salmakis.intevation.de> Message-ID: <20030930072541.02d601da.sholl@gmx.net> Hello Bernhard, At Mon, 29 Sep 2003 20:49:50 +0200 Bernhard Herzog wrote: > > > What do I have to add, that thuban recognises my gdal-installation? > > It lives in /usr/local/lib/. > > But the About-Section does not find it... > > For gdal support to work, thuban has to be able to import the python > gdal bindings and the thuban specific gdalwarp module. You may have to > recompile Thuban for the latter to become available. Thanks for your answer. The "make install" from gdal installed the python_modules in /usr/lib/python2.2/site-packages/gdal After that I did a python setup.py install_local in the thuban-src-dir. After launching "thuban-src-dir/thuban.py" gdal is still not available. Is there a needed switch to recompile for gdal-support ? Thank you Stephan Holl -- Stephan Holl GnuPG Key-ID: 11946A09 07:21:04 up 54 min, 1 user, load average: 0.05, 0.15, 0.08 -------------- 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/20030930/baa65427/attachment.bin From bh at intevation.de Tue Sep 30 12:50:23 2003 From: bh at intevation.de (Bernhard Herzog) Date: Tue, 30 Sep 2003 12:50:23 +0200 Subject: [Thuban-list] Implementation of GDAL References: <20030929184502.03df764e.sholl@gmx.net> <6qekxzbfap.fsf@salmakis.intevation.de> <20030930072541.02d601da.sholl@gmx.net> Message-ID: <6qn0cmble8.fsf@salmakis.intevation.de> Stephan Holl writes: > The "make install" from gdal installed the python_modules in > /usr/lib/python2.2/site-packages/gdal > After that I did a > python setup.py install_local > in the thuban-src-dir. > After launching "thuban-src-dir/thuban.py" gdal is still not available. Were there any error messages during the build? Do you have a file gdalwarp.so in Lib/? Can you import gdalwarp? One way to test the latter would be to do cd Lib; python -c "import gdalwarp" Maybe you have to put the directory containg the gdal library into the LD_LIBRARY_PATH Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ Thuban http://thuban.intevation.org/ From sholl at gmx.net Tue Sep 30 13:10:53 2003 From: sholl at gmx.net (Stephan Holl) Date: Tue, 30 Sep 2003 13:10:53 +0200 Subject: [Thuban-list] Implementation of GDAL In-Reply-To: <6qn0cmble8.fsf@salmakis.intevation.de> References: <20030929184502.03df764e.sholl@gmx.net> <6qekxzbfap.fsf@salmakis.intevation.de> <20030930072541.02d601da.sholl@gmx.net> <6qn0cmble8.fsf@salmakis.intevation.de> Message-ID: <20030930131053.784ac429.sholl@gmx.net> Hello Bernhard, At Tue, 30 Sep 2003 12:50:23 +0200 Bernhard Herzog wrote: > Were there any error messages during the build? Do you have a file > gdalwarp.so in Lib/? Can you import gdalwarp? No, there were no errors during build, but when I try to load it manually... > One way to test the > latter would be to do > > cd Lib; python -c "import gdalwarp" ~/cvs/thuban/Lib > python -c "import gdalwarp" Traceback (most recent call last): File "", line 1, in ? ImportError: ./gdalwarp.so: undefined symbol: __gxx_personality_v0 steph at kermit:~/cvs/thuban/Lib > That is the resulting error-message. I am no python expert, so do not know what to do... Thanks for your help cheers Stephan -- Stephan Holl GnuPG Key-ID: 11946A09 13:08:36 up 2:43, 1 user, load average: 0.01, 0.12, 0.16 -------------- 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/20030930/ffd97083/attachment.bin From bh at intevation.de Tue Sep 30 15:29:36 2003 From: bh at intevation.de (Bernhard Herzog) Date: Tue, 30 Sep 2003 15:29:36 +0200 Subject: [Thuban-list] Implementation of GDAL In-Reply-To: <20030930131053.784ac429.sholl@gmx.net> (Stephan Holl's message of "Tue, 30 Sep 2003 13:10:53 +0200") References: <20030929184502.03df764e.sholl@gmx.net> <6qekxzbfap.fsf@salmakis.intevation.de> <20030930072541.02d601da.sholl@gmx.net> <6qn0cmble8.fsf@salmakis.intevation.de> <20030930131053.784ac429.sholl@gmx.net> Message-ID: <6q1xtybe0v.fsf@salmakis.intevation.de> Stephan Holl writes: > ~/cvs/thuban/Lib > python -c "import gdalwarp" > Traceback (most recent call last): > File "", line 1, in ? > ImportError: ./gdalwarp.so: undefined symbol: __gxx_personality_v0 This looks like some library was missing when linking gdalwarp.so. According to google this is probably because gdalwarp.cpp is compiled as c++ but linked by gcc which doesn't automatically include libstdc++. We don't have problem because we still mostly use gcc 2.95. This seems to be a bug in distutils in Python < 2.3. There doesn't seem to be an easy fix, unfortunately, but there are several options: - Use the distutils from Python 2.3 which automatically use the c++ compiler for linking extensions written in C++ I just tried this by creating a symbolic link to the directory containing distutils in the thuban source directory and then running the setup.py script normally (after removing the build subdirectory to make sure everything is rebuilt properly) ln -s path/to/python/lib/python2.3/distutils/ . rm -r build/ python2.2 setup.py build This works for me but all I can easily check is it does indeed call the c++ compiler. I don't have a system with gcc 3.0 where all the other stuff Thuban requires is already available. The distutils of Python 2.3 work fine with Python 2.2 apparently. - Do the link step of gdalwarp manually by copying the commandline printed by setup.py and replacing the gcc with g++ - Add "stdc++" to the libraries list in the Extension call for Lib.gdalwarp in setup.py (line 1089 or thereabouts) Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ Thuban http://thuban.intevation.org/ From jonathan at jpcoles.com Mon Sep 29 16:50:23 2003 From: jonathan at jpcoles.com (Jonathan Coles) Date: Mon, 29 Sep 2003 10:50:23 -0400 Subject: [Thuban-list] Strange exception for user.proj In-Reply-To: <20030929122726.GA12742@intevation.de> References: <20030929122726.GA12742@intevation.de> Message-ID: <1064847023.16186.30.camel@reisen> On Mon, 2003-09-29 at 08:27, Jan-Oliver Wagner wrote: > | Exception exceptions.AttributeError: in ignored > > The projection origintates from the epsg file of the proj package. > I wrote a small converter to produce a Thuban .proj file from the epsg > file. However, at least for this projection (user.proj is attached) > I get an exception when opening the Map Projection dialog. thuban doesn't have a dialog for proj=omerc. there is only one for tmerc. when i changed from omerc to tmerc (ignoring what that really means) i didn't get the exception. --jonathan -- ========================================================================= Jonathan Coles http://www.jpcoles.com jonathan at jpcoles.com GnuPG Key: http://www.jpcoles.com/gpg_pub_key.asc ========================================================================= -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://www.intevation.de/pipermail/thuban-list/attachments/20030929/3b426891/attachment.bin