PostGIS  2.1.10dev-r@@SVN_REVISION@@
static LWGEOM * lwpoly_split ( const LWPOLY lwpoly_in,
const LWGEOM blade_in 

Definition at line 454 of file lwgeom_geos_split.c.

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

Referenced by lwgeom_split().

455 {
456  switch (blade_in->type)
457  {
458  case LINETYPE:
459  return lwpoly_split_by_line(lwpoly_in, (LWLINE*)blade_in);
460  default:
461  lwerror("Splitting a Polygon by a %s is unsupported",
462  lwtype_name(blade_in->type));
463  return NULL;
464  }
465  return NULL;
466 }
#define LINETYPE
Definition: liblwgeom.h:61
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
Definition: lwutil.c:67
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
Definition: lwutil.c:164
uint8_t type
Definition: liblwgeom.h:352
static LWGEOM * lwpoly_split_by_line(const LWPOLY *lwgeom_in, const LWLINE *blade_in)

Here is the call graph for this function:

Here is the caller graph for this function: