PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ lwline_unstroke()

LWGEOM * lwline_unstroke ( const LWLINE line)

Definition at line 1046 of file lwstroke.c.

1047 {
1048  LWDEBUG(2, "lwline_unstroke called.");
1049 
1050  if ( line->points->npoints < 4 ) return lwline_as_lwgeom(lwline_clone_deep(line));
1051  else return pta_unstroke(line->points, line->srid);
1052 }
LWGEOM * lwline_as_lwgeom(const LWLINE *obj)
Definition: lwgeom.c:330
LWLINE * lwline_clone_deep(const LWLINE *lwgeom)
Definition: lwline.c:118
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:83
LWGEOM * pta_unstroke(const POINTARRAY *points, int srid)
Definition: lwstroke.c:884
POINTARRAY * points
Definition: liblwgeom.h:425
int32_t srid
Definition: liblwgeom.h:424
uint32_t npoints
Definition: liblwgeom.h:374

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: