int32_t lwgeom_get_srid(const LWGEOM *geom)
Return SRID number.
int lwgeom_has_z(const LWGEOM *geom)
Return LW_TRUE if geometry has Z ordinates.
int lwgeom_has_m(const LWGEOM *geom)
Return LW_TRUE if geometry has M ordinates.
int project_pt(const POINT2D *P, double distance, double azimuth, POINT2D *R)
Azimuth is angle in radians from vertical axis.
int lwpoint_getPoint4d_p(const LWPOINT *point, POINT4D *out)
LWPOINT * lwpoint_make(int32_t srid, int hasz, int hasm, const POINT4D *p)
static double distance(double x1, double y1, double x2, double y2)