Exemple #1
0
        /// <summary>
        /// Snaps a geometry to itself.
        /// Allows optionally cleaning the result to ensure it is topologically valid
        /// (which fixes issues such as topology collapses in polygonal inputs).
        /// Snapping a geometry to itself can remove artifacts such as very narrow slivers, gores and spikes.
        /// </summary>
        /// <param name="geom">the geometry to snap</param>
        /// <param name="snapTolerance">the snapping tolerance</param>
        /// <param name="cleanResult">whether the result should be made valid</param>
        /// <returns>a new snapped <see cref="IGeometry"/></returns>
        public static IGeometry SnapToSelf(IGeometry geom, double snapTolerance, bool cleanResult)
        {
            var snapper0 = new GeometrySnapper(geom);

            return(snapper0.SnapToSelf(snapTolerance, cleanResult));
        }
 /// <summary>
 /// Snaps a geometry to itself.
 /// Allows optionally cleaning the result to ensure it is topologically valid
 /// (which fixes issues such as topology collapses in polygonal inputs).
 /// Snapping a geometry to itself can remove artifacts such as very narrow slivers, gores and spikes.
 /// </summary>
 /// <param name="geom">the geometry to snap</param>
 /// <param name="snapTolerance">the snapping tolerance</param>
 /// <param name="cleanResult">whether the result should be made valid</param>
 /// <returns>a new snapped <see cref="IGeometry"/></returns>
 public static IGeometry SnapToSelf(IGeometry geom, double snapTolerance, bool cleanResult)
 {
     var snapper0 = new GeometrySnapper(geom);
     return snapper0.SnapToSelf(snapTolerance, cleanResult);
 }