Beispiel #1
0
        /// <summary>Checks whether the geometry buffer is valid, and returns an error message if not.
        /// </summary>
        /// <param name="g"></param>
        /// <param name="distance"></param>
        /// <param name="result"></param>
        /// <returns>An appropriate error message<br/>
        /// or <c>null</c>if the buffer is valid</returns>
        ///
        public static string IsValidMessage(Geometry g, double distance, Geometry result)
        {
            var validator = new BufferResultValidator(g, distance, result);

            if (!validator.IsValid())
            {
                return(validator.ErrorMessage);
            }
            return(null);
        }
Beispiel #2
0
        public static bool IsValid(Geometry g, double distance, Geometry result)
        {
            var validator = new BufferResultValidator(g, distance, result);

            if (validator.IsValid())
            {
                return(true);
            }
            return(false);
        }