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

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

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

250 {
251  GSERIALIZED *input0, *input1;
252  sfcgal_geometry_t *geom0, *geom1;
253  int result;
254 
256 
257  input0 = (GSERIALIZED*) PG_DETOAST_DATUM(PG_GETARG_DATUM(0));
258  input1 = (GSERIALIZED*) PG_DETOAST_DATUM(PG_GETARG_DATUM(1));
259  geom0 = POSTGIS2SFCGALGeometry(input0);
260  PG_FREE_IF_COPY(input0, 0);
261  geom1 = POSTGIS2SFCGALGeometry(input1);
262  PG_FREE_IF_COPY(input1, 1);
263 
264  result = sfcgal_geometry_intersects_3d(geom0, geom1);
265  sfcgal_geometry_delete(geom0);
266  sfcgal_geometry_delete(geom1);
267 
268  PG_RETURN_BOOL(result);
269 }
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: