PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ lwpoly_split()

static LWGEOM * lwpoly_split ( const LWPOLY lwpoly_in,
const LWGEOM blade_in 
)
static

Definition at line 569 of file lwgeom_geos_split.c.

References LINETYPE, lwerror(), lwpoly_split_by_line(), lwtype_name(), LWGEOM::type, and LWLINE::type.

Referenced by lwgeom_split().

570 {
571  switch (blade_in->type)
572  {
573  case LINETYPE:
574  return lwpoly_split_by_line(lwpoly_in, (LWLINE*)blade_in);
575  default:
576  lwerror("Splitting a Polygon by a %s is unsupported",
577  lwtype_name(blade_in->type));
578  return NULL;
579  }
580  return NULL;
581 }
#define LINETYPE
Definition: liblwgeom.h:71
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
Definition: lwutil.c:188
uint8_t type
Definition: liblwgeom.h:380
static LWGEOM * lwpoly_split_by_line(const LWPOLY *lwgeom_in, const LWLINE *blade_in)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:74
Here is the call graph for this function:
Here is the caller graph for this function: