GDAL has a function called
gdal_viewshed. I checked on the GDAL's Python API to see if there is a function I can call in a Python script and I found
However, when I run a script calling this function I get the following message:
AttributeError: module 'osgeo.gdal' has no attribute 'ViewshedGenerate'
I tried with the latest GDAL version (3.0.2) and version 2.3.3 and I always get this message.
The problem is not the code but the fact that GDAL doesn't recognize this function. Does anybody know why I can't use this function although it is on the Python API documentation?
I couldn't even find any information about this function anywhere apart from the mentioned documentation.