PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ sfcgal_intersects()

Datum sfcgal_intersects ( PG_FUNCTION_ARGS  )

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

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

References POSTGIS2SFCGALGeometry(), and sfcgal_postgis_init().

Here is the call graph for this function: