コード例 #1
0
        /// <summary>
        /// Simplifies a geometry using a given tolerance.
        /// </summary>
        /// <param name="geom">The geometry to simplify.</param>
        /// <param name="distanceTolerance">The tolerance to use.</param>
        /// <returns>A simplified version of the geometry.</returns>
        public static IGeometry Simplify(IGeometry geom, double distanceTolerance)
        {
            DouglasPeuckerSimplifier tss = new DouglasPeuckerSimplifier(geom);

            tss.DistanceTolerance = distanceTolerance;
            return(tss.GetResultGeometry());
        }
コード例 #2
0
 public DPTransformer(DouglasPeuckerSimplifier container, bool ensureValidTopology)
 {
     _container           = container;
     _ensureValidTopology = ensureValidTopology;
 }