86 if ( ! pa || pa->
npoints < 2 )
return NULL;
89 for ( i = 1; i < pa->
npoints; i++ )
static int segment_locate_along(const POINT4D *p1, const POINT4D *p2, double m, double offset, POINT4D *pn)
POINTARRAY * ptarray_construct_empty(char hasz, char hasm, uint32_t maxpoints)
Create a new POINTARRAY with no points.
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.
int ptarray_has_m(const POINTARRAY *pa)
int ptarray_has_z(const POINTARRAY *pa)
int getPoint4d_p(const POINTARRAY *pa, int n, POINT4D *point)