This forum is shutting down! Please post new discussions at community.naturalcapitalproject.org
Habitat Risk Assessment - Error : " WARNING 'NoneType' object has no attribute 'GetEnvelope' "
I am receiving the error "WARNING 'NoneType' object has no attribute 'GetEnvelope", when I run the Habitat Risk Assessment with a particular layer.
The model works fine without the offending layer, and when add the layer to the folder "\Input\StressorLayers\" it work normally as well. However, then I put a copy of it in the folder: \Input\Spatially_Explicit_Criteria\Exposure\", the error occures. This layer has the column "rating" (as an integer) and it is populated with the default class ranges of 1 to 3.
I have attached the out put log for viewing.
I had a look around and with ref to the below link this error seems to be related to the software not determine the layer extent:
# Get Envelope returns a tuple (minX, maxX, minY, maxY)
env = geom.GetEnvelope()
So, I trying to find any errors in the initial Shapefile or when/where it goes wrong in the intermidiate files.
It anyone can give some advise, I would be most grateful.