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.
Asked
Active
Viewed 171 times
1 Answers
2
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)
And this one, in the Vector - Geometry menu:
Encomium
- 3,133
- 2
- 14
- 41
-
1
-
1Or
centroid ($geometry)with QGIS epxressions (https://gis.stackexchange.com/a/392619/88814) – Babel Jun 03 '21 at 13:26


