885{
886 double mindist;
892
894
895 PG_FREE_IF_COPY(geom1, 0);
896 PG_FREE_IF_COPY(geom2, 1);
897
898
899 if (mindist < FLT_MAX)
900 PG_RETURN_FLOAT8(mindist);
901
902 PG_RETURN_NULL();
903}
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_mindistance3d(const LWGEOM *lw1, const LWGEOM *lw2)
Function initializing 3d min distance calculation.