public void TestMultiLineStringWithEmpty() { new GeometryOperationValidator( VWSimplifierResult.GetResult( "MULTILINESTRING( EMPTY, (0 0, 50 0, 70 0, 80 0, 100 0), (0 0, 50 1, 60 1, 100 0) )", 10.0)) .Test(); }
public void TestMultiPolygonWithEmpty() { new GeometryOperationValidator( VWSimplifierResult.GetResult( "MULTIPOLYGON (EMPTY, ((-36 91.5, 4.5 91.5, 4.5 57.5, -36 57.5, -36 91.5)), ((25.5 57.5, 61.5 57.5, 61.5 23.5, 25.5 23.5, 25.5 57.5)))", 10.0)) .Test(); }
public void TestPolygonReduction() { const string geomStr = "POLYGON ((120 120, 121 121, 122 122, 220 120, 180 199, 160 200, 140 199, 120 120))"; new GeometryOperationValidator( VWSimplifierResult.GetResult( geomStr, 10.0)) .Test(); }
public void TestPolygonReductionWithSplit() { const string geomStr = "POLYGON ((40 240, 160 241, 280 240, 280 160, 160 240, 40 140, 40 240))"; new GeometryOperationValidator( VWSimplifierResult.GetResult( geomStr, 10.0)) .Test(); }
public void TestMultiLineString() { const string geomStr = "MULTILINESTRING( (0 0, 50 0, 70 0, 80 0, 100 0), (0 0, 50 1, 60 1, 100 0) )"; new GeometryOperationValidator( VWSimplifierResult.GetResult( geomStr, 10.0)) .Test(); }
public void TestTinyLineString() { const string geomStr = "LINESTRING (0 5, 1 5, 2 5, 5 5)"; new GeometryOperationValidator( VWSimplifierResult.GetResult( geomStr, 10.0)) .Test(); }
public void TestTinySquare() { const string geomStr = "POLYGON ((0 5, 5 5, 5 0, 0 0, 0 1, 0 5))"; new GeometryOperationValidator( VWSimplifierResult.GetResult( geomStr, 10.0)) .Test(); }
public void TestFlattishPolygon() { const string geomStr = "POLYGON ((0 0, 50 0, 53 0, 55 0, 100 0, 70 1, 60 1, 50 1, 40 1, 0 0))"; new GeometryOperationValidator( VWSimplifierResult.GetResult( geomStr, 10.0)) .Test(); }
public void TestPolygonNoReduction() { const string geomStr = "POLYGON ((20 220, 40 220, 60 220, 80 220, 100 220, 120 220, 140 220, 140 180, 100 180, 60 180, 20 180, 20 220))"; new GeometryOperationValidator( VWSimplifierResult.GetResult( geomStr, 10.0)) .Test(); }
public void TestEmptyPolygon() { const string geomStr = "POLYGON(EMPTY)"; new GeometryOperationValidator( VWSimplifierResult.GetResult( geomStr, 1)) .SetExpectedResult(geomStr) .Test(); }
public void TestTinyHole() { const string geomStr = "POLYGON ((10 10, 10 310, 370 310, 370 10, 10 10), (160 190, 180 190, 180 170, 160 190))"; new GeometryOperationValidator( VWSimplifierResult.GetResult( geomStr, 30.0)) .TestEmpty(false); }
public void TestPolygonSpikeInHole() { const string geomStr = "POLYGON ((1721270 693090, 1721400 693090, 1721400 692960, 1721270 692960, 1721270 693090), (1721355.3 693015.146, 1721318.687 693046.251, 1721306.747 693063.038, 1721367.025 692978.29, 1721355.3 693015.146))"; const string result = "POLYGON ((1721270 693090, 1721400 693090, 1721400 692960, 1721270 692960, 1721270 693090), (1721355.3 693015.146, 1721318.687 693046.251, 1721367.025 692978.29, 1721355.3 693015.146))"; new GeometryOperationValidator( VWSimplifierResult.GetResult( geomStr, 10.0)) .SetExpectedResult(result) .Test(); }