Definition at line 268 of file lwgeom_api.c.
269{
270 uint8_t *ptr;
271 int zmflag;
272
273 if ( ! pa )
274 {
275 lwerror(
"%s [%d] NULL POINTARRAY input", __FILE__, __LINE__);
276 return 0;
277 }
278
280 {
281 lwerror(
"%s [%d] called with n=%d and npoints=%d", __FILE__, __LINE__, n, pa->
npoints);
282 return 0;
283 }
284
285 LWDEBUGF(2,
"getPoint3dm_p(%d) called on array of %d-dimensions / %u pts",
287
288
289
292
293
294
295
296
297 if ( zmflag == 1 )
298 {
300 return 1;
301 }
302
303
304
305
306
307 memcpy(op, ptr,
sizeof(
POINT2D));
308
309
310
311
312
313
314 if ( zmflag == 3 )
315 {
317 memcpy(&(op->m), ptr, sizeof(double));
318 }
319 else
320 {
322 }
323
324 return 1;
325}
#define FLAGS_NDIMS(flags)
#define FLAGS_GET_ZM(flags)
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
static uint8_t * getPoint_internal(const POINTARRAY *pa, uint32_t n)
References POINTARRAY::flags, FLAGS_GET_ZM, FLAGS_NDIMS, getPoint_internal(), LWDEBUGF, lwerror(), POINT3DM::m, NO_M_VALUE, and POINTARRAY::npoints.
Referenced by getPoint3dm(), lwline_is_trajectory(), and lwpoint_getPoint3dm_p().