Exemplo n.º 1
0
        /// <summary>
        /// Utility Method for removing the consecutive duplicate vertices
        /// </summary>
        /// <param name="geometry"></param>
        /// <param name="tolerance"></param>
        /// <returns></returns>
        public static SqlGeometry RemoveDuplicateVertices(SqlGeometry geometry, double tolerance = Constants.Tolerance)
        {
            if (!geometry.STIsValid())
            {
                Ext.ThrowIfInvalidGeometry();
            }

            return(geometry.Reduce(tolerance));
        }