PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ sfcgal_distance3D()

Datum sfcgal_distance3D ( PG_FUNCTION_ARGS  )

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

317 {
318  GSERIALIZED *input0, *input1;
319  sfcgal_geometry_t *geom0, *geom1;
320  double result;
321 
323 
324  input0 = PG_GETARG_GSERIALIZED_P(0);
325  input1 = PG_GETARG_GSERIALIZED_P(1);
326  geom0 = POSTGIS2SFCGALGeometry(input0);
327  PG_FREE_IF_COPY(input0, 0);
328  geom1 = POSTGIS2SFCGALGeometry(input1);
329  PG_FREE_IF_COPY(input1, 1);
330 
331  result = sfcgal_geometry_distance_3d(geom0, geom1);
332  sfcgal_geometry_delete(geom0);
333  sfcgal_geometry_delete(geom1);
334 
335  PG_RETURN_FLOAT8(result);
336 }
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: