ST_Centroid for arc centroid(arc->points) or centroid(arc->line)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ST_Centroid for arc centroid(arc->points) or centroid(arc->line)

Rémi Cura
Hey,

What would you think would be the best course to extend ST_Centroid to work on arc.
 
 1. ST_Centroids(ST_Points(arc))
 2. ST_Centroids(ST_CureToLine(arc))

I would prefere option 1 as it does not introduce sampling issues.

Maybe the correct answer would be to mimic centroid(linestring),
that is weight point with circular length?

Cheers,
Rémi

_______________________________________________
postgis-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/postgis-devel