PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ gserialized_spgist_compress_3d()

PGDLLEXPORT Datum gserialized_spgist_compress_3d ( PG_FUNCTION_ARGS  )

Definition at line 770 of file gserialized_spgist_3d.c.

771 {
772  BOX3D *result = DatumGetBox3DP(DirectFunctionCall1(LWGEOM_to_BOX3D, PG_GETARG_DATUM(0)));
773 
774  /* Is the bounding box is null */
775  if (result == LW_FAILURE)
776  {
777  PG_RETURN_NULL();
778  }
779 
780  /* Return BOX3D. */
781  PG_RETURN_POINTER(result);
782 }
#define LW_FAILURE
Definition: liblwgeom.h:79
Datum LWGEOM_to_BOX3D(PG_FUNCTION_ARGS)
Definition: lwgeom_box3d.c:390

References LW_FAILURE, and LWGEOM_to_BOX3D().

Here is the call graph for this function: