Check if a LWGEOM has any non-finite (NaN or Inf) coordinates.
Definition at line 2529 of file lwgeom.c.
2539 int finite = isfinite(p.
x) &&
2541 (hasz ? isfinite(p.
z) : 1) &&
2542 (hasm ? isfinite(p.m) : 1);
LWPOINTITERATOR * lwpointiterator_create(const LWGEOM *g)
Create a new LWPOINTITERATOR over supplied LWGEOM*.
int lwpointiterator_next(LWPOINTITERATOR *s, POINT4D *p)
Attempts to assign the next point in the iterator to p, and advances the iterator to the next point.
void lwpointiterator_destroy(LWPOINTITERATOR *s)
Free all memory associated with the iterator.
int lwpointiterator_has_next(LWPOINTITERATOR *s)
Returns LW_TRUE if there is another point available in the iterator.
#define LW_TRUE
Return types for functions with status returns.
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.
References LW_FALSE, LW_TRUE, lwgeom_has_m(), lwgeom_has_z(), lwpointiterator_create(), lwpointiterator_destroy(), lwpointiterator_has_next(), lwpointiterator_next(), POINT4D::m, POINT4D::x, POINT4D::y, and POINT4D::z.
Referenced by buffer(), geography_bestsrid(), LWGEOM_to_latlon(), ST_Split(), and topologypreservesimplify().