2

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.

Encomium
  • 3,133
  • 2
  • 14
  • 41
Ismail
  • 139
  • 3

1 Answers1

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)

enter image description here

And this one, in the Vector - Geometry menu:

enter image description here

Encomium
  • 3,133
  • 2
  • 14
  • 41