PostGIS  2.5.0dev-r@@SVN_REVISION@@
LWGEOM* lwgeom_unstroke ( const LWGEOM geom)

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

1087 {
1088  LWDEBUG(2, "lwgeom_unstroke called.");
1089 
1090  switch (geom->type)
1091  {
1092  case LINETYPE:
1093  return lwline_unstroke((LWLINE *)geom);
1094  case POLYGONTYPE:
1095  return lwpolygon_unstroke((LWPOLY *)geom);
1096  case MULTILINETYPE:
1097  return lwmline_unstroke((LWMLINE *)geom);
1098  case MULTIPOLYGONTYPE:
1099  return lwmpolygon_unstroke((LWMPOLY *)geom);
1100  default:
1101  return lwgeom_clone(geom);
1102  }
1103 }
#define LINETYPE
Definition: liblwgeom.h:85
#define POLYGONTYPE
Definition: liblwgeom.h:86
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:83
LWGEOM * lwpolygon_unstroke(const LWPOLY *poly)
Definition: lwstroke.c:1001
LWGEOM * lwgeom_clone(const LWGEOM *lwgeom)
Clone LWGEOM object.
Definition: lwgeom.c:475
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:89
LWGEOM * lwline_unstroke(const LWLINE *line)
Definition: lwstroke.c:992
uint8_t type
Definition: liblwgeom.h:395
#define MULTILINETYPE
Definition: liblwgeom.h:88
LWGEOM * lwmpolygon_unstroke(const LWMPOLY *mpoly)
Definition: lwstroke.c:1058
LWGEOM * lwmline_unstroke(const LWMLINE *mline)
Definition: lwstroke.c:1030

Here is the call graph for this function:

Here is the caller graph for this function: