Пример #1
0
        private static bool Excute(IGPProcess tool)
        {
            Geoprocessor gp = new Geoprocessor();

            gp.OverwriteOutput = true;
            try
            {
                gp.Execute(tool, null);
            }
            catch
            {
                object sev1 = 2;
                gp.AddError(gp.GetMessages(ref sev1));
                return(false);
            }
            return(true);
        }