本文整理汇总了C#中IGeometry.EqualsExact方法的典型用法代码示例。如果您正苦于以下问题:C# IGeometry.EqualsExact方法的具体用法?C# IGeometry.EqualsExact怎么用?C# IGeometry.EqualsExact使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IGeometry
的用法示例。
在下文中一共展示了IGeometry.EqualsExact方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CheckEquality
protected override void CheckEquality(IGeometry gIn, IGeometry gParsed, WKTWriter writer)
{
var res = gIn.EqualsExact(gParsed);
if (res) return;
if (Compressed)
{
var discreteHausdorffDistance =
Algorithm.Distance.DiscreteHausdorffDistance.Distance(gIn, gParsed);
if (discreteHausdorffDistance > 0.05)
{
Console.WriteLine();
Console.WriteLine(gIn.AsText());
Console.WriteLine(gParsed.AsText());
Console.WriteLine("DiscreteHausdorffDistance=" + discreteHausdorffDistance);
}
Assert.IsTrue(discreteHausdorffDistance < 0.001);
}
else
Assert.IsTrue(false);
}
示例2: AssertAreEqualExact
private void AssertAreEqualExact(IGeometry expectedValue, IGeometry actualValue)
{
Assert.IsTrue(actualValue.EqualsExact(expectedValue), "Expected " + expectedValue + " but encountered " + actualValue);
}
示例3: AssertEqualsExactAndHasSameFactory
private static void AssertEqualsExactAndHasSameFactory(IGeometry a, IGeometry b)
{
Assert.IsTrue(a.EqualsExact(b));
Assert.IsTrue(a.Factory == b.Factory);
}
示例4: CheckEquality
protected virtual void CheckEquality(IGeometry gIn, IGeometry gParsed, WKTWriter writer)
{
Assert.IsTrue(gIn.EqualsExact(gParsed), "Instances are not equal\n{0}\n\n{1}", gIn, gParsed);
}
示例5: CheckExpected
protected void CheckExpected(IGeometry result, String expected)
{
IGeometry subLine = Read(expected);
bool isEqual = result.EqualsExact(subLine, 1.0e-5);
if (!isEqual)
Console.WriteLine("Computed result is: " + result);
Assert.IsTrue(isEqual);
}