PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ ST_MMin()

Datum ST_MMin ( PG_FUNCTION_ARGS  )

Definition at line 461 of file lwgeom_box3d.c.

462{
463 GBOX gbox;
464 GSERIALIZED *gser = PG_GETARG_GSERIALIZED_P(0);
465
466 if (gserialized_get_gbox_p(gser, &gbox) != LW_TRUE)
467 PG_RETURN_NULL();
468
469 if (!FLAGS_GET_M(gbox.flags))
470 PG_RETURN_NULL();
471
472 PG_RETURN_FLOAT8(Min(gbox.mmin, gbox.mmax));
473}
int gserialized_get_gbox_p(const GSERIALIZED *g, GBOX *gbox)
Read the box from the GSERIALIZED or calculate it if necessary.
Definition gserialized.c:94
#define FLAGS_GET_M(flags)
Definition liblwgeom.h:166
#define LW_TRUE
Return types for functions with status returns.
Definition liblwgeom.h:93
double mmax
Definition liblwgeom.h:361
double mmin
Definition liblwgeom.h:360
lwflags_t flags
Definition liblwgeom.h:353

References GBOX::flags, FLAGS_GET_M, gserialized_get_gbox_p(), LW_TRUE, GBOX::mmax, and GBOX::mmin.

Here is the call graph for this function: