PostGIS  2.1.10dev-r@@SVN_REVISION@@
LWGEOM * lwline_desegmentize ( LWLINE line)

Definition at line 747 of file lwsegmentize.c.

References LWLINE::flags, LWDEBUG, lwline_as_lwgeom(), lwline_clone(), POINTARRAY::npoints, LWLINE::points, pta_desegmentize(), and LWLINE::srid.

Referenced by lwgeom_desegmentize(), and lwmline_desegmentize().

748 {
749  LWDEBUG(2, "lwline_desegmentize called.");
751  if ( line->points->npoints < 4 ) return lwline_as_lwgeom(lwline_clone(line));
752  else return pta_desegmentize(line->points, line->flags, line->srid);
753 }
LWLINE * lwline_clone(const LWLINE *lwgeom)
Definition: lwline.c:89
int npoints
Definition: liblwgeom.h:327
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:50
int32_t srid
Definition: liblwgeom.h:377
LWGEOM * pta_desegmentize(POINTARRAY *points, int type, int srid)
Definition: lwsegmentize.c:586
LWGEOM * lwline_as_lwgeom(const LWLINE *obj)
Definition: lwgeom.c:249
uint8_t flags
Definition: liblwgeom.h:375
Definition: liblwgeom.h:378

Here is the call graph for this function:

Here is the caller graph for this function: