private void RunBoundaryTest(string wkt, IBoundaryNodeRule bnRule, string wktExpected) { var g = _rdr.Read(wkt); var expected = _rdr.Read(wktExpected); var op = new BoundaryOp(g, bnRule); var boundary = op.GetBoundary(); boundary.Normalize(); // System.out.println("Computed Boundary = " + boundary); Assert.IsTrue(boundary.EqualsExact(expected)); }
private static void RunBoundaryTest(String wkt, IBoundaryNodeRule bnRule, String wktExpected) { IGeometry g = rdr.Read(wkt); IGeometry expected = rdr.Read(wktExpected); BoundaryOp op = new BoundaryOp(g, bnRule); IGeometry boundary = op.GetBoundary(); boundary.Normalize(); // System.out.println("Computed Boundary = " + boundary); Assert.IsTrue(boundary.EqualsExact(expected)); }
public static IGeometry boundaryMultiValentEnd(IGeometry g) { return(BoundaryOp.GetBoundary(g, BoundaryNodeRules.MultivalentEndpointBoundaryRule)); }
public static IGeometry boundaryEndpoint(IGeometry g) { return(BoundaryOp.GetBoundary(g, BoundaryNodeRules.EndpointBoundaryRule)); }
public static IGeometry boundaryMod2(IGeometry g) { return(BoundaryOp.GetBoundary(g, BoundaryNodeRules.Mod2BoundaryRule)); }
public static Geometry boundaryMonoValentEnd(Geometry g) { return(BoundaryOp.GetBoundary(g, BoundaryNodeRules.MonoValentEndpointBoundaryRule)); }