TransWikia.com

Aggregating rates represented by points within X radius using QGIS

Geographic Information Systems Asked by kittensatplay on May 7, 2021

the point represents rates like 10%, etc. (this was also pretty clear from 2 years ago) — been trying to do this for 2 yrs…

the points dont represent numbers of events since they are rates (Finding largest number of observations within a given radius)

but the points have geo ids so they are attached to location, not distance (whatever distance is to imply) — update: it represents z-value but we’re just dealing with rates

2 Answers

Yes, the Heatmap plugin can be used for this.

Suppose we have a point layer called pointrates.shp with rates between 0 and 1 associated with each point:

We can run the Heatmap plugin on this, using a Decay Ratio of 1 (which means that the value at the edge of each search radius is the same as at the center), and using the "Ratio" column as the Weight. In this example, I'm using a search radius of 200 km.

This gives us the following map:

As you can see, the values range from 0 to 1.2 (the sum of 0.1, 0.2, 0.4 and 0.5 in the cluster of points in the lower right). Now sums of rates are usually not very meaningful, so a map of averages (rather than sums) is probably more useful. To get this, we'll calculate another Heatmap, this time not using the "Rates" column for the weights. That way, all points will have a weight of 1, and the resulting map is simply a count of points:

The values now range from 0 to 4. To get the average value, we simply use the Raster Calculator to divide the "Sums" map by the "Count" map:

And this gives us our map of averages:

Correct answer by Jake on May 7, 2021

To update this for QGIS 3:-

Use the Heatmap (Kernel Density Estimate) algorithm

enter image description here

Select the raster size/cell size, use Uniform as the Kernel Shape and set the radius. Also, set the "weight from field" to use the field you want to summate.

Answered by Steven Kay on May 7, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP