[Qgis-developer] [Qgis-user] Using/visualizing 3D data (Z values)
gene
martin.laloux at gmail.com
Wed Sep 26 06:26:04 PDT 2012
Using a script like:
def select_all(couche):
couche.select([])
couche.setSelectedFeatures([obj.id() for obj in couche])
macouche = qgis.utils.iface.activeLayer()
select_all(macouche)
from shapely.wkb import loads
from shapely.geometry import shape
lignes = []
for elem in macouche.selectedFeatures():
geom= elem.geometry()
wkb = geom.asWkb()
lignes.append(loads(wkb))
list(lignes.coords)
You have all the elements (x,y and z) to plot your geometry in 3D with
matplotlib, visvis or others or to use the Python grass.script module to
create a 3D layer in GRASS
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Re-Qgis-user-Using-visualizing-3D-data-Z-values-tp5004272p5004652.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
More information about the Qgis-developer
mailing list