Distance message check on bathymetry raply layer. Closes #2831.