示例#1
0
        /// <summary>
        /// Dissolves the linear components in a geometry.
        /// </summary>
        /// <param name="g">the geometry to dissolve</param>
        /// <returns>the dissolved lines</returns>
        public static IGeometry Dissolve(IGeometry g)
        {
            LineDissolver d = new LineDissolver();

            d.Add(g);
            return(d.GetResult());
        }
 private void RunDissolverWorld(IList<IGeometry> data)
 {
     LineDissolver dis = new LineDissolver();
     dis.Add(data);
     IGeometry result = dis.GetResult();
     Trace.WriteLine("RunDissolverWorld");
     Trace.WriteLine(Memory.TotalString);
     // Trace.WriteLine(String.Format("Result: {0}", result));
 }
 /// <summary>
 /// Dissolves the linear components in a geometry.
 /// </summary>
 /// <param name="g">the geometry to dissolve</param>
 /// <returns>the dissolved lines</returns>
 public static IGeometry Dissolve(IGeometry g)
 {
     LineDissolver d = new LineDissolver();
     d.Add(g);
     return d.GetResult();
 }
 private void CheckDissolve(IEnumerable<IGeometry> geoms, IGeometry expected)
 {
     LineDissolver d = new LineDissolver();
     d.Add(geoms);
     IGeometry result = d.GetResult();
     IGeometry rnorm = result.Normalized();
     IGeometry enorm = expected.Normalized();
     bool equal = rnorm.EqualsExact(enorm);
     Assert.IsTrue(equal, String.Format("Expected = {0} actual = {1}", expected, rnorm));
 }