A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.qgis.org/2.18/en/docs/user_manual/plugins/plugins_heatmap.html below:

Heatmap Plugin

Heatmap Plugin¶

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.

Activate the Heatmap plugin¶

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 menu.

Select the menu to show the Raster Toolbar if it is not visible.

Using the Heatmap plugin¶

Clicking the Heatmap tool button opens the Heatmap plugin dialog (see figure_heatmap_settings).

The dialog has the following options:

When the Advanced checkbox is checked, additional options will be available:

The input point layer may also have attribute fields which can affect how they influence the heatmap:

When an output raster file name is specified, the [OK] button can be used to create the heatmap.

Tutorial: Creating a Heatmap¶

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

  1. Select the Heatmap tool button to open the Heatmap dialog (see Figure_Heatmap_settings).
  2. In the Input point layer field, select airports from the list of point layers loaded in the current project.
  3. Specify an output filename by clicking the button next to the Output raster field. Enter the filename heatmap_airports (no file extension is necessary).
  4. Leave the Output format as the default format, GeoTIFF.
  5. Change the Radius to 1000000 meters.
  6. Click on [OK] to create and load the airports heatmap (see Figure_Heatmap_created).

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

  1. Open the properties dialog of the heatmap_airports layer (select the layer heatmap_airports, open the context menu with the right mouse button and select Properties).
  2. Select the Style tab.
  3. Change the Render type to ‘Singleband pseudocolor’.
  4. Select a suitable Color map , for instance YlOrRed.
  5. Click the [Load] button to fetch the minimum and maximum values from the raster, then click the [Classify] button.
  6. Press [OK] to update the layer.

The final result is shown in Figure_Heatmap_styled.

Styled heatmap of airports of Alaska


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4