PostGIS  2.5.0dev-r@@SVN_REVISION@@
LWGEOM * lwline_unstroke ( const LWLINE line)

Definition at line 992 of file lwstroke.c.

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

Referenced by lwgeom_unstroke(), and lwmline_unstroke().

993 {
994  LWDEBUG(2, "lwline_unstroke called.");
995 
996  if ( line->points->npoints < 4 ) return lwline_as_lwgeom(lwline_clone(line));
997  else return pta_unstroke(line->points, line->flags, line->srid);
998 }
LWLINE * lwline_clone(const LWLINE *lwgeom)
Definition: lwline.c:102
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:83
LWGEOM * pta_unstroke(const POINTARRAY *points, int type, int srid)
Definition: lwstroke.c:830
int32_t srid
Definition: liblwgeom.h:420
LWGEOM * lwline_as_lwgeom(const LWLINE *obj)
Definition: lwgeom.c:329
uint8_t flags
Definition: liblwgeom.h:418
POINTARRAY * points
Definition: liblwgeom.h:421
uint32_t npoints
Definition: liblwgeom.h:370

Here is the call graph for this function:

Here is the caller graph for this function: