public void FilterArtifactsGeographyTest() { var geog = "GEOMETRYCOLLECTION(LINESTRING EMPTY, LINESTRING (1 1, 3 5), POINT (1 1), POLYGON ((-1 -1, -1 -5, -5 -5, -5 -1, -1 -1)))".GetGeog(); // Empty line and point should be removed // short line should be removed - tolerance length const double shortLineTolerance = 500000.0F; // Polygon inner ring with area < tolerance * polygon length const double polygonAreaTolerance = 150000.0F; Logger.LogLine("Input Geography: {0}", geog); Logger.Log("Filtering input geometry; removing empty line string"); Logger.Log("points, short line of tolerance: {0}, Polygon with inner ring area tolerance: {1}", shortLineTolerance, polygonAreaTolerance); var expectedGeog = "GEOMETRYCOLLECTION EMPTY".GetGeog(); var filteredGeog = Geography.FilterArtifactsGeography(geog, true, true, shortLineTolerance, polygonAreaTolerance); Logger.Log("Expected converted geog: {0}", expectedGeog); Logger.Log("Obtained converted geog: {0}", filteredGeog); SqlAssert.IsTrue(filteredGeog.STEquals(expectedGeog)); }