1022{
1023 double maxdist;
1028
1030
1032
1033 PG_FREE_IF_COPY(geom1, 0);
1034 PG_FREE_IF_COPY(geom2, 1);
1035
1036
1037 if (maxdist > -1)
1038 PG_RETURN_FLOAT8(maxdist);
1039
1040 PG_RETURN_NULL();
1041}
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.