Пример #1
0
        /// <summary>
        /// Simplifies a <see cref="Geometry"/> using a given tolerance.
        /// </summary>
        /// <param name="geom">The <see cref="Geometry"/> to simplify.</param>
        /// <param name="distanceTolerance">The tolerance to use.</param>
        /// <returns>A simplified version of the <see cref="Geometry"/>.</returns>
        public static Geometry Simplify(Geometry geom, double distanceTolerance)
        {
            var simp = new VWSimplifier(geom);

            simp.DistanceTolerance = distanceTolerance;
            return(simp.GetResultGeometry());
        }
Пример #2
0
 /// <summary>
 /// Simplifies a <see cref="IGeometry"/> using a given tolerance.
 /// </summary>
 /// <param name="geom">The <see cref="IGeometry"/> to simplify.</param>
 /// <param name="distanceTolerance">The tolerance to use.</param>
 /// <returns>A simplified version of the <see cref="IGeometry"/>.</returns>
 public static IGeometry Simplify(IGeometry geom, double distanceTolerance)
 {
     VWSimplifier simp = new VWSimplifier(geom);
     simp.DistanceTolerance = distanceTolerance;
     return simp.GetResultGeometry();
 }