[Qgis-user] Using/visualizing 3D data (Z values)

gene martin.laloux at gmail.com
Wed Oct 17 08:12:26 PDT 2012


it is a problem of PATH

*1) in the shell:*
If you read the "Read Me.rtf" accompanying QGIS, the procedure is specified:
"/The PyQt programs are included to compile UI and resource files for
plugins.  To use them, set these in your shell environment (you can add it
to your ~/.bash_profile if you like):

export PATH="/Applications/QGIS.app/Contents/MacOS/bin:$PATH"
export PYTHONPATH="/Applications/QGIS.app/Contents/Resources/python"

If you already have something in PYTHONPATH, add it instead with:

export
PYTHONPATH="/Applications/QGIS.app/Contents/Resources/python:$PYTHONPATH"

Note that QGIS.app MUST be installed in /Applications and must not be
renamed for pyuic4 to work (it has a hardcoded path in it)./"

After that, you can use PyQt4 in the shell 

>>> import PyQt4
>>> PyQt4.__file__
'/Applications/QGIS.app/Contents/MacOS/../Resources/python/PyQt4/__init__.pyc'


*2) In the console of QGIS*, 
This is not normal because the console itself is written in PyQt4
1) with QGIS 1.8
>>> import   PyQt4:
>>> PyQt4.__file__
'/Applications/*QGIS.app*/Contents/MacOS/../Resources/python/PyQt4/__init__.pyc'
2) with QGIS dev:
>>> import   PyQt4
>>> PyQt4.__file__
'/Applications/*QGIS_2.0-dev_SnoLeo.app*/Contents/MacOS/../Resources/python/PyQt4/__init__.pyc'






--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Using-visualizing-3D-data-Z-values-tp4126375p5009339.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.



More information about the Qgis-user mailing list