207 if (zmflag == 0) ptsize = 2 *
sizeof(double);
208 else if (zmflag == 3) ptsize = 4 *
sizeof(double);
209 else ptsize = 3 *
sizeof(double);
212 size = ptsize * mpoint->
ngeoms;
214 memset(newpoints, 0, size);
217 for (i = 0; i < mpoint->
ngeoms; i++)
227 LWDEBUGF(3,
"lwcurve_from_lwmpoint: constructed pointarray for %d points, %d zmflag", mpoint->
ngeoms, zmflag);
#define FLAGS_GET_ZM(flags)
uint8_t * getPoint_internal(const POINTARRAY *pa, int n)
POINTARRAY * ptarray_construct_reference_data(char hasz, char hasm, uint32_t npoints, uint8_t *ptlist)
Construct a new POINTARRAY, referencing to the data from ptlist.
void * lwalloc(size_t size)
#define LWDEBUGF(level, msg,...)
LWCIRCSTRING * lwcircstring_construct(int srid, GBOX *bbox, POINTARRAY *points)