PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwline_unstroke()

LWGEOM * lwline_unstroke ( const LWLINE line)

Definition at line 1149 of file lwstroke.c.

1150{
1151 LWDEBUG(2, "lwline_unstroke called.");
1152
1153 if ( line->points->npoints < 4 ) return lwline_as_lwgeom(lwline_clone_deep(line));
1154 else return pta_unstroke(line->points, line->srid);
1155}
LWGEOM * lwline_as_lwgeom(const LWLINE *obj)
Definition lwgeom.c:367
LWLINE * lwline_clone_deep(const LWLINE *lwgeom)
Definition lwline.c:109
#define LWDEBUG(level, msg)
Definition lwgeom_log.h:101
LWGEOM * pta_unstroke(const POINTARRAY *points, int32_t srid)
Definition lwstroke.c:987
POINTARRAY * points
Definition liblwgeom.h:483
int32_t srid
Definition liblwgeom.h:484
uint32_t npoints
Definition liblwgeom.h:427

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: