Definition at line 676 of file liblwgeom/lwgeom_geos.c.
677{
681 GEOSGeometry* g1;
682 GEOSGeometry* g2;
683 GEOSGeometry* g3;
684
686
687
689
690
692
694
697
698 g3 = GEOSIntersection(g1, g2);
699
701 GEOSSetSRID(g3, srid);
702
704
706 return result;
707}
GEOSGeometry * LWGEOM2GEOS(const LWGEOM *lwgeom, uint8_t autofix)
#define GEOS_FREE_AND_FAIL(...)
LWGEOM * GEOS2LWGEOM(const GEOSGeometry *geom, uint8_t want3d)
void lwgeom_geos_error(const char *fmt,...)
#define FLAGS_GET_Z(flags)
LWGEOM * lwgeom_clone_deep(const LWGEOM *lwgeom)
Deep clone an LWGEOM, everything is copied.
void lwnotice(const char *fmt,...)
Write a notice out to the notice handler.
static int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
References AUTOFIX, LWGEOM::flags, FLAGS_GET_Z, GEOS2LWGEOM(), GEOS_FAIL, GEOS_FREE, GEOS_FREE_AND_FAIL, LWGEOM2GEOS(), lwgeom_clone_deep(), lwgeom_geos_error(), lwgeom_is_empty(), lwnotice(), RESULT_SRID, and SRID_INVALID.
Referenced by _lwt_AddLine(), lwgeom_subdivide_recursive(), RASTER_clip(), and ST_Intersection().