public static void CheckOverlaySuccess(Geometry a, Geometry b, SpatialFunction opCode)
 {
     try
     {
         OverlayNGRobust.Overlay(a, b, opCode);
     }
     catch (Exception ex)
     {
         Assert.Fail("Overlay fails with an error: " + ex);
     }
 }
 public static void CheckOverlayFail(Geometry a, Geometry b, SpatialFunction opCode)
 {
     try
     {
         OverlayNGRobust.Overlay(a, b, opCode);
         Assert.Fail("Overlay was expected to fail");
     }
     catch
     {
         // do nothing - expected result
     }
 }
 private static Geometry OverlayDifference(Geometry a, Geometry b, bool useNG, PrecisionModel pm)
 {
     if (useNG)
     {
         if (pm == null)
         {
             return(OverlayNGRobust.Overlay(a, b, SpatialFunction.Difference));
         }
         return(Operation.OverlayNG.OverlayNG.Overlay(a, b, SpatialFunction.Difference, pm));
     }
     return(a.Difference(b));
 }
 private static Geometry OverlayIntersection(Geometry a, Geometry b, bool useNG, PrecisionModel pm)
 {
     if (useNG)
     {
         if (pm == null)
         {
             return(OverlayNGRobust.Overlay(a, b, SpatialFunction.Intersection));
         }
         return(Operation.OverlayNG.OverlayNG.Overlay(a, b, SpatialFunction.Intersection, pm));
     }
     return(a.Intersection(b));
 }
Esempio n. 5
0
 public override Geometry Union(Geometry a)
 {
     return(OverlayNGRobust.Union(a));
 }
Esempio n. 6
0
 protected override Geometry Overlay(Geometry geom0, Geometry geom1, SpatialFunction opCode)
 {
     return(OverlayNGRobust.Overlay(geom0, geom1, opCode));
 }