` `
The Heatmap plugin uses Kernel Density Estimation to create a density (heatmap) raster of an input point vector layer. The density is calculated based on the number of points in a location, with larger numbers of clustered points resulting in larger values. Heatmaps allow easy identification of “hotspots” and clustering of points.
First this core plugin needs to be activated using the Plugin Manager (see
The Plugins Dialog). After activation, the heatmap icon
can be found in the Raster Toolbar, and under the Raster ‣ Heatmap
menu.
Если кнопки не видно, возможно, у вас отключена соответствующая панель инструментов. Включить её можно из меню Вид ‣ Панели инструментов ‣ Растр.
Clicking the
Heatmap tool button opens the Heatmap plugin dialog
(see figure_heatmap_settings).
Для построения теплокарты необходимо задать следующие параметры:
button to select the folder and
filename for the output raster the Heatmap plugin generates. A file extension
is not required.When the
Advanced checkbox is checked, additional options
will be available:
Коэффициент равный 0.5 означает, что температура пикселей на краях буферной зоны будет в два раза ниже температуры в центре.
Если указано значение 1, распределение температуры будет равномерным по всей буферной зоне (это равнозначно использованию «Прямоугольной» функции ядра).
Исходный точечный слой может содержать поля, которые можно использоваться при построении теплокарты:
Когда все параметры указаны, нажмите кнопку [OK], чтобы запустить процесс создания теплокарты.
For the following example, we will use the airports vector point layer from the QGIS sample dataset (see Sample Data). Another excellent QGIS tutorial on making heatmaps can be found at http://www.qgistutorials.com.
In Figure_Heatmap_data, the airports of Alaska are shown.
Airports of Alaska
Heatmap tool button to open the Heatmap dialog
(see Figure_Heatmap_settings).
field, select airports
from the list of point layers loaded in the current project.
button next to the
Output raster field. Enter the filename heatmap_airports (no
file extension is necessary).Установите в поле Радиус значение 1000000 метров.
The Heatmap Dialog
QGIS will generate the heatmap and add the results to your map window. By default, the heatmap is shaded in greyscale, with lighter areas showing higher concentrations of airports. The heatmap can now be styled in QGIS to improve its appearance.
The heatmap after loading looks like a grey surface
Откройте свойства слоя heatmap_airports. Для этого выберите слой в списке слоёв проекта, вызовите контекстное меню по правой клавише мыши и выберите пункт Свойства.
Перейдите на вкладку Стиль.
to ‘Singleband pseudocolor’.
, for instance YlOrRed.Нажмите кнопку [Загрузить]**в группе :guilabel:`Значения мин/макс` для получения минимального и максимального значений растра. Затем нажмите кнопку **[Классифицировать] в группе Создать цветовую карту.
Нажмите кнопку [OK] чтобы закрыть окно и применить настройки отображения растра.
The final result is shown in Figure_Heatmap_styled.
Styled heatmap of airports of Alaska