Remove a point from a pointarray.
- Parameters
-
which | - is the offset (starting at 0) |
- Returns
- POINTARRAY is newly allocated
Definition at line 555 of file ptarray.c.
560 LWDEBUGF(3,
"pa %x which %d", pa, which);
562 #if PARANOIA_LEVEL > 0
565 lwerror(
"%s [%d] offset (%d) out of range (%d..%d)", __FILE__, __LINE__,
572 lwerror(
"%s [%d] can't remove a point from a 2-vertex POINTARRAY", __FILE__, __LINE__);
587 if ( which < pa->npoints-1 )
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
#define FLAGS_GET_M(flags)
#define LWDEBUGF(level, msg,...)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
uint8_t * getPoint_internal(const POINTARRAY *pa, uint32_t n)
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...
size_t ptarray_point_size(const POINTARRAY *pa)
References POINTARRAY::flags, FLAGS_GET_M, FLAGS_GET_Z, getPoint_internal(), LWDEBUGF, lwerror(), POINTARRAY::npoints, ptarray_construct(), and ptarray_point_size().
Referenced by lwcircstring_removepoint(), and lwline_removepoint().