TransWikia.com

How do I find the geographic mean of a multipoint feature in QGIS?

Geographic Information Systems Asked on July 13, 2021

I’m trying to find the geographic mean of the multipoint feature in the above image. It seems like a really simple command, but I cannot find any way to do it.

One Answer

There are multiple ways of accomplishing this.

For SQL, see https://postgis.net/docs/ST_Centroid.html.

Select st_centroid(geom) as geom from table

For a point collection (rather than a multipoint), use:

select st_centroid(st_collect(geom))
from table

Also, there's a Geometric Median function, which is useful on messy data with extreme outliers https://postgis.net/docs/ST_GeometricMedian.html.

And as per Erik's comment, there's also this method in the Field Calculator:

centroid($geometry)

enter image description here

And this one, in the Vector - Geometry menu:

enter image description here

Answered by Encomium on July 13, 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