Exemple #1
0
        public override CoordinateSystemDefinitionBase[] EnumerateCoordinateSystems(string category)
        {
            CoordinateSystemCategory cat = null;

            foreach (CoordinateSystemCategory csc in this.Categories)
            {
                if (csc.Name == category)
                {
                    cat = csc;
                    break;
                }
            }

            if (cat == null)
            {
                return(new CoordinateSystemDefinitionBase[0]);
            }

            MgBatchPropertyCollection             bp  = m_cf.EnumerateCoordinateSystems(category);
            List <CoordinateSystemDefinitionBase> lst = new List <CoordinateSystemDefinitionBase>();

            for (int i = 0; i < bp.GetCount(); i++)
            {
                lst.Add(new LocalNativeCoordinateSystemDefinition(cat, bp.GetItem(i)));
            }

            return(lst.ToArray());
        }