ST_DISTANCE and ST_DISTANCESPHERE exhibit different behavior when inputs with mixed SRIDs are provided:
ST_DISTANCE --> SQLException("Operation on mixed SRID geometries not supported"). See here
ST_DISTANCESPHERE --> null. See here.
Shouldn't the behavior be consistent? In particular the error for ST_DISTANCE is more informative, while for ST_DISTANCESPHERE it is not very informative. I do not know if there is any official guideline or recommendation.
ST_DISTANCE and ST_DISTANCESPHERE exhibit different behavior when inputs with mixed SRIDs are provided:
ST_DISTANCE --> SQLException("Operation on mixed SRID geometries not supported"). See here ST_DISTANCESPHERE --> null. See here.
Shouldn't the behavior be consistent? In particular the error for ST_DISTANCE is more informative, while for ST_DISTANCESPHERE it is not very informative. I do not know if there is any official guideline or recommendation.