[QGIS-Developer] PyQgis Get Interpolated Z like identify Tool

Jorge Almerio jorgealmerio at yahoo.com.br
Tue Feb 18 09:17:55 PST 2020


Hi devs,

 

How can I get the interpolated Z value (as shown in the picture below) of a
layer (PolygonZ) for a clicked or existent point with PyQgis?

 



 

I already know how to do it with a raster layer (sample raster), like code
below:

 

rastSample = Raster.dataProvider().identify(point,
QgsRaster.IdentifyFormatValue).results()

 

Anyone can help me?

 

Thank you,

 

Jorge Almerio

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200218/ed18c222/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 34158 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20200218/ed18c222/attachment-0001.png>


More information about the QGIS-Developer mailing list