zoran-cuckovic / QGIS-visibility-analysis

Quantum GIS plugin for visibility analysis
GNU General Public License v3.0
72 stars 18 forks source link

Problem with metric system and pixel shape #27

Closed zenekites closed 5 years ago

zenekites commented 5 years ago

I am trying to run visibility plugin on Qgis 3.4.4. But unfortunately it fails during the creation of viewpoints with the following error:

ERROR! Raster data has to be projected in a metric system! Traceback (most recent call last): File "C:/Users/serdarr/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ViewshedAnalysis\algorithms\viewshed_points.py", line 187, in processAlgorithm raise QgsProcessingException(err) _core.QgsProcessingException:

and when I project the raster into a metric system I get the following error :


ERROR! Raster pixels are irregular in shape (probably due to incorrect projection)! Traceback (most recent call last): File "C:/Users/serdarr/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\ViewshedAnalysis\algorithms\viewshed_points.py", line 194, in processAlgorithm raise QgsProcessingException(err) _core.QgsProcessingException:


Would you please help me sort out the problem, since I would love to use this great plugin.

Thanks in advance

zoran-cuckovic commented 5 years ago

Hello, You should give me some more information: which projection are you using (I assume that your data is in Lat/Lon) ?

zenekites commented 5 years ago

Hello,

Thanks for your help.

The DEM I use is Aster DEM , which is EPSG:4326. It does not work for creating viewpoints (requires a metric projection). When I change the projection to EPSG:32635 in QGIS, it does not work due to irregular shape of pixels. But when I reprojected the raster with Arcmap, it worked. And it also worked when I used "gdal:warpreproject".

Best Regards

Zoran Čučković notifications@github.com, 18 Şub 2019 Pzt, 14:23 tarihinde şunu yazdı:

Hello, You should give me some more information: which projection are you using (I assume that your data is in Lat/Lon) ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zoran-cuckovic/QGIS-visibility-analysis/issues/27#issuecomment-464694478, or mute the thread https://github.com/notifications/unsubscribe-auth/AtgoaHCEx33d7qiSrOsIRMqF5QGM6tDEks5vOo0bgaJpZM4a_rw4 .

zoran-cuckovic commented 5 years ago

Hello, Aster GDEM is a standard DEM dataset; normally there should be no problems. Here is a viewshed model for your UTM projection (zone of Antalya) : image I suppose that your problem is related to incorrect projection.

zenekites commented 5 years ago

Thank you so much For your help. I will check again.

Zoran Čučković notifications@github.com, 18 Şub 2019 Pzt, 21:46 tarihinde şunu yazdı:

Hello, Aster GDEM is a standard DEM dataset; normally there should be no problems. Here is a viewshed model for your UTM projection (zone of Antalya) : [image: image] https://user-images.githubusercontent.com/6622934/52970732-3c94e980-33b5-11e9-9a51-6a41f6c6c81a.png I suppose that your problem is related to incorrect projection.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/zoran-cuckovic/QGIS-visibility-analysis/issues/27#issuecomment-464840826, or mute the thread https://github.com/notifications/unsubscribe-auth/AtgoaBVx45kcJV9VBEN2vN4CrwnOGc6hks5vOvULgaJpZM4a_rw4 .