998{
999 double maxdist;
1004
1006
1008
1009 PG_FREE_IF_COPY(geom1, 0);
1010 PG_FREE_IF_COPY(geom2, 1);
1011
1012
1013 if (maxdist > -1)
1014 PG_RETURN_FLOAT8(maxdist);
1015
1016 PG_RETURN_NULL();
1017}
void gserialized_error_if_srid_mismatch(const GSERIALIZED *g1, const GSERIALIZED *g2, const char *funcname)
LWGEOM * lwgeom_from_gserialized(const GSERIALIZED *g)
Allocate a new LWGEOM from a GSERIALIZED.
double lwgeom_maxdistance3d(const LWGEOM *lw1, const LWGEOM *lw2)
Function initializing 3d max distance calculation.