PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwline_unstroke()

LWGEOM * lwline_unstroke ( const LWLINE line)

Definition at line 748 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().

749 {
750  LWDEBUG(2, "lwline_unstroke called.");
751 
752  if ( line->points->npoints < 4 ) return lwline_as_lwgeom(lwline_clone(line));
753  else return pta_unstroke(line->points, line->flags, line->srid);
754 }
LWLINE * lwline_clone(const LWLINE *lwgeom)
Definition: lwline.c:89
int npoints
Definition: liblwgeom.h:355
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:50
LWGEOM * pta_unstroke(const POINTARRAY *points, int type, int srid)
Definition: lwstroke.c:586
int32_t srid
Definition: liblwgeom.h:405
LWGEOM * lwline_as_lwgeom(const LWLINE *obj)
Definition: lwgeom.c:249
uint8_t flags
Definition: liblwgeom.h:403
POINTARRAY * points
Definition: liblwgeom.h:406
Here is the call graph for this function:
Here is the caller graph for this function: