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__);
277 }
278
280 {
281 lwerror(
"%s [%d] called with n=%d and npoints=%d", __FILE__, __LINE__, n, pa->
npoints);
283 }
284
285
288
289
290
291
292
293 if (zmflag == 1)
294 {
297 }
298
299
300
301
302
303 memcpy(op, ptr,
sizeof(
POINT2D));
304
305
306
307
308
309
310 if (zmflag == 3)
311 {
313 memcpy(&(op->m), ptr, sizeof(double));
314 }
315 else
317
319}
#define FLAGS_GET_ZM(flags)
#define LW_TRUE
Return types for functions with status returns.
void void lwerror(const char *fmt,...) __attribute__((format(printf
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, getPoint_internal(), LW_FALSE, LW_TRUE, lwerror(), POINT3DM::m, NO_M_VALUE, and POINTARRAY::npoints.
Referenced by getPoint3dm(), lwline_is_trajectory(), and lwpoint_getPoint3dm_p().