/// <summary> /// 経度、緯度、高度が許容範囲内で近似的に等価かつ測地系と不確実性パラメーターが完全に一致するか判定 /// </summary> /// <param name="other">比較対象</param> /// <param name="angle_tolelance">平面角の許容範囲</param> /// <param name="length_tolerance">長さの許容範囲</param> /// <returns>一致する場合は true</returns> public bool NearlyEquals(GeoURI other, PlaneAngle angle_tolelance = null, Length length_tolerance = null) { if (!Longitude.NormalizedNearlyEquals(other.Longitude, angle_tolelance)) { return(false); } if (!Latitude.NormalizedNearlyEquals(other.Latitude, angle_tolelance)) { return(false); } if (Altitude is Length && !Altitude.NearlyEquals(other.Altitude, length_tolerance)) { return(false); } if (CoordinateReferenceSystem is string && !CoordinateReferenceSystem.Equals(other.CoordinateReferenceSystem)) { return(false); } if (Uncertainty is string && !Uncertainty.Equals(other.Uncertainty)) { return(false); } return(true); }