コード例 #1
0
 /// <summary>
 /// Removes small holes from the polygons in a geometry. 
 /// </summary>
 /// <param name="geom">The geometry to clean.</param>
 /// <param name="areaTolerance">The geometry with invalid holes removed.</param>
 public static IGeometry Clean(IGeometry geom, double areaTolerance)
 {
     HoleRemover remover = new HoleRemover(geom, new IsSmall(areaTolerance));
     return remover.GetResult();
 }
コード例 #2
0
        /// <summary>
        /// Removes small holes from the polygons in a geometry.
        /// </summary>
        /// <param name="geom">The geometry to clean.</param>
        /// <param name="areaTolerance">The geometry with invalid holes removed.</param>
        public static IGeometry Clean(IGeometry geom, double areaTolerance)
        {
            HoleRemover remover = new HoleRemover(geom, new IsSmall(areaTolerance));

            return(remover.GetResult());
        }