PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwline_unstroke()

LWGEOM * lwline_unstroke ( const LWLINE line)

Definition at line 1137 of file lwstroke.c.

1138 {
1139  LWDEBUG(2, "lwline_unstroke called.");
1140 
1141  if ( line->points->npoints < 4 ) return lwline_as_lwgeom(lwline_clone_deep(line));
1142  else return pta_unstroke(line->points, line->srid);
1143 }
LWGEOM * lwline_as_lwgeom(const LWLINE *obj)
Definition: lwgeom.c:321
LWLINE * lwline_clone_deep(const LWLINE *lwgeom)
Definition: lwline.c:109
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:83
LWGEOM * pta_unstroke(const POINTARRAY *points, int32_t srid)
Definition: lwstroke.c:975
POINTARRAY * points
Definition: liblwgeom.h:469
int32_t srid
Definition: liblwgeom.h:470
uint32_t npoints
Definition: liblwgeom.h:413

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

Referenced by lwgeom_unstroke(), and lwmline_unstroke().

Here is the call graph for this function:
Here is the caller graph for this function: