PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ sfcgal_intersects()

Datum sfcgal_intersects ( PG_FUNCTION_ARGS  )

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

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

Referenced by sfcgal_orientation().

244 {
245  GSERIALIZED *input0, *input1;
246  sfcgal_geometry_t *geom0, *geom1;
247  int result;
248 
250 
251  input0 = PG_GETARG_GSERIALIZED_P(0);
252  input1 = PG_GETARG_GSERIALIZED_P(1);
253  geom0 = POSTGIS2SFCGALGeometry(input0);
254  PG_FREE_IF_COPY(input0, 0);
255  geom1 = POSTGIS2SFCGALGeometry(input1);
256  PG_FREE_IF_COPY(input1, 1);
257 
258  result = sfcgal_geometry_intersects(geom0, geom1);
259  sfcgal_geometry_delete(geom0);
260  sfcgal_geometry_delete(geom1);
261 
262  PG_RETURN_BOOL(result);
263 }
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: