PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ lwgeom_unstroke()

LWGEOM* lwgeom_unstroke ( const LWGEOM geom)

Definition at line 1139 of file lwstroke.c.

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

Referenced by LWGEOM_line_desegmentize(), and test_ptarray_unstroke().

1140 {
1141  LWDEBUG(2, "lwgeom_unstroke called.");
1142 
1143  switch (geom->type)
1144  {
1145  case LINETYPE:
1146  return lwline_unstroke((LWLINE *)geom);
1147  case POLYGONTYPE:
1148  return lwpolygon_unstroke((LWPOLY *)geom);
1149  case MULTILINETYPE:
1150  return lwmline_unstroke((LWMLINE *)geom);
1151  case MULTIPOLYGONTYPE:
1152  return lwmpolygon_unstroke((LWMPOLY *)geom);
1153  default:
1154  return lwgeom_clone(geom);
1155  }
1156 }
#define LINETYPE
Definition: liblwgeom.h:86
#define POLYGONTYPE
Definition: liblwgeom.h:87
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:83
LWGEOM * lwpolygon_unstroke(const LWPOLY *poly)
Definition: lwstroke.c:1054
LWGEOM * lwgeom_clone(const LWGEOM *lwgeom)
Clone LWGEOM object.
Definition: lwgeom.c:444
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:90
LWGEOM * lwline_unstroke(const LWLINE *line)
Definition: lwstroke.c:1045
uint8_t type
Definition: liblwgeom.h:396
#define MULTILINETYPE
Definition: liblwgeom.h:89
LWGEOM * lwmpolygon_unstroke(const LWMPOLY *mpoly)
Definition: lwstroke.c:1111
LWGEOM * lwmline_unstroke(const LWMLINE *mline)
Definition: lwstroke.c:1083
Here is the call graph for this function:
Here is the caller graph for this function: