PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwpoly_split()

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

Definition at line 552 of file lwgeom_geos_split.c.

553{
554 switch (blade_in->type)
555 {
556 case MULTILINETYPE:
557 case LINETYPE:
558 return lwpoly_split_by_line(lwpoly_in, blade_in);
559 default:
560 lwerror("Splitting a Polygon by a %s is unsupported",
561 lwtype_name(blade_in->type));
562 return NULL;
563 }
564 return NULL;
565}
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
Definition lwutil.c:216
#define MULTILINETYPE
Definition liblwgeom.h:106
#define LINETYPE
Definition liblwgeom.h:103
static LWGEOM * lwpoly_split_by_line(const LWPOLY *lwgeom_in, const LWGEOM *blade_in)
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
uint8_t type
Definition liblwgeom.h:462

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

Referenced by lwgeom_split().

Here is the call graph for this function:
Here is the caller graph for this function: