PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ lwline_unstroke()

LWGEOM * lwline_unstroke ( const LWLINE line)

Definition at line 1038 of file lwstroke.c.

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

Referenced by lwgeom_unstroke(), and lwmline_unstroke().

1039 {
1040  LWDEBUG(2, "lwline_unstroke called.");
1042  if ( line->points->npoints < 4 ) return lwline_as_lwgeom(lwline_clone_deep(line));
1043  else return pta_unstroke(line->points, line->srid);
1044 }
LWGEOM * pta_unstroke(const POINTARRAY *points, int srid)
Definition: lwstroke.c:876
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:83
int32_t srid
Definition: liblwgeom.h:424
LWGEOM * lwline_as_lwgeom(const LWLINE *obj)
Definition: lwgeom.c:330
LWLINE * lwline_clone_deep(const LWLINE *lwgeom)
Definition: lwline.c:118
Definition: liblwgeom.h:425
uint32_t npoints
Definition: liblwgeom.h:374
Here is the call graph for this function:
Here is the caller graph for this function: