[Qgis-user] Two different QGIS installations on one linux box
I want to install two different QGIS Versions on one linux box. 1. Stable 0.9.1 in production state and 2. unstable 0.9.2 for developing. With ccmake I configure different CMAKE_INSTALL_PREFIX for each installation. After make install 1. the Python bindings for 2. are not available and vice versa. What do I have to do to run two versions with Python bindings? Regards Horst Dr. Horst Düster GIS-Koordinator, Stv. Amtschef Kanton Solothurn Bau- und Justizdepartement Amt für Geoinformation SO!GIS Koordination Rötistrasse 4 CH-4501 Solothurn Telefon ++41(0)32 627 25 32 Telefax ++41(0)32 627 22 14 mailto:[EMAIL PROTECTED] http://www.agi.so.ch ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] Two different QGIS installations on one linux box
On Jan 14, 2008 10:07 AM, Düster Horst [EMAIL PROTECTED] wrote: I want to install two different QGIS Versions on one linux box. 1. Stable 0.9.1 in production state and 2. unstable 0.9.2 for developing. With ccmake I configure different CMAKE_INSTALL_PREFIX for each installation. After make install 1. the Python bindings for 2. are not available and vice versa. What do I have to do to run two versions with Python bindings? Hi, have you installed both versions from the same source directory? I´m wondering whether there´s not some weird problem with rpath. Please try running ldd on python core.so library in both versions to see where does it link to... Martin ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] python plugin action vs mode tool
Hi We have the same idea already implemented for C++ programmers for some time - so maybe Martin could extend the plugin build to ask which language you want your plugin to be in and then build from a python plugin template when applicable. Qt automatically changes the brightness of buttons based on whether they are enabled or not, so I guess you need to call setEnabled on your button based on context. Regards Tim 2008/1/14, Richard Duivenvoorde [EMAIL PROTECTED]: Hi List, I'm currently working on a python plugin which is actually a click-tool, comparable to the I-tool from the attributes-view. That is: when you click the plugin button, you click in the map and something happens, you are supposed to be in that 'mode'/'state' untill you choose to use another tool (like zoomin, select etc). This opposed to (plugin)-tools which work via their own 'config'-screen: you activate the plugin, a config screen pops up, and after completing the configuration you're still in the old (eg zoom) mode. Questions: - is there a difference between these two 'modes', in term of names (tools vs wizard or so)? How do you call these? - I was not able to 'enable' my plugin button, aka: make it a little darker so you know that you're still in the xyz-mode. Can somebody point me to such an example, or are plugins not supposed to work like this? Idea: Is it an idea for one of the (python)-guru's to make two plugin annotated stubbs and add it to the pluginrepository, which can be used by 'normal' people to implement their functionality. I'm thinking of two plugins: one for this 'wizard'-like plugins and one for this 'state'-like plugin. This plugins do nothing more then enable certain (click) events in the map and do a print out (though these print out lines can't be seen in windows?). Actually in line with this wiki article: http://wiki.qgis.org/qgiswiki/DevelopingPluginsWithPython, but adding some more events, and maybe some simple qt dialogs. A user which knows a few words of python can then copy the plugin stubb, and add some simple code for example in the 'mapClick'handler, without knowing to much about the Qt-event handling system. If needed this can be learned later. Essentials: - the stubbs should contain ready made parts for thinks like: showing the essential events: mouseClicks in the map etc - there should be a difference between a (more advanced) wizard like plugin and a simple 'commandline'-plugin. Regards, Richard ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user -- Tim Sutton QGIS Project Steering Committee Member - Release Manager Visit http://qgis.org for a great open source GIS openModeller Desktop Developer Visit http://openModeller.sf.net for a great open source ecological niche modelling tool Home Page: http://tim.linfiniti.com Skype: timlinux Irc: timlinux on #qgis at freenode.net ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] How to identify a raster on the map?
FYI, http://blog.qgis.org/?q=node/104 A ++ Aaron Racicot - GIS Programmer [EMAIL PROTECTED] ++ z - p u l l e y pobox 1614 langley wa 98260 www.reprojected.com ++ _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of andrea pacifici Sent: Friday, January 11, 2008 4:36 AM To: Richard Duivenvoorde Cc: [EMAIL PROTECTED] Subject: Re: [Qgis-user] How to identify a raster on the map? Hi Richard, I'm using Qgis in order to realise a geological map: images will be not distribuited via mapserver. So I actually have more than 200 layers. To create a python plugin for that could be very interesting. But I don't know python language Anyway, I think that the possibility to have a Qgis plugin doing this could be fundamental for those people working with a very large number of raster data (this is the case of people like me working on planetary geology) Thank you very much Andrea 2008/1/11, Richard Duivenvoorde [EMAIL PROTECTED]: Hi Andrea, how did you load these rasters? Every raster in a layer (so you have actually 200 layers)? Or did you generate a tileindex file using gdaltindex and are you serving the rasterimages using mapserver? If the first: it's fun to write a simple python plugin for that, if needed I can give you some help (thinking about: get mouseXY, walk through all layers and check if you are within the bbox of current layer, spit the layername or some other attribute name to std-out (or more fancy: show a dialog).) If the second: as Tim told you: add the indexfile as layer. You can also use that indexfile to serve the rasters via Mapserver then. Building the indexfile and just loading that in Qgis is probably the fastest way. Grtz Richard Duivenvoorde andrea pacifici wrote: Hi, I have a Qgis-GRASS GIS project containing more than 200 rasters: it is a GIS project about a portion of Mars (yes... the planet!). Often, I need to identify the name of one of such rasters just by clicking on it on the map. Which is the best way to do this with Qgis? The Identify button give information on a raster only if the raster it is already selected. There is a plugin to do this? Otherwise, I think the only way is to build a vector layer representing raster footprints, and interrogate it. Thanks Andrea -- _ Dott. Geol. Andrea Pacifici, Ph.D. Via della Billona 1093, 55100 Lucca, Italy Cell. +39328-09918108 E-Mail [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user -- _ Dott. Geol. Andrea Pacifici, Ph.D. Via della Billona 1093, 55100 Lucca Cell. 328-09918108 E-Mail [EMAIL PROTECTED] ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
[Qgis-user] Fwd: Points vs. Polygons
Forgot to CC: the list on my response... -- Forwarded message -- From: Matthew Perry [EMAIL PROTECTED] Date: Jan 14, 2008 2:14 PM Subject: Re: [Qgis-user] Points vs. Polygons To: Beowulf [EMAIL PROTECTED] Sounds like you'd be interested in a topological data model which would all you to store nodes and the connections/relationships between them (polygons). Postgis has pre-alpha support for this : http://postgis.refractions.net/support/wiki/index.php?PostgisTopology GRASS has a well established topological vector data model but I can't say if it would work well for your purposes. Another option would be to create your own psuedo-topological system and have a nodes table (your standard points table), a polygon table (with all non-spatial info about your parcels) and a polygon_nodes_join table which would join the two ...: polygon id | order | nodeid 1 | 1 | 101 1 | 2 | 102 1 | 3 | 103 1 | 4 | 101 Then have a query, script or stored procedure to generate a spatial polygon layer from the tables. - matt On Jan 14, 2008 1:58 PM, Beowulf [EMAIL PROTECTED] wrote: As you all know, PostGIS is a great way to store spatial data :) But here's another question. Let's say we have a PostGIS table that stores polygons. These polygons are actually land plots, and there is a bunch of fields in that table to store owner information, etc. The spatial data is stored as WKB in a BLOB. But what if I want those polygon vertices to have some extra attributes to them? Our cadastre expects us to name every point we've measured. A line in cadastral exchange file would look like this: N=1,NP=132,X=5642997.41,Y=3340518.97,MX=0.05,MY=0.05 Meaning this is the first vertex in a polygon, it's name is 123, its coords are 5642997.41 and 3340518.97. Also the error of measurement is 0.05 meters for both X and Y. I suspect there is no way to attach that info to every vertex in a polygon. But then maybe another table with spatial POINTs can be created? That way every vertex may have all of its attributes defined. However, another problems arises - how to link these points into a polygon. I feel that having a polygon in another table that just repeats those points is a bad idea because that info is redundant and it's going to be a pain in the butt to make it coherent. Sure, I could ignore all that trouble and simply hardcode an error of 0.05m in every measurement (since it doesn't change) and generate random point names (since our cadastral system seems to ignore them anyway) but that just doesn't feel right. Any ideas? -- View this message in context: http://www.nabble.com/Quantum-GIS-and-cadastre-tp14477338p14815883.html Sent from the qgis-user mailing list archive at Nabble.com. ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user -- Matthew T. Perry http://www.perrygeo.net I love deadlines. I like the whooshing sound they make as they fly by. -- Douglas Adams ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] How to identify a raster on the map?
Hi Aaron I tried out your plugin - works great! Regards Tim 2008/1/14, Aaron Racicot [EMAIL PROTECTED]: FYI, http://blog.qgis.org/?q=node/104 A ++ Aaron Racicot - GIS Programmer [EMAIL PROTECTED] ++ z - p u l l e y pobox 1614 langley wa 98260 www.reprojected.com ++ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of andrea pacifici Sent: Friday, January 11, 2008 4:36 AM To: Richard Duivenvoorde Cc: [EMAIL PROTECTED] Subject: Re: [Qgis-user] How to identify a raster on the map? Hi Richard, I'm using Qgis in order to realise a geological map: images will be not distribuited via mapserver. So I actually have more than 200 layers. To create a python plugin for that could be very interesting. But I don't know python language Anyway, I think that the possibility to have a Qgis plugin doing this could be fundamental for those people working with a very large number of raster data (this is the case of people like me working on planetary geology) Thank you very much Andrea 2008/1/11, Richard Duivenvoorde [EMAIL PROTECTED]: Hi Andrea, how did you load these rasters? Every raster in a layer (so you have actually 200 layers)? Or did you generate a tileindex file using gdaltindex and are you serving the rasterimages using mapserver? If the first: it's fun to write a simple python plugin for that, if needed I can give you some help (thinking about: get mouseXY, walk through all layers and check if you are within the bbox of current layer, spit the layername or some other attribute name to std-out (or more fancy: show a dialog).) If the second: as Tim told you: add the indexfile as layer. You can also use that indexfile to serve the rasters via Mapserver then. Building the indexfile and just loading that in Qgis is probably the fastest way. Grtz Richard Duivenvoorde andrea pacifici wrote: Hi, I have a Qgis-GRASS GIS project containing more than 200 rasters: it is a GIS project about a portion of Mars (yes... the planet!). Often, I need to identify the name of one of such rasters just by clicking on it on the map. Which is the best way to do this with Qgis? The Identify button give information on a raster only if the raster it is already selected. There is a plugin to do this? Otherwise, I think the only way is to build a vector layer representing raster footprints, and interrogate it. Thanks Andrea -- _ Dott. Geol. Andrea Pacifici, Ph.D. Via della Billona 1093, 55100 Lucca, Italy Cell. +39328-09918108 E-Mail [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user -- _ Dott. Geol. Andrea Pacifici, Ph.D. Via della Billona 1093, 55100 Lucca Cell. 328-09918108 E-Mail [EMAIL PROTECTED] ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user -- Tim Sutton QGIS Project Steering Committee Member - Release Manager Visit http://qgis.org for a great open source GIS openModeller Desktop Developer Visit http://openModeller.sf.net for a great open source ecological niche modelling tool Home Page: http://tim.linfiniti.com Skype: timlinux Irc: timlinux on #qgis at freenode.net ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] How to identify a raster on the map?
On Jan 14, 2008 9:36 PM, Aaron Racicot [EMAIL PROTECTED] wrote: http://blog.qgis.org/?q=node/104 Aaron, a note about the implementation: in fact you don't need to implement RasterInfoTool - there's QgsMapToolEmitPoint in gui iibrary which does the same thing :-) Moreover, when reimplementing activate/deactivate functions you should also call parent QgsMapTool::(de)activate function to keep everyone happy. But well, I know... documentation is lacking :-/ Greetings Martin ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user
Re: [Qgis-user] How to identify a raster on the map?
Martin, Thanks for the advice... always welcome and look forward to more! I went ahead and updated the activate and deactivate to call the QgsMapTool.activate(self) and QgsMapTool.deactivate(self) respectively. For now I am just going to leave this as an implementation of a QgsMapTool and will look closer at the QgsMapToolEmitPoint. I have updated the SVN and uploaded a new zip (0.03) to the plugin repository. Thanks again... A ++ Aaron Racicot - GIS Programmer 360.221.2441 - [EMAIL PROTECTED] ++ z - p u l l e y pobox 1614 langley wa 98260 www.reprojected.com ++ -Original Message- From: Martin Dobias [mailto:[EMAIL PROTECTED] Sent: Monday, January 14, 2008 4:34 PM To: Aaron Racicot Cc: [EMAIL PROTECTED] Subject: Re: [Qgis-user] How to identify a raster on the map? On Jan 14, 2008 9:36 PM, Aaron Racicot [EMAIL PROTECTED] wrote: http://blog.qgis.org/?q=node/104 Aaron, a note about the implementation: in fact you don't need to implement RasterInfoTool - there's QgsMapToolEmitPoint in gui iibrary which does the same thing :-) Moreover, when reimplementing activate/deactivate functions you should also call parent QgsMapTool::(de)activate function to keep everyone happy. But well, I know... documentation is lacking :-/ Greetings Martin ___ Qgis-user mailing list Qgis-user@lists.qgis.org http://lists.qgis.org/cgi-bin/mailman/listinfo/qgis-user