Пример #1
0
        public object ESRI_CoordSys_Remove(ResultBuffer rb)
        {
            object result;

            try
            {
                Document document = AfaDocData.ActiveDocData.Document;
                int      num      = AfaDocData.ActiveDocData.DocDataset.MapServices.Count + AfaDocData.ActiveDocData.DocDataset.ImageServices.Count + AfaDocData.ActiveDocData.DocDataset.FeatureServices.Count;
                if (num > 0)
                {
                    result = null;
                }
                else
                {
                    string value = MSCPrj.ReadWKT(document);
                    if (string.IsNullOrEmpty(value))
                    {
                        result = null;
                    }
                    else
                    {
                        MSCPrj.RemoveWKT(document);
                        result = LspUtil.LispTrue;
                    }
                }
            }
            catch
            {
                result = null;
            }
            return(result);
        }