86 gdiff = GEOSBoundary(g2);
94 g2 = gdiff; gdiff = NULL;
98 ret = GEOSRelatePattern(g1, g2,
"1********");
102 GEOSGeom_destroy(g1);
103 GEOSGeom_destroy(g2);
108 GEOSGeom_destroy(g1);
109 GEOSGeom_destroy(g2);
110 lwerror(
"Splitter line has linear intersection with input");
115 gdiff = GEOSDifference(g1,g2);
116 GEOSGeom_destroy(g1);
117 GEOSGeom_destroy(g2);
125 GEOSGeom_destroy(gdiff);
136 components[0] = diff;
138 NULL, 1, components);
LWCOLLECTION * lwcollection_construct(uint8_t type, int srid, GBOX *bbox, uint32_t ngeoms, LWGEOM **geoms)
char lwgeom_geos_errmsg[LWGEOM_GEOS_ERRMSG_MAXSIZE]
void lwgeom_geos_error(const char *fmt,...)
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
GEOSGeometry * LWGEOM2GEOS(const LWGEOM *lwgeom, int autofix)
LWCOLLECTION * lwgeom_as_lwcollection(const LWGEOM *lwgeom)
LWGEOM * GEOS2LWGEOM(const GEOSGeometry *geom, char want3d)
void lwgeom_set_srid(LWGEOM *geom, int srid)
Set the SRID on an LWGEOM For collections, only the parent gets an SRID, all the children get SRID_UN...
void * lwalloc(size_t size)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.