255 for (i=0; i<npoints; i++)
264 if ( hasz && hasm )
break;
269 for ( i=0; i < npoints; i++ )
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
LWLINE * lwline_construct_empty(int srid, char hasz, char hasm)
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
int ptarray_append_point(POINTARRAY *pa, const POINT4D *pt, int allow_duplicates)
Append a point to the end of an existing POINTARRAY If allow_duplicate is LW_FALSE, then a duplicate point will not be added.
#define LW_TRUE
Return types for functions with status returns.
int lwpoint_getPoint4d_p(const LWPOINT *point, POINT4D *out)
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
#define POINTTYPE
LWTYPE numbers, used internally by PostGIS.
int lwpoint_is_empty(const LWPOINT *point)
#define FLAGS_GET_M(flags)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)