MSBilgin/EasyAHP

Wrongly tries to use a vector layer if named like a raster layer

Opened this issue · 1 comments

Have 3 raster layers named as A, B and C + one vector layer named as A
After adding the 3 raster layers to EasyAHP it fails with:

AttributeError: 'QgsVectorLayer' object has no attribute 'bandCount'

Which indicates that it somehow is trying to use a layer that isn't a raster.

ie, instead using the raster layer A it's trying to use the vector layer A

See https://issues.qgis.org/issues/17079 for more info, please.

Thanks for pr, looks great. But I 'll test it in my free time.