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

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

References POSTGIS2SFCGALGeometry(), result, and sfcgal_postgis_init().

226 {
227  GSERIALIZED *input0, *input1;
228  sfcgal_geometry_t *geom0, *geom1;
229  int result;
230 
232 
233  input0 = (GSERIALIZED*) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
234  input1 = (GSERIALIZED*) PG_DETOAST_DATUM(PG_GETARG_DATUM(1));
235  geom0 = POSTGIS2SFCGALGeometry(input0);
236  PG_FREE_IF_COPY(input0, 0);
237  geom1 = POSTGIS2SFCGALGeometry(input1);
238  PG_FREE_IF_COPY(input1, 1);
239 
240  result = sfcgal_geometry_intersects(geom0, geom1);
241  sfcgal_geometry_delete(geom0);
242  sfcgal_geometry_delete(geom1);
243 
244  PG_RETURN_BOOL(result);
245 }
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
char ** result
Definition: liblwgeom.h:218
void sfcgal_postgis_init(void)

Here is the call graph for this function: