PostGIS  2.1.10dev-r@@SVN_REVISION@@
static LWGEOM * lwline_split ( const LWLINE lwgeom_in,
const LWGEOM blade_in 

Definition at line 223 of file lwgeom_geos_split.c.

References LINETYPE, lwerror(), lwline_split_by_line(), lwline_split_by_point(), lwtype_name(), POINTTYPE, and LWGEOM::type.

Referenced by lwgeom_split().

224 {
225  switch (blade_in->type)
226  {
227  case POINTTYPE:
228  return lwline_split_by_point(lwline_in, (LWPOINT*)blade_in);
230  case LINETYPE:
231  return lwline_split_by_line(lwline_in, (LWLINE*)blade_in);
233  default:
234  lwerror("Splitting a Line by a %s is unsupported",
235  lwtype_name(blade_in->type));
236  return NULL;
237  }
238  return NULL;
239 }
#define LINETYPE
Definition: liblwgeom.h:61
static LWGEOM * lwline_split_by_line(const LWLINE *lwgeom_in, const LWLINE *blade_in)
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
LWTYPE numbers, used internally by PostGIS.
Definition: liblwgeom.h:60
uint8_t type
Definition: liblwgeom.h:352
static LWGEOM * lwline_split_by_point(const LWLINE *lwgeom_in, const LWPOINT *blade_in)

Here is the call graph for this function:

Here is the caller graph for this function: