PostGIS  2.5.0dev-r@@SVN_REVISION@@
Datum sfcgal_intersects ( PG_FUNCTION_ARGS  )

Definition at line 243 of file postgis/lwgeom_sfcgal.c.

References POSTGIS2SFCGALGeometry(), and sfcgal_postgis_init().

244 {
245  GSERIALIZED *input0, *input1;
246  sfcgal_geometry_t *geom0, *geom1;
247  int result;
248 
250 
251  input0 = PG_GETARG_GSERIALIZED_P(0);
252  input1 = PG_GETARG_GSERIALIZED_P(1);
253  geom0 = POSTGIS2SFCGALGeometry(input0);
254  PG_FREE_IF_COPY(input0, 0);
255  geom1 = POSTGIS2SFCGALGeometry(input1);
256  PG_FREE_IF_COPY(input1, 1);
257 
258  result = sfcgal_geometry_intersects(geom0, geom1);
259  sfcgal_geometry_delete(geom0);
260  sfcgal_geometry_delete(geom1);
261 
262  PG_RETURN_BOOL(result);
263 }
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
void sfcgal_postgis_init(void)

Here is the call graph for this function: