PostGIS  2.1.10dev-r@@SVN_REVISION@@
LWGEOM* lwline_remove_repeated_points ( LWLINE in)

Definition at line 423 of file lwline.c.

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

Referenced by lwgeom_remove_repeated_points().

424 {
425  POINTARRAY* npts = ptarray_remove_repeated_points(lwline->points);
426 
427  LWDEBUGF(3, "lwline_remove_repeated_points: npts %p", npts);
428 
429  return (LWGEOM*)lwline_construct(lwline->srid,
430  lwline->bbox ? gbox_copy(lwline->bbox) : 0,
431  npts);
432 }
GBOX * gbox_copy(const GBOX *box)
Return a copy of the GBOX, based on dimensionality of flags.
Definition: g_box.c:362
POINTARRAY * ptarray_remove_repeated_points(POINTARRAY *in)
Definition: ptarray.c:1401
#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: