909{
910 double mindist;
916
918
919 PG_FREE_IF_COPY(geom1, 0);
920 PG_FREE_IF_COPY(geom2, 1);
921
922
923 if (mindist < FLT_MAX)
924 PG_RETURN_FLOAT8(mindist);
925
926 PG_RETURN_NULL();
927}
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.