PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwline_remove_repeated_points()

LWGEOM* lwline_remove_repeated_points ( LWLINE in,
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);
430 
431  LWDEBUGF(3, "%s: npts %p", __func__, npts);
432 
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
POINTARRAY * ptarray_remove_repeated_points_minpoints(POINTARRAY *in, double tolerance, int minpoints)
Definition: ptarray.c:1437
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:55
LWLINE * lwline_construct(int srid, GBOX *bbox, POINTARRAY *points)
Definition: lwline.c:29
Here is the call graph for this function:
Here is the caller graph for this function: