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

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

References POSTGIS2SFCGALGeometry(), and sfcgal_postgis_init().

233 {
234  GSERIALIZED *input0, *input1;
235  sfcgal_geometry_t *geom0, *geom1;
236  int result;
237 
239 
240  input0 = PG_GETARG_GSERIALIZED_P(0);
241  input1 = PG_GETARG_GSERIALIZED_P(1);
242  geom0 = POSTGIS2SFCGALGeometry(input0);
243  PG_FREE_IF_COPY(input0, 0);
244  geom1 = POSTGIS2SFCGALGeometry(input1);
245  PG_FREE_IF_COPY(input1, 1);
246 
247  result = sfcgal_geometry_intersects(geom0, geom1);
248  sfcgal_geometry_delete(geom0);
249  sfcgal_geometry_delete(geom1);
250 
251  PG_RETURN_BOOL(result);
252 }
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
void sfcgal_postgis_init(void)

Here is the call graph for this function: