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

◆ lwgeom_unstroke()

LWGEOM * lwgeom_unstroke ( const LWGEOM geom)

Definition at line 1259 of file lwstroke.c.

1260{
1261 LWDEBUG(2, "lwgeom_unstroke called.");
1262
1263 switch (geom->type)
1264 {
1265 case LINETYPE:
1266 return lwline_unstroke((LWLINE *)geom);
1267 case POLYGONTYPE:
1268 return lwpolygon_unstroke((LWPOLY *)geom);
1269 case MULTILINETYPE:
1270 return lwmline_unstroke((LWMLINE *)geom);
1271 case MULTIPOLYGONTYPE:
1272 return lwmpolygon_unstroke((LWMPOLY *)geom);
1273 case COLLECTIONTYPE:
1274 return lwcollection_unstroke((LWCOLLECTION *)geom);
1275 default:
1276 return lwgeom_clone_deep(geom);
1277 }
1278}
#define COLLECTIONTYPE
Definition liblwgeom.h:122
#define MULTILINETYPE
Definition liblwgeom.h:120
#define LINETYPE
Definition liblwgeom.h:117
#define MULTIPOLYGONTYPE
Definition liblwgeom.h:121
#define POLYGONTYPE
Definition liblwgeom.h:118
LWGEOM * lwgeom_clone_deep(const LWGEOM *lwgeom)
Deep clone an LWGEOM, everything is copied.
Definition lwgeom.c:511
#define LWDEBUG(level, msg)
Definition lwgeom_log.h:83
LWGEOM * lwmpolygon_unstroke(const LWMPOLY *mpoly)
Definition lwstroke.c:1203
LWGEOM * lwpolygon_unstroke(const LWPOLY *poly)
Definition lwstroke.c:1146
LWGEOM * lwcollection_unstroke(const LWCOLLECTION *c)
Definition lwstroke.c:1231
LWGEOM * lwmline_unstroke(const LWMLINE *mline)
Definition lwstroke.c:1175
LWGEOM * lwline_unstroke(const LWLINE *line)
Definition lwstroke.c:1137
uint8_t type
Definition liblwgeom.h:448

References COLLECTIONTYPE, LINETYPE, lwcollection_unstroke(), LWDEBUG, lwgeom_clone_deep(), lwline_unstroke(), lwmline_unstroke(), lwmpolygon_unstroke(), lwpolygon_unstroke(), MULTILINETYPE, MULTIPOLYGONTYPE, POLYGONTYPE, and LWGEOM::type.

Referenced by lwcollection_unstroke(), LWGEOM_line_desegmentize(), and test_unstroke().

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