Definition at line 50 of file lwgeom_geos_node.c.
References LINETYPE, lwerror(), lwgeom_ngeoms(), lwgeom_subgeom(), lwline_get_lwpoint(), lwmpoint_add_lwpoint(), lwtype_name(), MULTILINETYPE, POINTARRAY::npoints, LWLINE::points, and LWGEOM::type.
Referenced by lwgeom_extract_endpoints().
75 lwerror(
"lwgeom_collect_endpoints: invalid type %s",
static int lwgeom_ngeoms(const LWGEOM *n)
const char * lwtype_name(uint8_t type)
Return the type name string associated with a type number (e.g.
static const LWGEOM * lwgeom_subgeom(const LWGEOM *g, int n)
static void lwgeom_collect_endpoints(const LWGEOM *lwg, LWMPOINT *col)
LWMPOINT * lwmpoint_add_lwpoint(LWMPOINT *mobj, const LWPOINT *obj)
LWPOINT * lwline_get_lwpoint(const LWLINE *line, int where)
Returns freshly allocated LWPOINT that corresponds to the index where.
void lwerror(const char *fmt,...)
Write a notice out to the error handler.