PostGIS
2.4.9dev-r@@SVN_REVISION@@
|
LWPOINT * geography_centroid_from_wpoints | ( | const uint32_t | srid, |
const POINT3DM * | points, | ||
const uint32_t | size | ||
) |
Convert lat-lon-points to x-y-z-coordinates, calculate a weighted average point and return lat-lon-coordinated.
Definition at line 180 of file geography_centroid.c.
References cart_to_lwpoint(), lonlat_to_cart(), lwfree(), POINT3DM::m, pixval::x, POINT3D::x, pixval::y, POINT3D::y, and POINT3D::z.
Referenced by geography_centroid(), geography_centroid_from_mline(), and geography_centroid_from_mpoly().