PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ sfcgal_intersects3D()

Datum sfcgal_intersects3D ( PG_FUNCTION_ARGS  )

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

References PG_FUNCTION_INFO_V1(), POSTGIS2SFCGALGeometry(), sfcgal_distance(), and sfcgal_postgis_init().

Referenced by sfcgal_intersects().

257 {
258  GSERIALIZED *input0, *input1;
259  sfcgal_geometry_t *geom0, *geom1;
260  int result;
261 
263 
264  input0 = PG_GETARG_GSERIALIZED_P(0);
265  input1 = PG_GETARG_GSERIALIZED_P(1);
266  geom0 = POSTGIS2SFCGALGeometry(input0);
267  PG_FREE_IF_COPY(input0, 0);
268  geom1 = POSTGIS2SFCGALGeometry(input1);
269  PG_FREE_IF_COPY(input1, 1);
270 
271  result = sfcgal_geometry_intersects_3d(geom0, geom1);
272  sfcgal_geometry_delete(geom0);
273  sfcgal_geometry_delete(geom1);
274 
275  PG_RETURN_BOOL(result);
276 }
sfcgal_geometry_t * POSTGIS2SFCGALGeometry(GSERIALIZED *pglwgeom)
void sfcgal_postgis_init(void)
Here is the call graph for this function:
Here is the caller graph for this function: