From bram.degreve at gmail.com Thu Oct 1 21:53:48 2009 From: bram.degreve at gmail.com (Bram de Greve) Date: Thu, 01 Oct 2009 21:53:48 +0200 Subject: migrating to pyshapelib repository Message-ID: <4AC508CC.4070909@gmail.com> Hi Bernard, As the new pyshapelib has been merged into the trunk of thuban, it perhaps is time to separate pyshapelib into its own project, as you suggested before? If you're ready to create a new project and repository, this is how you can copy the history of pyshapelib to the new repository. Bear with me, although it's only three simple steps, it's quite a bit of typing because of the many branch names. DISCLAIMER: obviously, I wasn't able to test them. But I _think_ they're (about) right. 1. we need to get a dump of the thuban repository. This dump might become quite large. Possibly, you can directly pipe it into step 2. svnadmin dump /path/to/svn/thuban > thuban.dump 2. we need to filter the pyshapelib stuff (I propose we keep a mirror of the necessary shapelib sources for easy access). We need to retain a few branches here. So quite a few arguments =) thuban.dump goes in, pyshapelib.dump comes out. svndumpfilter --drop-empty-revs include \ trunk/thuban/libraries/pyshapelib \ trunk/thuban/libraries/shapelib \ branches/WIP-pyshapelib-bramz/thuban/libraries/pyshapelib \ branches/WIP-pyshapelib-bramz/thuban/libraries/shapelib \ branches/WIP-pyshapelib-Unicode/thuban/libraries/pyshapelib \ branches/WIP-pyshapelib-Unicode/thuban/libraries/shapelib < thuban.dump > pyshapelib.dump 2 + 1/2. Now in theory, it's possible to tweak this cute dump file to surgically remove the 'thuban/libraries' part from the path names. But I suggest we don't that, and do an 'svn move' from trunk/thuban/libraries to trunk afterwards. 3. Finally, you should be able to load the filtered dump in the fresh repository svnadmin load /home/svn/pyshapelib < pyshapelib.dump Hopefully this will actually work =) Cheers, Bram From bram.degreve at bramz.net Thu Oct 1 21:52:48 2009 From: bram.degreve at bramz.net (Bram de Greve) Date: Thu, 01 Oct 2009 21:52:48 +0200 Subject: migrating to pyshapelib repository Message-ID: <4AC50890.6050808@bramz.net> Hi Bernard, As the new pyshapelib has been merged into the trunk of thuban, it perhaps is time to separate pyshapelib into its own project, as you suggested before? If you're ready to create a new project and repository, this is how you can copy the history of pyshapelib to the new repository. Bear with me, although it's only three simple steps, it's quite a bit of typing because of the many branch names. DISCLAIMER: obviously, I wasn't able to test them. But I _think_ they're (about) right. 1. we need to get a dump of the thuban repository. This dump might become quite large. Possibly, you can directly pipe it into step 2. svnadmin dump /path/to/svn/thuban > thuban.dump 2. we need to filter the pyshapelib stuff (I propose we keep a mirror of the necessary shapelib sources for easy access). We need to retain a few branches here. So quite a few arguments =) thuban.dump goes in, pyshapelib.dump comes out. svndumpfilter --drop-empty-revs include \ trunk/thuban/libraries/pyshapelib \ trunk/thuban/libraries/shapelib \ branches/WIP-pyshapelib-bramz/thuban/libraries/pyshapelib \ branches/WIP-pyshapelib-bramz/thuban/libraries/shapelib \ branches/WIP-pyshapelib-Unicode/thuban/libraries/pyshapelib \ branches/WIP-pyshapelib-Unicode/thuban/libraries/shapelib < thuban.dump > pyshapelib.dump 2 + 1/2. Now in theory, it's possible to tweak this cute dump file to surgically remove the 'thuban/libraries' part from the path names. But I suggest we don't that, and do an 'svn move' from trunk/thuban/libraries to trunk afterwards. 3. Finally, you should be able to load the filtered dump in the fresh repository svnadmin load /home/svn/pyshapelib < pyshapelib.dump Hopefully this will actually work =) Cheers, Bram From bernhard at intevation.de Thu Oct 15 12:30:23 2009 From: bernhard at intevation.de (Bernhard Reiter) Date: Thu, 15 Oct 2009 12:30:23 +0200 Subject: migrating to pyshapelib repository In-Reply-To: <4AC50890.6050808@bramz.net> References: <4AC50890.6050808@bramz.net> Message-ID: <200910151230.23441.bernhard@intevation.de> Am Donnerstag, 1. Oktober 2009 21:52:48 schrieb Bram de Greve: > Hi Bernhard, Sorry for the late response. I am just back in the office this week and still picking up things. I'll check into this into this matter within the next days, otherwise ping me again. :) Best, Bernhard -- Managing Director - Owner: www.intevation.net (Free Software Company) Germany Coordinator: fsfeurope.org. Coordinator: www.Kolab-Konsortium.com. Intevation GmbH, Osnabr?ck, DE; Amtsgericht Osnabr?ck, HRB 18998 Gesch?ftsf?hrer Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part. Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20091015/94eb48da/attachment.bin From bram.degreve at gmail.com Thu Oct 15 20:33:51 2009 From: bram.degreve at gmail.com (Bram de Greve) Date: Thu, 15 Oct 2009 20:33:51 +0200 Subject: migrating to pyshapelib repository In-Reply-To: <200910151230.23441.bernhard@intevation.de> References: <4AC50890.6050808@bramz.net> <200910151230.23441.bernhard@intevation.de> Message-ID: <4AD76B0F.6060707@gmail.com> Hi Bernhard, No need to hurry, I'm super busy myself at the moment =) Cheers, Bram Bernhard Reiter wrote: > Am Donnerstag, 1. Oktober 2009 21:52:48 schrieb Bram de Greve: > >> Hi Bernhard, >> > > Sorry for the late response. > I am just back in the office this week and still picking up things. > I'll check into this into this matter within the next days, otherwise ping me > again. :) > > Best, > Bernhard > > ------------------------------------------------------------------------ > > _______________________________________________ > Thuban-devel mailing list > Thuban-devel at intevation.de > https://www.intevation.de/mailman/listinfo/thuban-devel > From lists at dipole-consulting.com Fri Oct 23 11:52:07 2009 From: lists at dipole-consulting.com (Didrik Pinte) Date: Fri, 23 Oct 2009 11:52:07 +0200 Subject: shapelib bug ? Message-ID: <1256291527.4254.19.camel@homer.dipole.lan> Hi Bram, Using latest Thuban trunk, when opening a shapefile, I have the following error : An unhandled exception occurred: 3 (please report to http://thuban.intevation.org/bugtracker.html) Traceback (most recent call last): File "/home/did/source/python/thuban/current/thuban/Thuban/UI/mainwindow.py", line 334, in invoke_command command.Execute(self.Context()) File "/home/did/projets/python/thuban/current/thuban/Thuban/UI/command.py", line 121, in Execute File "/home/did/source/python/thuban/current/thuban/Thuban/UI/mainwindow.py", line 1109, in call_method apply(getattr(context.mainwindow, methodname), args) File "/home/did/source/python/thuban/current/thuban/Thuban/UI/mainwindow.py", line 610, in AddLayer store = self.application.Session().OpenShapefile(filename) File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/session.py", line 296, in OpenShapefile File "/home/did/projets/python/thuban/current/thuban/Thuban/Model/data.py", line 201, in __init__ File "/home/did/source/python/thuban/current/thuban/Thuban/Model/table.py", line 102, in __init__ ftype = dbflib_fieldtypes[ftype] KeyError: 3 I have no time to check if it is related to the new changes. Would you have some minute to check that ? Thanks -- Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: This is a digitally signed message part Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20091023/58884141/attachment.bin