Esempio n. 1
0
        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));
        }
Esempio n. 3
0
 public static IGeometry boundaryMultiValentEnd(IGeometry g)
 {
     return(BoundaryOp.GetBoundary(g, BoundaryNodeRules.MultivalentEndpointBoundaryRule));
 }
Esempio n. 4
0
 public static IGeometry boundaryEndpoint(IGeometry g)
 {
     return(BoundaryOp.GetBoundary(g, BoundaryNodeRules.EndpointBoundaryRule));
 }
Esempio n. 5
0
 public static IGeometry boundaryMod2(IGeometry g)
 {
     return(BoundaryOp.GetBoundary(g, BoundaryNodeRules.Mod2BoundaryRule));
 }
Esempio n. 6
0
 public static Geometry boundaryMonoValentEnd(Geometry g)
 {
     return(BoundaryOp.GetBoundary(g, BoundaryNodeRules.MonoValentEndpointBoundaryRule));
 }