Definition at line 541 of file lwline.c.
References getPoint4d_p(), LW_TRUE, LWDEBUG, lwline_construct(), lwline_is_empty(), POINTARRAY::npoints, LWLINE::points, ptarray_append_point(), ptarray_free(), ptarray_simplify(), LWLINE::srid, and LWLINE::type.
Referenced by lwgeom_simplify().
543 static const int minvertices = 2;
554 if ( ! pa )
return NULL;
560 if ( preserve_collapsed )
void ptarray_free(POINTARRAY *pa)
#define LWDEBUG(level, msg)
int lwline_is_empty(const LWLINE *line)
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.
POINTARRAY * ptarray_simplify(POINTARRAY *inpts, double epsilon, unsigned int minpts)
int getPoint4d_p(const POINTARRAY *pa, int n, POINT4D *point)
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)