Beispiel #1
0
        /// <summary>
        /// Computes the Minimum Clearance distance for
        /// the given Geometry.
        /// </summary>
        /// <param name="g">The input geometry</param>
        /// <returns>The minimum clearance</returns>
        public static double GetDistance(IGeometry g)
        {
            var rp = new MinimumClearance(g);

            return(rp.GetDistance());
        }
Beispiel #2
0
        /// <summary>
        /// Gets a LineString containing two points
        /// which are at the Minimum Clearance distance
        /// for the given Geometry.
        /// </summary>
        /// <param name="g">The input geometry</param>
        /// <returns>The value of the minimum clearance distance<br/>
        /// or <c>LINESTRING EMPTY</c> if no minimum clearance distance exists.</returns>
        public static IGeometry GetLine(IGeometry g)
        {
            var rp = new MinimumClearance(g);

            return(rp.GetLine());
        }