PostGIS  2.5.0dev-r@@SVN_REVISION@@

◆ lwpoly_split()

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

Definition at line 546 of file lwgeom_geos_split.c.

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

Referenced by lwgeom_split().

547 {
548  switch (blade_in->type)
549  {
551  case LINETYPE:
552  return lwpoly_split_by_line(lwpoly_in, blade_in);
553  default:
554  lwerror("Splitting a Polygon by a %s is unsupported",
555  lwtype_name(blade_in->type));
556  return NULL;
557  }
558  return NULL;
559 }
#define LINETYPE
Definition: liblwgeom.h:85
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
Definition: lwutil.c:218
static LWGEOM * lwpoly_split_by_line(const LWPOLY *lwgeom_in, const LWGEOM *blade_in)
uint8_t type
Definition: liblwgeom.h:398
Definition: liblwgeom.h:88
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:190
Here is the call graph for this function:
Here is the caller graph for this function: