From bh at intevation.de Thu Jan 8 15:40:30 2004 From: bh at intevation.de (Bernhard Herzog) Date: Thu, 08 Jan 2004 15:40:30 +0100 Subject: [Thuban-list] Classifications References: <20031218210216.M64523@minag.gob.pe> Message-ID: <6q4qv6zeox.fsf@salmakis.intevation.de> "Daniel Calvelo Aros" writes: > 2) O error: some average on the *overall* visualization error. This is > calculated by something like > > $$ \sum_{i=1}^L |v_i - m_i|*A_i $$ where v and m are the same as the previous > ones, and A_i is the area of the i-th polygon. This is an average or total > error *volume*, which takes into account the fact that larger polygons are > visually prominent over smaller ones. > > That means that in order to calculate an O-type index error, we need > to access the area of the polygons corresponding to the data. > > Hints on doing this elegantly? Well, computing the area of a polygon isn't difficult. IIUC the area is the area of the polygon as drawn on the map since we're dealing with visualization error. So what you have to do is to iterate through all shapes, apply projections if projections are defined for the map and/or layer and compute the area of the resulting polygon. Determining the area of polygons is something that Thuban needs to be able to do anyway, I think. > The ideal would be to have a classifier class to which an array of > areas is passed, instead of accessing the shape info from the > classifier. I'm not sure what you mean by this exactly. The interface for the functions in e.g. Thuban/Model/classgen.py is not fixed, so a function that takes attribute data and area for each shape wouldn't be a problem. What needs to be done, though, is to make the gui more flexible. Which kinds of classification factories exist and which parameters they need is hard wired in Thuban/UI/classgen.py. That needs to be refactored so that new kinds of classifications factories can be defined in extensions and added at runtime. > 3) B error: this is the tricky one. The boundary error measures the average of > differences in v vs. m values between *neighboring* polygons. In order to > implement this, we would need some representation of the layer's topology, > ideally an adjacency matrix for all the polygons. > > How can you get an adjacency matrix from a polygon layer? There's no such functionality in Thuban currently and I don't know how difficult it would be to implement. I'd have to do some research first to look at what algorithms exist for this and which free software already implements this (GRASS?) > Any hints are welcome! Just keep posting the questions you have. The classifications you describe sound very interesting and it would definitely be good to have them in Thuban. Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ Thuban http://thuban.intevation.org/ From bernhard at intevation.de Mon Jan 12 14:41:04 2004 From: bernhard at intevation.de (Bernhard Reiter) Date: Mon, 12 Jan 2004 14:41:04 +0100 Subject: [Thuban-list] Mandrake Install Problems Message-ID: <20040112134104.GA30496@intevation.de> It seems that it is not easy to install Thuban on Mandrake. https://intevation.de/rt/webrt?display=History&serial_num=2239 Up to this point the problem might be in the RPM packages available for Mandrake, especially regarding wxpython and proj. Installation of Thuban might work, but you get seqfaults later. This is confusing. So that Thuban does not take the blame we should analyse that situation and provide instructions. It would be helpful to have a test which tells you that the installation is broken, before Thuban is installed. Can somebody help with this? Who runs Thuban on Mandrake and can report his or her experiences? Thanks, 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/20040112/f559d16e/attachment.bin From bh at intevation.de Thu Jan 15 19:04:29 2004 From: bh at intevation.de (Bernhard Herzog) Date: Thu, 15 Jan 2004 19:04:29 +0100 Subject: [Thuban-list] Mandrake Install Problems In-Reply-To: <20040112134104.GA30496@intevation.de> (Bernhard Reiter's message of "Mon, 12 Jan 2004 14:41:04 +0100") References: <20040112134104.GA30496@intevation.de> Message-ID: <6q4quxcclu.fsf@salmakis.intevation.de> Bernhard Reiter writes: > It seems that it is not easy to install Thuban on Mandrake. > > https://intevation.de/rt/webrt?display=History&serial_num=2239 > Up to this point the problem might be in the RPM packages > available for Mandrake, especially regarding wxpython and proj. Apparenly the cause of the problems was trying to use a wxPython RPM built for Red Hat with Mandrake. Using the Mandrake wxPython RPM and solved the problem. So it's not a bug with Mandrake RPMs. Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ Thuban http://thuban.intevation.org/ From frank.koormann at intevation.de Fri Jan 23 13:35:19 2004 From: frank.koormann at intevation.de (Frank Koormann) Date: Fri, 23 Jan 2004 13:35:19 +0100 Subject: [Thuban-list] Re: Thuban Installation Error? In-Reply-To: References: Message-ID: <20040123123519.GA24376@intevation.de> Hi Adnan Younas, * sweet cute [040123 11:20]: > > Hi, > I am Adnan Younas from Malaysia, I was having problems while > installing thuban pre-requsites its ok now for some things but now i m > facing problems with Pysqlite and thuban when i give the command > "python setup.py buildl" or "python setup.py Install" or "python > setup.py Install_local" it gives me error of " command 'cl.exe' > failed: No such file or directory".............. can any one pls help > me in this regard.....i'll be thankfull for any help in this > regard.....waiting for reply, Based on the 'cl.exe' I guess that you are trying to install Thuban under a Win32 system - from scratch. In this case you would need a complete developer suite on your system like MSDevStudio (or mingw ?). I suggest to use the binary packages provided and linked at http://thuban.intevation.org/download.html#bin_w2000 instead of building Thuban and some Python extensions from the sources. Please make sure that you use the same Python/wxPython versions as they are named on the download page. Best regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From saadijani at hotmail.com Fri Jan 23 11:20:14 2004 From: saadijani at hotmail.com (sweet cute) Date: Fri, 23 Jan 2004 15:20:14 +0500 Subject: [Thuban-list] Thuban Installation Error? Message-ID: Hi, I am Adnan Younas from Malaysia, I was having problems while installing thuban pre-requsites its ok now for some things but now i m facing problems with Pysqlite and thuban when i give the command "python setup.py buildl" or "python setup.py Install" or "python setup.py Install_local" it gives me error of " command 'cl.exe' failed: No such file or directory".............. can any one pls help me in this regard.....i'll be thankfull for any help in this regard.....waiting for reply, bye. Adnan Younas MS Student ("GIS") Information System Department, Faculty of computer Science and Information System, Universiti Teknologi Malaysia _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From LCzub at t-online.de Sun Jan 25 23:22:40 2004 From: LCzub at t-online.de (Luiko Czub) Date: Sun, 25 Jan 2004 23:22:40 +0100 Subject: [Thuban-list] proposal changes on postgisdb.py Message-ID: <401441B0.32DC5532@t-online.de> Moin folks, I had several problems, viewing my data stored by 0.8 postgis DB in thuban 1.0.0. You can find in the attachment the results of my hack, to solv these problems. I had following problems: 1.) postgisdb.py expect, that the postgis tables has a field 'gid'. I don't know why, so I replaced the SELECT-Statements with the default rwo-id Field OID. Why are you expecting the field 'gid' ? All changes for this are marked with the comment 'SUBSTITUTE GID WITH OID ' 2.) My geom datas are stored in postgis DB for a SRID different from '-1'. psgl raises the traceback 'Operation on two GEOMETRIES with different SRIDs', when PostGISShapeStore.ShapesInRegion() searches for geometries. I created a new Method PostGISShapeStore.Srid() and .ShapesInRegion() call this know instead of '-1'. Changes for this are marked with the comment 'SRID != -1' Attention: I'm not shure, that the projection of geomeries, imported from postgis, will be correct. 3.) I'm working with LINESTRING Geometries in postgis and there was no mapping for this geometry-type. Changes for this are marked with the comment 'ADD geomtype LINESTRING' 4.) My postgis tables sometimes has more than one geometry-field, but Thuban could not handle this. I made several changes on PostGISTable, SessionLoader.start_dbshapesource() and SessionSaver.write_data_containers() with the result, that a postgis table connections now needs the explicit geomcolumn name for the init(). Changes for this are marked with the comment 'Init with geom_column_name' Example for a changed session-file: What are your experiences with the postgis-connection? My big wish is the possibility to connect to a view (possible in JUMP 1.1.1, but JUMP 1.1.1 also doesn't handle multiple geometry fields at one table). But I think, this would need a redesign of postgisdb.py. If you want to test my changes, replace the files - load.py, save.py and postgisdb.py in the directory - .../lib/thuban/Thuban/Model PS: sorry for my bad english, hope, you hav eunderstand the main problems -- Gru? Luiko Czub ______________________________________________________ Luiko Czub Weberstra?e 1 Tel.: ++49-761/8098-240 D-79249 Merzhausen Email: lczub at t-online.de ______________________________________________________ -------------- next part -------------- A non-text attachment was scrubbed... Name: postgisdb_multi_geoms.tar.gz Type: application/x-gzip Size: 14064 bytes Desc: not available Url : http://www.intevation.de/pipermail/thuban-list/attachments/20040125/ce14c34c/postgisdb_multi_geoms.tar.gz From frank.koormann at intevation.de Tue Jan 27 09:27:31 2004 From: frank.koormann at intevation.de (Frank Koormann) Date: Tue, 27 Jan 2004 09:27:31 +0100 Subject: [Thuban-list] proposal changes on postgisdb.py In-Reply-To: <401441B0.32DC5532@t-online.de> References: <401441B0.32DC5532@t-online.de> Message-ID: <20040127082731.GB20386@intevation.de> Moin, * Luiko Czub [040125 23:41]: > Moin folks, > > I had several problems, viewing my data stored by 0.8 postgis DB in thuban > 1.0.0. You can find in the attachment the results of my hack, to solv these > problems. > Luiko, thank you very much for your proposal. I have created a ticket for your proposal in the bugtracker: http://intevation.de/rt/webrt?serial_num=2299 We will have a deeper look at your proposal and comment on it later. Best regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From dassau at gdf-hannover.de Wed Jan 28 13:48:04 2004 From: dassau at gdf-hannover.de (Otto Dassau) Date: Wed, 28 Jan 2004 13:48:04 +0100 Subject: [Thuban-list] setting gdal path under W2k Message-ID: <200401281348.04839.dassau@gdf-hannover.de> Hi, probably a simple question, but I have problems to get gdal support on windows 2000. I followed your manual, but it doesnt work for me, since I didn't set the PATH to gdal library, because I don't know how. The manual says: Extent the PYTHONPATH environment variable (in your Windows Control Panel) to make the new libraries available for Thuban. %PYTHONPATH%;C:\Thuban\Lib\gdal;C:\Thuban\Lib\gdal\pymod but using this command fails: Error: "%PYTHONPATH% is spelled wrong or couldn't be found " I guess, all I need is the correct command, but I don't know the answer for Windows. Maybe someone has an idea? Thanks a lot Otto From frank.koormann at intevation.de Wed Jan 28 14:20:27 2004 From: frank.koormann at intevation.de (Frank Koormann) Date: Wed, 28 Jan 2004 14:20:27 +0100 Subject: [Thuban-list] setting gdal path under W2k In-Reply-To: <200401281348.04839.dassau@gdf-hannover.de> References: <200401281348.04839.dassau@gdf-hannover.de> Message-ID: <20040128132027.GA2900@intevation.de> Hi, * Otto Dassau [040128 13:49]: > probably a simple question, but I have problems to get gdal support on windows > 2000. I followed your manual, but it doesnt work for me, since I didn't set > the PATH to gdal library, because I don't know how. > > The manual says: > > Extent the PYTHONPATH environment variable (in your Windows Control Panel) > to make the new libraries available for Thuban. > > %PYTHONPATH%;C:\Thuban\Lib\gdal;C:\Thuban\Lib\gdal\pymod > > > but using this command fails: > Error: "%PYTHONPATH% is spelled wrong or couldn't be found " > > I guess, all I need is the correct command, but I don't know the answer for > Windows. Maybe someone has an idea? I included the %PYTHONPATH% for two reasons. First it should imply that you have to extend your current settings and not to overwrite them. Secondly under Win2000 or higher it might be possible (and for the PATH definitely is the case) that the variable is already defined as a global setting. PYTHONPATH=%PYTHONPATH%;C:\Thuban\Lib\gdal;C:\Thuban\Lib\gdal\pymod takes this into account while PYTHONPATH=C:\Thuban\Lib\gdal;C:\Thuban\Lib\gdal\pymod would overwrite other settings. However, in your case the second version should work. The PATH should definetely be set using %PATH%;C:..... Regards, Frank -- Frank Koormann Professional Service around Free Software (http://intevation.net/) FreeGIS Project (http://freegis.org/) From pierrick.brihaye at culture.gouv.fr Wed Jan 28 14:06:56 2004 From: pierrick.brihaye at culture.gouv.fr (Pierrick Brihaye) Date: Wed, 28 Jan 2004 14:06:56 +0100 Subject: [Thuban-list] setting gdal path under W2k References: <200401281348.04839.dassau@gdf-hannover.de> Message-ID: <4017B3F0.2030109@culture.gouv.fr> Hi, Otto Dassau a ?crit: Extent the PYTHONPATH environment variable (in your Windows Control Panel) to make the new libraries available for Thuban. %PYTHONPATH%;C:\Thuban\Lib\gdal;C:\Thuban\Lib\gdal\pymod Yes, I've mentionned this in https://intevation.de/rt/webrt?serial_num=2287&display=History Maybe we should read : SET PYTHONPATH=%PYTHONPATH%;C:\Thuban\Lib\gdal;C:\Thuban\Lib\gdal\pymod or SET PYTHONPATH=C:\Thuban\Lib\gdal;C:\Thuban\Lib\gdal\pymod depending whether or net your PYTHONPATH has already been set ?! However GDAL is marked as not available when I (on Win 98) open the "about" menu :-( Cheers, -- Pierrick Brihaye, informaticien Service r?gional de l'Inventaire DRAC Bretagne mailto:pierrick.brihaye at culture.gouv.fr From dassau at gdf-hannover.de Wed Jan 28 14:52:23 2004 From: dassau at gdf-hannover.de (Otto Dassau) Date: Wed, 28 Jan 2004 14:52:23 +0100 Subject: [Thuban-list] setting gdal path under W2k In-Reply-To: <4017B3F0.2030109@culture.gouv.fr> References: <200401281348.04839.dassau@gdf-hannover.de> <4017B3F0.2030109@culture.gouv.fr> Message-ID: <200401281451.26009.dassau@gdf-hannover.de> Hi, Am Mittwoch, 28. Januar 2004 14:06 schrieb Pierrick Brihaye: > Hi, > > Otto Dassau a ?crit: > > Extent the PYTHONPATH environment variable (in your Windows Control Panel) > to make the new libraries available for Thuban. > > %PYTHONPATH%;C:\Thuban\Lib\gdal;C:\Thuban\Lib\gdal\pymod > > Yes, I've mentionned this in > https://intevation.de/rt/webrt?serial_num=2287&display=History > > Maybe we should read : > > SET PYTHONPATH=%PYTHONPATH%;C:\Thuban\Lib\gdal;C:\Thuban\Lib\gdal\pymod > or > SET PYTHONPATH=C:\Thuban\Lib\gdal;C:\Thuban\Lib\gdal\pymod > > depending whether or net your PYTHONPATH has already been set ?! OK, I am happy about your information, because I just found a very annoying solution in the web by clicking about 10 times :-( -> "On Windows 2000, this can be set from the control panel: Start->Settings->Control Panel; System; Advanced; Environment Variables; User Variables; New...;" now I learned, how to set and add a path to system variables the easy way and of course gdal support works well now. :-) thanks a lot Otto