From wichmann at uni-wuppertal.de Tue Dec 10 17:51:24 2002 From: wichmann at uni-wuppertal.de (Ingo Wichmann) Date: Tue, 10 Dec 2002 17:51:24 +0100 Subject: [Thuban-list] shapelib Message-ID: <3DF61B8C.5060604@uni-wuppertal.de> Hi! I've now installed thuban along with pyshapelib. In the Examples/simple_extensions/README it says, that i have to create a file ~/.thuban/thubanstart.py that will be imported automaticaly. What's the format of this file? Ingo Wichmann From bh at intevation.de Tue Dec 10 18:06:45 2002 From: bh at intevation.de (Bernhard Herzog) Date: 10 Dec 2002 18:06:45 +0100 Subject: [Thuban-list] shapelib In-Reply-To: <3DF61B8C.5060604@uni-wuppertal.de> References: <3DF61B8C.5060604@uni-wuppertal.de> Message-ID: <6q1y4piz16.fsf@salmakis.intevation.de> Ingo Wichmann writes: > Hi! > I've now installed thuban along with pyshapelib. Note that a separate installation of pyshapelib isn't necessary for Thuban as it contains a copy of it and the relevant shapelib files. > In the > Examples/simple_extensions/README it says, that i have to create a file > ~/.thuban/thubanstart.py that will be imported automaticaly. What's the > format of this file? It's a normal Python module, so you can put any Python code in there. In the specific case described in that README, if you have an extension in a file myextension.py in a directory somewhere on the Python module search path, thubanstart.py could be as simple as import myextension Thuban automatically adds ~/.thuban to the Python path, so putting your own module into ~/.thuban should suffice for a start. Bernhard -- Intevation GmbH http://intevation.de/ Sketch http://sketch.sourceforge.net/ MapIt! http://www.mapit.de/ From wichmann at uni-wuppertal.de Tue Dec 10 20:22:58 2002 From: wichmann at uni-wuppertal.de (Ingo Wichmann) Date: Tue, 10 Dec 2002 20:22:58 +0100 Subject: [Thuban-list] shapelib References: <3DF61B8C.5060604@uni-wuppertal.de> <6q1y4piz16.fsf@salmakis.intevation.de> Message-ID: <3DF63F12.5040803@uni-wuppertal.de> Bernhard Herzog schrieb: >>I've now installed thuban along with pyshapelib. > > Note that a separate installation of pyshapelib isn't necessary for > Thuban as it contains a copy of it and the relevant shapelib files. OK, i can open the shapefile, thanks for your help. In the session tree i can see the data table. But it can not be displayed. In the dialog-box for the projection i can only choose UTM. From what i understand proj4dialog.py does not allow other projetctions. In grass my projection is proj: tmerc ellps: bessel Is there a way to display this data anyhow? Maybe by editing the configuration-file of thuban directly? Ingo Wichmann From jan at intevation.de Wed Dec 11 12:32:03 2002 From: jan at intevation.de (Jan-Oliver Wagner) Date: Wed, 11 Dec 2002 12:32:03 +0100 Subject: [Thuban-list] shapelib In-Reply-To: <3DF63F12.5040803@uni-wuppertal.de> References: <3DF61B8C.5060604@uni-wuppertal.de> <6q1y4piz16.fsf@salmakis.intevation.de> <3DF63F12.5040803@uni-wuppertal.de> Message-ID: <20021211113203.GA6061@intevation.de> On Tue, Dec 10, 2002 at 08:22:58PM +0100, Ingo Wichmann wrote: > In the session tree i can see the data table. But it can not be > displayed. there is a menu item Layer->Show Table. This should open a window with the attribute table of the currently active Layer. You activate the layer by clicking on it in the Tree View (yes, this will be improved in later versions :-). > In the dialog-box for the projection i can only choose UTM. > From what i understand proj4dialog.py does not allow other projetctions. correct. It is currently only possible to project from geographic coordinates to UTM. It is fairly simple to add more projections since PROJ handles a lot of them. A little bit coding is required though. > In grass my projection is > proj: tmerc > ellps: bessel > > Is there a way to display this data anyhow? Maybe by editing the > configuration-file of thuban directly? Actually you can display any shapefile regardless of the projection. What will not work is the conversion to UTM since it assumes geographic coordinates as origin. Best Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/ From wichmann at uni-wuppertal.de Wed Dec 11 22:12:09 2002 From: wichmann at uni-wuppertal.de (Ingo Wichmann) Date: Wed, 11 Dec 2002 22:12:09 +0100 Subject: [Thuban-list] shapelib References: <3DF61B8C.5060604@uni-wuppertal.de> <6q1y4piz16.fsf@salmakis.intevation.de> <3DF63F12.5040803@uni-wuppertal.de> <20021211113203.GA6061@intevation.de> Message-ID: <3DF7AA29.8060406@uni-wuppertal.de> Jan-Oliver Wagner schrieb: >>In the session tree i can see the data table. But it can not be >>displayed. > > there is a menu item Layer->Show Table. > This should open a window with the attribute table of > the currently active Layer. > You activate the layer by clicking > on it in the Tree View (yes, this will be improved in later > versions :-). That's what i did first, so we can call this behavior user friendly :-) The Layer 'strasse' has the following attributes: Shown Shapes: 2928 Extent (lat-lon): (3.40163e+06,5.68677e+06,3.41252e+06,5.70506e+06) Shapetype: Arc Fill: None Outline: (0.000,0.000,0.000) The coordinates given by the statusbar go from 0,0 to 336,-65. But even after shifting them to around 3400000 and 5680000 i didn't find anyting. Ingo From jan at intevation.de Mon Dec 16 23:35:48 2002 From: jan at intevation.de (Jan-Oliver Wagner) Date: Mon, 16 Dec 2002 23:35:48 +0100 Subject: [Thuban-list] shapelib In-Reply-To: <3DF7AA29.8060406@uni-wuppertal.de> References: <3DF61B8C.5060604@uni-wuppertal.de> <6q1y4piz16.fsf@salmakis.intevation.de> <3DF63F12.5040803@uni-wuppertal.de> <20021211113203.GA6061@intevation.de> <3DF7AA29.8060406@uni-wuppertal.de> Message-ID: <20021216223548.GA28795@intevation.de> On Wed, Dec 11, 2002 at 10:12:09PM +0100, Ingo Wichmann wrote: > The Layer 'strasse' has the following attributes: > Shown > Shapes: 2928 > Extent (lat-lon): (3.40163e+06,5.68677e+06,3.41252e+06,5.70506e+06) > Shapetype: Arc > Fill: None > Outline: (0.000,0.000,0.000) > > The coordinates given by the statusbar go from 0,0 to 336,-65. But even > after shifting them to around 3400000 and 5680000 i didn't find anyting. can you send me the data (or a small excerpt of it) so that I can try to reproduce the problem over here? It would make the diagnosis much easier. Best Jan -- Jan-Oliver Wagner http://intevation.de/~jan/ Intevation GmbH http://intevation.de/ FreeGIS http://freegis.org/