jorgealmerio / valuetool

QGis plugin to display in a table or plot the values from the visible raster layers at the current mouse position
4 stars 7 forks source link

AttributeError: 'QgsMeshDataProvider' object has no attribute 'identify' #7

Closed AlisterH closed 4 years ago

AlisterH commented 4 years ago

Using this in QGIS 3.14.0 and 3.12.x with a HEC-RAS mesh layer produces an error:

2020-06-26T19:12:34     WARNING    Traceback (most recent call last):
              File "C:/Users/alistair/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\valuetool\valuewidget.py", line 393, in printValue
              ident = layer.dataProvider().identify(pos, QgsRaster.IdentifyFormatValue, canvas.extent(), width, height ).results()
             AttributeError: 'QgsMeshDataProvider' object has no attribute 'identify'

Should I be trying in an older version to see if that makes a difference? Perhaps it just isn't supported by all types of mesh layer?

jorgealmerio commented 4 years ago

Could you please send me this mesh layer or part of it for me to reproduce the error?

AlisterH commented 4 years ago

https://civilplan-my.sharepoint.com/:u:/g/personal/alister_civilplan_co_nz/EdyS7KdZlIRAslTQcAfKOWQBXFFjDPIuQgq78JXIpNw_Jw?e=RtLodY

jorgealmerio commented 4 years ago

I hope it solved on uploaded version 3.0.7! Let me know if not solved!