PostGIS
2.5.7dev-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, POINT3D::x, pixval::x, POINT3D::y, pixval::y, and POINT3D::z.
Referenced by geography_centroid(), geography_centroid_from_mline(), and geography_centroid_from_mpoly().