PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ lwline_unstroke()

LWGEOM * lwline_unstroke ( const LWLINE line)

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

765 {
766  LWDEBUG(2, "lwline_unstroke called.");
767 
768  if ( line->points->npoints < 4 ) return lwline_as_lwgeom(lwline_clone(line));
769  else return pta_unstroke(line->points, line->flags, line->srid);
770 }
LWLINE * lwline_clone(const LWLINE *lwgeom)
Definition: lwline.c:102
int npoints
Definition: liblwgeom.h:370
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:83
LWGEOM * pta_unstroke(const POINTARRAY *points, int type, int srid)
Definition: lwstroke.c:602
int32_t srid
Definition: liblwgeom.h:420
LWGEOM * lwline_as_lwgeom(const LWLINE *obj)
Definition: lwgeom.c:262
uint8_t flags
Definition: liblwgeom.h:418
POINTARRAY * points
Definition: liblwgeom.h:421
Here is the call graph for this function:
Here is the caller graph for this function: