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

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

859 {
860  LWDEBUG(2, "lwgeom_unstroke called.");
861 
862  switch (geom->type)
863  {
864  case LINETYPE:
865  return lwline_unstroke((LWLINE *)geom);
866  case POLYGONTYPE:
867  return lwpolygon_unstroke((LWPOLY *)geom);
868  case MULTILINETYPE:
869  return lwmline_unstroke((LWMLINE *)geom);
870  case MULTIPOLYGONTYPE:
871  return lwmpolygon_unstroke((LWMPOLY *)geom);
872  default:
873  return lwgeom_clone(geom);
874  }
875 }
#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:773
LWGEOM * lwgeom_clone(const LWGEOM *lwgeom)
Clone LWGEOM object.
Definition: lwgeom.c:408
#define MULTIPOLYGONTYPE
Definition: liblwgeom.h:89
LWGEOM * lwline_unstroke(const LWLINE *line)
Definition: lwstroke.c:764
uint8_t type
Definition: liblwgeom.h:395
#define MULTILINETYPE
Definition: liblwgeom.h:88
LWGEOM * lwmpolygon_unstroke(const LWMPOLY *mpoly)
Definition: lwstroke.c:830
LWGEOM * lwmline_unstroke(const LWMLINE *mline)
Definition: lwstroke.c:802

Here is the call graph for this function:

Here is the caller graph for this function: