UMEP-dev / UMEP

Urban Multi-scale Environmental Predictor
https://umep-docs.readthedocs.io/
62 stars 15 forks source link

Error using DSM generator #316

Closed Jsas1 closed 3 years ago

Jsas1 commented 3 years ago

Hi,

I have the following error using DSM Generator :

AttributeError: 'NoneType' object has no attribute 'ReadAsArray' Traceback (most recent call last): File "C:\Users/Juliana/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\UMEP\DSMGenerator\dsm_generator.py", line 645, in start_progress dsm_array = np.array(dsm_raster.ReadAsArray().astype(np.float)) AttributeError: 'NoneType' object has no attribute 'ReadAsArray'

Versão do Python: 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] Versão do QGIS: 3.16.10-Hannover Hannover, e5b665e9

I've attached my files here : files.zip

Jsas1 commented 3 years ago

Hello again,

The error has already been fixed. In fact, it was caused by oversight. I forgot to select the "extent from layer" in the dialog box. Now the software worked fine. Forgive me for the misunderstanding.

Thanks