Geographic Information Systems Asked by dangimar on July 1, 2021
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 gdal.ViewshedGenerate
.
https://gdal.org/python/index.html
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.
I explained how to install GDAL successfully on MS Windows. Follow this post on GIS Stackchange to install GDAL easily on your machine.
Answered by ArashMad on July 1, 2021
Have a closer look at https://gdal.org/programs/gdal_viewshed.html.
New in version 3.1.0.
Answered by user30184 on July 1, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP