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

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 {
427  LWDEBUGF(3, "lwline_remove_repeated_points: npts %p", npts);
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
GBOX * bbox
Definition: liblwgeom.h:376
int32_t srid
Definition: liblwgeom.h:377
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
Definition: liblwgeom.h:378

Here is the call graph for this function:

Here is the caller graph for this function: