private void CheckHolesRemoved(string inputWKT, string expectedWKT)
        {
            var input    = read(inputWKT);
            var expected = read(expectedWKT);

            var actual = InvalidHoleRemover.Clean(input);

            CheckEqual(expected, actual);
        }
        /// <summary>
        /// Removes invalid holes from the polygons in a geometry.
        /// </summary>
        /// <param name="geom">The geometry to clean</param>
        /// <returns>The geometry with invalid holes removed</returns>
        public static IGeometry Clean(IGeometry geom)
        {
            InvalidHoleRemover pihr = new InvalidHoleRemover(geom);

            return(pihr.GetResult());
        }
 /// <summary>
 /// Removes invalid holes from the polygons in a geometry.
 /// </summary>
 /// <param name="geom">The geometry to clean</param>
 /// <returns>The geometry with invalid holes removed</returns>
 public static IGeometry Clean(IGeometry geom)
 {
     InvalidHoleRemover pihr = new InvalidHoleRemover(geom);
     return pihr.GetResult();
 }