return LW_TRUE if any of the line segments covers the point
Definition at line 2740 of file lwgeodetic.c.
References edge_contains_point(), GEOGRAPHIC_EDGE::end, geographic_point_init(), getPoint2d_cp(), LW_FALSE, LW_TRUE, lwpoint_get_x(), lwpoint_get_y(), POINTARRAY::npoints, LWLINE::points, GEOGRAPHIC_EDGE::start, POINT2D::x, and POINT2D::y.
Referenced by lwgeom_covers_lwgeom_sphere(), and lwline_covers_lwline().
Two-point great circle segment from a to b.
int edge_contains_point(const GEOGRAPHIC_EDGE *e, const GEOGRAPHIC_POINT *p)
Returns true if the point p is on the minor edge defined by the end points of e.
Point in spherical coordinates on the world.
double lwpoint_get_x(const LWPOINT *point)
const POINT2D * getPoint2d_cp(const POINTARRAY *pa, int n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from...
#define LW_TRUE
Return types for functions with status returns.
void geographic_point_init(double lon, double lat, GEOGRAPHIC_POINT *g)
Initialize a geographic point.
double lwpoint_get_y(const LWPOINT *point)