PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwline_remove_repeated_points()

LWGEOM* lwline_remove_repeated_points ( const LWLINE in,
double  tolerance 

Definition at line 456 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().

457 {
458  POINTARRAY* npts = ptarray_remove_repeated_points_minpoints(lwline->points, tolerance, 2);
460  LWDEBUGF(3, "%s: npts %p", __func__, npts);
462  return (LWGEOM*)lwline_construct(lwline->srid,
463  lwline->bbox ? gbox_copy(lwline->bbox) : 0,
464  npts);
465 }
GBOX * gbox_copy(const GBOX *box)
Return a copy of the GBOX, based on dimensionality of flags.
Definition: g_box.c:438
POINTARRAY * ptarray_remove_repeated_points_minpoints(const POINTARRAY *in, double tolerance, int minpoints)
Definition: ptarray.c:1538
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:88
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwline.c:42
Here is the call graph for this function:
Here is the caller graph for this function: