159 for (i = 0; i < npoints; i++)
163 lwerror(
"lwcurve_from_lwpointarray: invalid input type: %s",
169 if (zmflag == 3)
break;
172 if (zmflag == 0) ptsize = 2 *
sizeof(double);
173 else if (zmflag == 3) ptsize = 4 *
sizeof(double);
174 else ptsize = 3 *
sizeof(double);
179 size = ptsize * npoints;
181 memset(newpoints, 0, size);
184 for (i = 0; i < npoints; i++)
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
uint8_t * getPoint_internal(const POINTARRAY *pa, int n)
int ptarray_point_size(const POINTARRAY *pa)
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.
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
#define FLAGS_GET_M(flags)
void * lwalloc(size_t size)
LWCIRCSTRING * lwcircstring_construct(int srid, GBOX *bbox, POINTARRAY *points)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.