Calculating Statistically Significant Hotspots Using the Hotspot Analysis Plugin in QGIS

  Рет қаралды 22,938

AMDGS

AMDGS

Күн бұрын

Found this helpful? Buy me a coffee on Ko-Fi: ko-fi.com/amdgs
The ability to calculate hotspots is a useful function of GIS, but often the results are visual rather than statistically robust. This video looks at installation and use of the experimental 'Hotspot Analysis' plugin in QGIS, which allows you to calculate statistically significant hotspots in QGIS in a similar way to the Hot Spot Analysis (Getis-Ord Gi*) and Optimized Hotspot Analysis tools in ArcGIS. As well as using the Getis-Ord Gi* hotspot calculation technique, the plugin also has the option of Local Moran's I and Local Moran's Bivariate approaches for hotspot calculations.
As well as providing tips on setup and installation, I also show you how to use the tool to produce hotspots for both polygon and point data. As this QGIS plugin cannot currently work on point density alone, some additional steps are needed to prepare for the hotspot analysis.
The Hotspot Analysis plugin is experimental, so does require some additional installation steps beyond simply installing the plugin. Key steps can be found on the Hotspot Analysis plugin page in Github at github.com/danioxoli/HotSpotA..., but in addition I've found it necessary to comment out lines 43-48 of the __init__.py file, to prevent it attempting to load Pandas.
If you find this video useful, please like and subscribe! Any problems drop me a comment and I'll do my best to help.

Пікірлер: 44
@danieleoxoli7664
@danieleoxoli7664 3 жыл бұрын
Thanks a lot for providing this on behalf of the plugin authors!
@Serbinnhio
@Serbinnhio 4 жыл бұрын
Just followed your instructions and finally got the Hotspot analysis tool to work. The python related stuff was what I had trouble with. Thank you!
@gabrielaarteaga7405
@gabrielaarteaga7405 3 жыл бұрын
Here to share that I finally did it!! Thank you. I was harder make it work in OS,.with Windows it was definetly easier.
@faymcdonough5010
@faymcdonough5010 4 жыл бұрын
thank you for making such a helpful video!!
@AMDGS
@AMDGS 4 жыл бұрын
No problem!
@vaniadg5105
@vaniadg5105 3 жыл бұрын
Thank you so much this was really helpful!
@yannicao1073
@yannicao1073 4 жыл бұрын
this is extremely helpful!
@leisureurban
@leisureurban 3 жыл бұрын
Thanks a lot!! I've solved errors to install pysal due to this video!!!
@user-lv8if5qv7e
@user-lv8if5qv7e 3 жыл бұрын
Amazing!!Thanks a lot
@marceloamorimtolentino3741
@marceloamorimtolentino3741 3 жыл бұрын
Thank You! Great Job. I gotta a question: Is it possible to make a heatmap to map the drainage density using polylines in Qgis? I didn't find anything by now.
@utubemania9079
@utubemania9079 3 жыл бұрын
Best tutorial.
@mohd.minhajuddinaquil3870
@mohd.minhajuddinaquil3870 3 жыл бұрын
Very helpful video... Sir, which version of QGIS you have used in this video?
@ewanharris5433
@ewanharris5433 3 жыл бұрын
Excellent Thank you
@eimienwanlanibhagui4859
@eimienwanlanibhagui4859 2 жыл бұрын
Thank you for your video. However, I have a question. How do the empty boxes (i.e., 100m by 100m square boxes with zero count) impact the result?
@marinerr
@marinerr 3 жыл бұрын
wow~~ thanks a lot~!!
@cynthiamapendere253
@cynthiamapendere253 4 жыл бұрын
Hi I am having challenges with the editing on 06:50 for some reason when I right click i only get open options or open with instead of edit with
@angheloolivaressolis8043
@angheloolivaressolis8043 3 жыл бұрын
It doesnot work still have error
@angeloolivaressolis3033
@angeloolivaressolis3033 3 жыл бұрын
what version of qgis do you have ?
@ama19128
@ama19128 2 жыл бұрын
I tried with the steps but l am still getting an error any help. if l can send a screen shot of my error? Also l do not know if is my version too?
@D0PPELSCHMERZ
@D0PPELSCHMERZ 3 жыл бұрын
hey, when i try the last step (hotspt analysis plugin) i get an phyton memory error,help me please....
@waterflorida5028
@waterflorida5028 3 жыл бұрын
me toooooo
@D0PPELSCHMERZ
@D0PPELSCHMERZ 3 жыл бұрын
@@waterflorida5028 i think you have to choose a smaller area
@falfalkao5104
@falfalkao5104 3 жыл бұрын
Thank you for your very interesting tutorial. I tried and got the following problem. Could you help me out, please? An error has occurred while executing Python code: ValueError: not enough values to unpack (expected 2, got 1) Traceback (most recent call last): File "/home/phan/.local/share/QGIS/QGIS3/profiles/default/python/plugins/HotspotAnalysis/hotspot_analysis.py", line 564, in run (path, layer_id) = layerName.split('|') ValueError: not enough values to unpack (expected 2, got 1) Python version: 3.6.9 (default, Oct 8 2020, 12:12:24) [GCC 8.4.0] QGIS version: 3.16.1-Hannover Hannover, b381a90dca
@hayatitastan7008
@hayatitastan7008 3 жыл бұрын
The same problem happened to me as well. I am still in search of the solution.
@xuewenlu3785
@xuewenlu3785 2 жыл бұрын
Same issues. Have you found a solution ?
@hermanbernstrom5978
@hermanbernstrom5978 3 жыл бұрын
Hi! I get thie error message when i try to open the plugin in QGIS: WARNING Traceback (most recent call last): File "C:/Users/herma/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 546, in run layers, layers_shp = self.loadLayerList() TypeError: cannot unpack non-iterable NoneType object Anyone know what the problem might be?
@CS-yi2bq
@CS-yi2bq 3 жыл бұрын
Hello, I am running this on MAC and I got the same error so I followed your steps, however, when I get to the part to add the # it says the file is Locked so I am unable to change it. Does anyone know how to solve this? thank you
@waterflorida5028
@waterflorida5028 3 жыл бұрын
I have same problem with you. I guess Mac OSX didn't support the plugin HotSpot
@sergiomorellmonzo1780
@sergiomorellmonzo1780 3 жыл бұрын
I obtain this error when starts the plugin: 2021-01-10T12:25:16 WARNING Traceback (most recent call last): File "C:/Users/Javier/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 551, in run self.load_comboBox() File "C:/Users/Javier/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 444, in load_comboBox (path, layer_id) = selectedLayer.dataProvider().dataSourceUri().split('|') ValueError: not enough values to unpack (expected 2, got 1) 2021-01-10T12:25:52 WARNING Traceback (most recent call last): File "C:/Users/Javier/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 531, in self.dlg.comboBox.currentIndexChanged.connect(lambda: self.load_comboBox()) File "C:/Users/Javier/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 444, in load_comboBox (path, layer_id) = selectedLayer.dataProvider().dataSourceUri().split('|') ValueError: not enough values to unpack (expected 2, got 1) 2021-01-10T12:25:52 WARNING Traceback (most recent call last): File "C:/Users/Javier/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 551, in run self.load_comboBox() File "C:/Users/Javier/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 444, in load_comboBox (path, layer_id) = selectedLayer.dataProvider().dataSourceUri().split('|') ValueError: not enough values to unpack (expected 2, got 1) 2021-01-10T12:27:04 WARNING Traceback (most recent call last): File "C:/Users/Javier/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 531, in self.dlg.comboBox.currentIndexChanged.connect(lambda: self.load_comboBox()) File "C:/Users/Javier/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 444, in load_comboBox (path, layer_id) = selectedLayer.dataProvider().dataSourceUri().split('|') ValueError: not enough values to unpack (expected 2, got 1) 2021-01-10T12:27:04 WARNING Traceback (most recent call last): File "C:/Users/Javier/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 531, in self.dlg.comboBox.currentIndexChanged.connect(lambda: self.load_comboBox()) File "C:/Users/Javier/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 444, in load_comboBox (path, layer_id) = selectedLayer.dataProvider().dataSourceUri().split('|') ValueError: not enough values to unpack (expected 2, got 1) 2021-01-10T12:27:04 WARNING Traceback (most recent call last): File "C:/Users/Javier/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 551, in run self.load_comboBox() File "C:/Users/Javier/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\HotspotAnalysis\hotspot_analysis.py", line 444, in load_comboBox (path, layer_id) = selectedLayer.dataProvider().dataSourceUri().split('|') ValueError: not enough values to unpack (expected 2, got 1) Can someone help me fix it? I am using 3.16 Hannover.
@waterflorida5028
@waterflorida5028 3 жыл бұрын
ME TOO
@nirajmallaioe
@nirajmallaioe Жыл бұрын
While trying to install Pysal via OSGEO shell following error occurs. C:\Windows\System32>python -m pip install pysal==2.1.0 Collecting pysal==2.1.0 Using cached pysal-2.1.0.tar.gz (25.0 MB) Preparing metadata (setup.py) ... done Requirement already satisfied: scipy in c:\progra2\qgis31.16\apps\python37\lib\site-packages (from pysal==2.1.0) (1.5.2) Requirement already satisfied: pandas in c:\progra2\qgis31.16\apps\python37\lib\site-packages (from pysal==2.1.0) (1.0.1) Collecting seaborn Using cached seaborn-0.12.0-py3-none-any.whl (285 kB) Requirement already satisfied: matplotlib in c:\progra2\qgis31.16\apps\python37\lib\site-packages (from pysal==2.1.0) (3.1.3) Collecting descartes Using cached descartes-1.1.0-py3-none-any.whl (5.8 kB) Collecting palettable Using cached palettable-3.3.0-py2.py3-none-any.whl (111 kB) Collecting scikit-learn Using cached scikit_learn-1.0.2-cp37-cp37m-win32.whl (6.4 MB) Collecting geopandas Using cached geopandas-0.10.2-py2.py3-none-any.whl (1.0 MB) Collecting deprecated Using cached Deprecated-1.2.13-py2.py3-none-any.whl (9.6 kB) Collecting rtree Using cached Rtree-1.0.0.tar.gz (48 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting tqdm Using cached tqdm-4.64.1-py2.py3-none-any.whl (78 kB) Collecting wrapt=1.10 Using cached wrapt-1.14.1-cp37-cp37m-win32.whl (33 kB) Collecting fiona>=1.8 Using cached Fiona-1.8.21.tar.gz (1.0 MB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [1 lines of output] A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details. I would be grateful if anyone could help me on this.
@danielkovacs3369
@danielkovacs3369 10 ай бұрын
TypeError: PurePyShpWrapper does not support shapes of type: MULTIPOINT after the installation of the plugin.
@angeloolivaressolis3033
@angeloolivaressolis3033 3 жыл бұрын
I did the same and it dosnt work
@franciscaluya8485
@franciscaluya8485 2 жыл бұрын
'py3_env' is not recognized as an internal or external command, operable program or batch file. idk but I'm stuck here.
@leahbrueggeman7090
@leahbrueggeman7090 2 жыл бұрын
I'm stuck at this part too!
@naijul1961
@naijul1961 2 жыл бұрын
maybe you re using QGIS 3.20 "If you are using QGIS 3.20: Open OSGeo4W Shell installed with QGIS as Administrator and type: $ python -m pip install --upgrade pip $ python -m pip install pysal"
@edwardtamas6067
@edwardtamas6067 Жыл бұрын
you need to install Python program on your computer as well
@drsantaisihat1405
@drsantaisihat1405 2 жыл бұрын
I obtain this error: AttributeError: 'array.array' object has no attribute 'fromstring'
@erikartus6958
@erikartus6958 Жыл бұрын
sorry but did you managed the problem with fromstring? cause i've got the same...
@niklasniklas4036
@niklasniklas4036 Ай бұрын
The hotspot plugin doesn’t work with newer QGIS & Python versions anymore and its still experimental after 4 years…
@alaashdefat
@alaashdefat Жыл бұрын
Great job but why nobody can help me when I ask them about explore voids underground by gis programs I want method
@AMDGS
@AMDGS Жыл бұрын
What exactly is it you're trying to do? Do you already have the data you're trying to analyse?
@alaashdefat
@alaashdefat Жыл бұрын
@@AMDGS I want use gis programs to explore underground voids
@jhosepedwinsinanisalazar4691
@jhosepedwinsinanisalazar4691 4 жыл бұрын
se vee tan interesante, pero por el ingles no lo entiendo
Hotspot Analysis
21:28
SBVC-GIS
Рет қаралды 22 М.
Spatial Interpolation Techniques in QGIS
22:12
GeoDelta Labs
Рет қаралды 22 М.
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 137 МЛН
Жайдарман | Туған күн 2024 | Алматы
2:22:55
Jaidarman OFFICIAL / JCI
Рет қаралды 1,7 МЛН
10 Great Plugins for QGIS 3.x
52:59
Luna Geospatial
Рет қаралды 23 М.
Really Useful QGIS Plugins
6:18
Jess Zimmerman
Рет қаралды 9 М.
Hot Spot Analysis
25:25
Ian Boles
Рет қаралды 7 М.
Google Earth Engine in QGIS - QGIS GEE 01 | burdGIS
11:15
burdGIS
Рет қаралды 40 М.
Spatial Data Mining I: Essentials of Cluster Analysis
1:07:14
Esri Events
Рет қаралды 132 М.
Get OpenStreetMap layers and batch clip to your area in QGIS
14:38
Hot Spot Analysis in R: GIS Fundamentals
13:26
Josiah Parry
Рет қаралды 4,8 М.
Spatial interpolation in QGIS
15:52
Hans van der Kwast
Рет қаралды 39 М.
В России ускорили интернет в 1000 раз
0:18
Короче, новости
Рет қаралды 1,8 МЛН
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 2,4 МЛН
Первый обзор Galaxy Z Fold 6
12:23
Rozetked
Рет қаралды 401 М.
Спутниковый телефон #обзор #товары
0:35
Product show
Рет қаралды 2,2 МЛН
Зачем ЭТО электрику? #секрет #прибор #энерголикбез
0:56
Александр Мальков
Рет қаралды 57 М.