/// <summary> /// Compares two linestrings. /// </summary> /// <param name="geoJsonActual"></param> /// <param name="geoJson"></param> public static void AreEqual(string geoJsonActual, string geoJson, double delta) { var geoJsonReader = new GeoJsonReader(); var actual = geoJsonReader.Read <IGeometry>(geoJsonActual); var expected = geoJsonReader.Read <IGeometry>(geoJson); AssertGeo.AreEqual(actual, expected, delta); }
/// <summary> /// Compares two geometries. /// </summary> /// <param name="expected"></param> /// <param name="actual"></param> /// <param name="delta"></param> public static void AreEqual(IGeometry expected, IGeometry actual, double delta) { if (expected is ILineString && actual is ILineString) { AssertGeo.AreEqual(expected as ILineString, actual as ILineString, delta); } //else if (expected is ILineString && actual is ILineString) //{ // Assert.AreEqual(expected as ILineString, actual as ILineString, delta); //} }