Definition at line 266 of file lwgeom_api.c.
References POINTARRAY::flags, FLAGS_GET_ZM, FLAGS_NDIMS, getPoint_internal(), LWDEBUGF, lwerror(), lwnotice(), POINT3DM::m, NO_M_VALUE, and POINTARRAY::npoints.
Referenced by getPoint3dm(), LWGEOM_m_point(), lwline_is_trajectory(), and lwpoint_getPoint3dm_p().
273 lwerror(
"%s [%d] NULL POINTARRAY input", __FILE__, __LINE__);
277 if ( (n<0) || (n>=pa->
npoints))
279 lwnotice(
"%s [%d] called with n=%d and npoints=%d", __FILE__, __LINE__, n, pa->
npoints);
283 LWDEBUGF(2,
"getPoint3dm_p(%d) called on array of %d-dimensions / %u pts",
305 memcpy(op, ptr,
sizeof(
POINT2D));
315 memcpy(&(op->m), ptr,
sizeof(
double));
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
#define FLAGS_GET_ZM(flags)
uint8_t * getPoint_internal(const POINTARRAY *pa, int n)
#define LWDEBUGF(level, msg,...)
#define FLAGS_NDIMS(flags)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.