Remove a point from a pointarray.
- Parameters
-
| where | - is the offset (starting at 0) |
- Returns
- POINTARRAY is newly allocated
Definition at line 582 of file ptarray.c.
583{
586
587 LWDEBUGF(3,
"pa %p which %u", pa, which);
588
589 assert(which <= pa->npoints-1);
591
594
595
596 if ( which )
597 {
599 }
600
601
602 if ( which < pa->npoints-1 )
603 {
606 }
607
608 return ret;
609}
#define FLAGS_GET_Z(flags)
#define FLAGS_GET_M(flags)
#define LWDEBUGF(level, msg,...)
static uint8_t * getPoint_internal(const POINTARRAY *pa, uint32_t n)
static size_t ptarray_point_size(const POINTARRAY *pa)
POINTARRAY * ptarray_construct(char hasz, char hasm, uint32_t npoints)
Construct an empty pointarray, allocating storage and setting the npoints, but not filling in any inf...
References POINTARRAY::flags, FLAGS_GET_M, FLAGS_GET_Z, getPoint_internal(), LWDEBUGF, POINTARRAY::npoints, ptarray_construct(), and ptarray_point_size().
Referenced by lwcircstring_removepoint(), and lwline_removepoint().