PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwline_unstroke()

LWGEOM * lwline_unstroke ( const LWLINE line)

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

1046 {
1047  LWDEBUG(2, "lwline_unstroke called.");
1048 
1049  if ( line->points->npoints < 4 ) return lwline_as_lwgeom(lwline_clone(line));
1050  else return pta_unstroke(line->points, line->flags, line->srid);
1051 }
LWLINE * lwline_clone(const LWLINE *lwgeom)
Definition: lwline.c:102
int npoints
Definition: liblwgeom.h:371
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:83
LWGEOM * pta_unstroke(const POINTARRAY *points, int type, int srid)
Definition: lwstroke.c:883
int32_t srid
Definition: liblwgeom.h:421
LWGEOM * lwline_as_lwgeom(const LWLINE *obj)
Definition: lwgeom.c:298
uint8_t flags
Definition: liblwgeom.h:419
POINTARRAY * points
Definition: liblwgeom.h:422
Here is the call graph for this function:
Here is the caller graph for this function: