1

I need only 1 centroid point for the whole layer (more than one polygon) instead of 1 centroid point per feature that you get with the menu -> Vector -> Geometry tools -> polygon centroid tool. Its position doesn't have to be based on area or weight of any kind.

  • 2
    Make union -> take centroid. – user30184 Jan 25 at 15:24
3

With a virtual Layer you can do it like this (same as user30184 described in his comment):

select st_centroid(st_union(geometry)) from my_layer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.