I try to compute the centroid of polygons with holes on qgis. I did not manage to do it directly, I had to make a conversion to convex hulls before extraction.
I crashed my pgsql server trying to extract theses using ST_Centroid()
Is there a better way to do it?
SELECT ST_AsText( ST_Centroid( ST_GeomFromText( 'POLYGON (( 523 228, 523 238, 535 238, 535 228, 523 228 ), ( 527 231, 531 231, 531 235, 527 235, 527 231 ))') ))– user30184 Apr 11 '16 at 13:06