PostGIS  2.2.7dev-r@@SVN_REVISION@@
LWGEOM* lwline_remove_repeated_points ( LWLINE lwline,
double  tolerance 

Definition at line 427 of file lwline.c.

References LWLINE::bbox, gbox_copy(), LWDEBUGF, lwline_construct(), LWLINE::points, ptarray_remove_repeated_points_minpoints(), and LWLINE::srid.

Referenced by _lwt_AddLineEdge(), lwgeom_remove_repeated_points(), and lwt_AddLine().

428 {
429  POINTARRAY* npts = ptarray_remove_repeated_points_minpoints(lwline->points, tolerance, 2);
431  LWDEBUGF(3, "%s: npts %p", __func__, npts);
433  return (LWGEOM*)lwline_construct(lwline->srid,
434  lwline->bbox ? gbox_copy(lwline->bbox) : 0,
435  npts);
436 }
GBOX * gbox_copy(const GBOX *box)
Return a copy of the GBOX, based on dimensionality of flags.
Definition: g_box.c:403
GBOX * bbox
Definition: liblwgeom.h:404
POINTARRAY * ptarray_remove_repeated_points_minpoints(POINTARRAY *in, double tolerance, int minpoints)
Definition: ptarray.c:1437
int32_t srid
Definition: liblwgeom.h:405
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:55
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwline.c:29
Definition: liblwgeom.h:406

Here is the call graph for this function:

Here is the caller graph for this function: