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

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

843 {
844  LWDEBUG(2, "lwgeom_unstroke called.");
845 
846  switch (geom->type)
847  {
848  case LINETYPE:
849  return lwline_unstroke((LWLINE *)geom);
850  case POLYGONTYPE:
851  return lwpolygon_unstroke((LWPOLY *)geom);
852  case MULTILINETYPE:
853  return lwmline_unstroke((LWMLINE *)geom);
854  case MULTIPOLYGONTYPE:
855  return lwmpolygon_unstroke((LWMPOLY *)geom);
856  default:
857  return lwgeom_clone(geom);
858  }
859 }
#define LINETYPE
Definition: liblwgeom.h:71
#define POLYGONTYPE
Definition: liblwgeom.h:72
#define LWDEBUG(level, msg)
Definition: lwgeom_log.h:50
LWGEOM * lwpolygon_unstroke(const LWPOLY *poly)
Definition: lwstroke.c:757
LWGEOM * lwgeom_clone(const LWGEOM *lwgeom)
Clone LWGEOM object.
Definition: lwgeom.c:395
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:75
LWGEOM * lwline_unstroke(const LWLINE *line)
Definition: lwstroke.c:748
uint8_t type
Definition: liblwgeom.h:380
#define MULTILINETYPE
Definition: liblwgeom.h:74
LWGEOM * lwmpolygon_unstroke(const LWMPOLY *mpoly)
Definition: lwstroke.c:814
LWGEOM * lwmline_unstroke(const LWMLINE *mline)
Definition: lwstroke.c:786

Here is the call graph for this function:

Here is the caller graph for this function: