Re: [Qgis-user] HomeRange plugin updated
John C. Tull ha scritto: This might be related to OS X weirdness with library linking. I can reproduce this problem in ftools also. I'll report back if I it working. thanks for testing. I can send you previous vesion of the plugin to check if it works - but I haven't changed a line of the code that raises the error. let us know further details of this issue. best regards, Anne On Apr 8, 2009, at 9:10 AM, Paolo Cavallini wrote: John C. Tull ha scritto: The plugin fails to recognize loaded point layers on OS X with rpy2, R 2.8.1 and qt-4.5. Anne: should I revert to previous version, or can you check this? All the best. -- Paolo Cavallini: http://www.faunalia.it/pc ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] HomeRange plugin updated
John C. Tull ha scritto: I've worked out the OS X linking issues. When I run on a modest dataset, I now receive the following error. I'd be happy to test with another shapefile of points if it will help. An error has occured while executing Python code: Traceback (most recent call last): [cut] RRuntimeError: Error in kernelUD(dd[, c(X, Y)], dd[, ID], h = LSCV, grid = grid) : At least 5 relocations are required to fit an home range this is a normal R error - to compute homeranges, subsets of points determined by the attribute in the colum you chose (for esample animal ID, month, year...) must contain at least 5 points. Even one subset with 5 points raises this error. I suggest to group points by another column. On my side, I will change the code to avoid Python error, and raise a info window instead. many thanks and best regards, Anne ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Linking an external attribute table..
Thursday 09 of April 2009 13:08:26 no-reply napisaĆ(a): Is there in the core? Is any plugin capable to perform such attribute linkage ? Unfortunately linking tables on the fly is not inmplemented yet. For now, you need to create a new shapefile with the linked table: Tools - Data Management Tools - Join Attributes (the fTools plugin has to be installed and enabled) ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Relational Databases and PostGIS formatting of Vector Data
Alex Mandel wrote: I'm a little lost here, in my experience a vector layer becomes a table, not multiple tables and all the geometries are stored in a blob column no matter what type it is. That's what I'm curious about. Each vector is becoming a table unto itself. That's not proper normal form for a relational database. Of course if you have multiple vector types in the same table this can cause issues with various spatial operations, so you either need to separate them out or subquery when you want to perform spatial operations to make sure you only use compatible types. Yes, this is exactly what you want when using a relational database in the proper manner. What tool did you use to import the layer into POSTGIS? Quantum GIS. ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Linking an external attribute table..
I accomplish this by using the Grass plugin and the sqlite driver for data storage. 1. Create a Grass Mapset 2. Change the driver to sqlite db.connect (I think) 3. Import the Vector layer to Grass 4. Now you can import any other attribute tables you want into your sqlite database, I use the Firefox SQLite Manager plugin to do this. Then I run queries to build tables I want to use with my layer or add columns to the attribute table. 5. Using the Grass plugin you can change what table is linked to the layer at any time or if you added columns to the attribute table the data will show up. Kinda round-about way, but it works. Alex no-reply wrote: Hello.. if you work with economic or sociological data, you'll have often to display (and sometimes to analyse) data that have a geographical dimension. For example, you may want to render a map of average incomes by state. Or average age by county, etcc... The normal procedure that my colleagues run in order to achieve this, is to dynamically link to a shapefile of the admin borders a dbf or Excel spreadshet where the data of their interest reside. Some people still use ArcView 3.1! The problem is that I am completelly unable to replicate this in qGIS :-( Is there in the core? Is any plugin capable to perform such attribute linkage ? cheers, Antonello ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Relational Databases and PostGIS formatting of Vector Data
Peter, What tool did you use to import the layer into POSTGIS? Quantum GIS. My guess is you actually used the SPIT plugin, which is a C++ plugin included with QGIS, and is a gui frontend to shp2pgsql... Carson ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] HomeRange plugin updated
In addition to the last error, when I quit and restart qgis after loading and installing the HomeRange plugin, I get this error during startup. Afterwards, the HomeRange plugin cannot be loaded: Couldn't load plugin HomeRange_plugin from ['/Applications/ qgis1.1.0.app/Contents/MacOS/share/qgis/python', '/Users/jctull/.qgis// python/plugins', '/Applications/qgis1.1.0.app/Contents/MacOS/share/ qgis/python/plugins', '/Library/Frameworks/GDAL.framework/Versions/1.6/ Python/site-packages', '/Library/Python/2.5/site-packages/ nose-0.11.0.dev_r560-py2.5.egg', '/Library/Python/2.5/site-packages/ setuptools-0.6c9-py2.5.egg', '/Library/Python/2.5/site-packages/ matplotlib-0.98.6svn-py2.5-macosx-10.3-i386.egg', '/Library/Python/2.5/ site-packages/pytz-2008i-py2.5.egg', '/Library/Python/2.5/site- packages/py2app-0.3.6-py2.5.egg', '/Library/Python/2.5/site-packages/ pyparsing-1.5.1-py2.5.egg', '/Library/Python/2.5/site-packages/ PyOpenGL-3.0.0b8-py2.5.egg', '/Library/Python/2.5/site-packages/ scipy-0.7.0-py2.5-macosx-10.5-i386.egg', '/Library/Python/2.5/site- packages/pyamg-1.0.0-py2.5-macosx-10.5-i386.egg', '/Library/Python/2.5/ site-packages/numpy-1.2.1-py2.5-macosx-10.5-i386.egg', '/Library/ Python/2.5/site-packages/simplejson-2.0.9-py2.5-macosx-10.5-i386.egg', '/Library/Python/2.5/site-packages/Shapely-1.0.11-py2.5.egg', '/ Library/Python/2.5/site-packages/psycopg2-2.0.9-py2.5-macosx-10.5- i386.egg', '/Library/Python/2.5/site-packages/pymc-2.0-py2.5- macosx-10.3-i386.egg', '/usr/local/lib/wxPython-unicode-2.8.9.1/lib/ python2.5/site-packages', '/usr/local/lib/wxPython-unicode-2.8.9.1/lib/ python2.5/site-packages/wx-2.8-mac-unicode', '/System/Library/ Frameworks/Python.framework/Versions/2.5/lib/python25.zip', '/System/ Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5', '/ System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/ 2.5/lib/python2.5/plat-mac', '/System/Library/Frameworks/ Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib- scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/ 2.5/Extras/lib/python', '/System/Library/Frameworks/Python.framework/ Versions/2.5/lib/python2.5/lib-tk', '/System/Library/Frameworks/ Python.framework/Versions/2.5/lib/python2.5/lib-dynload', '/Library/ Python/2.5/site-packages', '/usr/local/lib/wxPython-unicode-2.8.9.1/ lib/python2.5', '/System/Library/Frameworks/Python.framework/Versions/ 2.5/Extras/lib/python/PyObjC', '/Applications/qgis1.1.0.app/Contents/ MacOS/share/qgis/python/plugins/fTools/tools'] Traceback (most recent call last): File , line 2, in File /Users/jctull/.qgis//python/plugins/HomeRange_plugin/ __init__.py, line 32, in from HRplugin_main import HRPlugin File /Users/jctull/.qgis//python/plugins/HomeRange_plugin/ HRplugin_main.py, line 40, in from HRplugin_dialog import Dialog File /Users/jctull/.qgis//python/plugins/HomeRange_plugin/ HRplugin_dialog.py, line 44, in from HRplugin_algorithm import * File /Users/jctull/.qgis//python/plugins/HomeRange_plugin/ HRplugin_algorithm.py, line 46, in import rpy2.robjects as robjects File /Library/Python/2.5/site-packages/rpy2/robjects/__init__.py, line 12, in import rpy2.rinterface as rinterface File /Library/Python/2.5/site-packages/rpy2/rinterface/ __init__.py, line 6, in R_HOME = os.popen(R RHOME).readlines() IOError: [Errno 4] Interrupted system call Python version: 2.5.1 (r251:54863, Jan 13 2009, 10:26:13) [GCC 4.0.1 (Apple Inc. build 5465)] Python path:['/Applications/qgis1.1.0.app/Contents/MacOS/share/qgis/ python', '/Users/jctull/.qgis//python/plugins', '/Applications/ qgis1.1.0.app/Contents/MacOS/share/qgis/python/plugins', '/Library/ Frameworks/GDAL.framework/Versions/1.6/Python/site-packages', '/ Library/Python/2.5/site-packages/nose-0.11.0.dev_r560-py2.5.egg', '/ Library/Python/2.5/site-packages/setuptools-0.6c9-py2.5.egg', '/ Library/Python/2.5/site-packages/matplotlib-0.98.6svn-py2.5- macosx-10.3-i386.egg', '/Library/Python/2.5/site-packages/pytz-2008i- py2.5.egg', '/Library/Python/2.5/site-packages/py2app-0.3.6- py2.5.egg', '/Library/Python/2.5/site-packages/pyparsing-1.5.1- py2.5.egg', '/Library/Python/2.5/site-packages/PyOpenGL-3.0.0b8- py2.5.egg', '/Library/Python/2.5/site-packages/scipy-0.7.0-py2.5- macosx-10.5-i386.egg', '/Library/Python/2.5/site-packages/pyamg-1.0.0- py2.5-macosx-10.5-i386.egg', '/Library/Python/2.5/site-packages/ numpy-1.2.1-py2.5-macosx-10.5-i386.egg', '/Library/Python/2.5/site- packages/simplejson-2.0.9-py2.5-macosx-10.5-i386.egg', '/Library/ Python/2.5/site-packages/Shapely-1.0.11-py2.5.egg', '/Library/Python/ 2.5/site-packages/psycopg2-2.0.9-py2.5-macosx-10.5-i386.egg', '/ Library/Python/2.5/site-packages/pymc-2.0-py2.5-macosx-10.3-i386.egg', '/usr/local/lib/wxPython-unicode-2.8.9.1/lib/python2.5/site-packages',
Re: [Qgis-user] Relational Databases and PostGIS formatting of Vector Data
Yes, that is correct. Are there any other 'shp ingesters' for use with QGIS? AFAIK the PostGIS manager plugin is also able to load shapefiles into PostGIS, and this is a nice simple way to manage your database directly from within QGIS. I am thinking that my complaint regarding proper normal form for vector data ingested into postgresql should also be tempered with the idea that any database user could reorganize the ingested data into any format they desire. Therefore, it's not as though anything is actually irreparably disorganized or broken. Technically one could just add a trigger to the system catalogs to check if a new table has been added to the database and then go from there. Yes, I think you're probably right here. It would be difficult to create a tool that would import data into pgsql the way that everyone or anyone would like... so KISS is the best solution (keep it simple s...) from here it's up to the database maintainer to keep things the way they want it... Th postgis user lists would probably benefit from this discussion, have you suggested similar things there? Most of us on the QGIS lists aren't database experts, so a better discussion would probably come out of the postgis lists. Carson -- Carson J. Q. Farmer ISSP Doctoral Fellow National Centre for Geocomputation (NCG), National University of Ireland, Maynooth, Email: carson.far...@gmail.com Web: http://www.carsonfarmer.com/ http://www.ftools.ca/ ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Relational Databases and PostGIS formatting of Vector Data
On Thu, Apr 9, 2009 at 7:53 PM, Peter Willis pet...@borstad.com wrote: Carson Farmer wrote: Peter, What tool did you use to import the layer into POSTGIS? Quantum GIS. My guess is you actually used the SPIT plugin, which is a C++ plugin included with QGIS, and is a gui frontend to shp2pgsql... Just to clarify: SPIT plugin is not a frontend to shp2pgsql, it has its own logic. In addition to SPIT you can try to shp2pgsql command line tool or PostGIS manager plugin for qgis which actually is a simple shp2pgsql GUI :) Martin ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
Re: [Qgis-user] Relational Databases and PostGIS formatting of Vector Data
On Thu, Apr 9, 2009 at 7:53 PM, Peter Willis pet...@borstad.com wrote: Carson Farmer wrote: Peter, What tool did you use to import the layer into POSTGIS? Quantum GIS. My guess is you actually used the SPIT plugin, which is a C++ plugin included with QGIS, and is a gui frontend to shp2pgsql... Just to clarify: SPIT plugin is not a frontend to shp2pgsql, it has its own logic. I stand correctly ;-) C ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user
[Qgis-user] WFS/WMS layers behind HTTP/HTTPS basic auth
Hello, I am wondering if there is a way to get QGIS to request the basic auth user name and password for WMS/WFS URLs that are protected by HTTP basic auth. When I put a URL (that uses basic auth) into the WMS server connections I just get an error that the return message is misunderstood when QGIS attempts to connect. Is there any way to use HTTP basic auth with QGIS WMS? Thanks Peter ___ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user