Esempio n. 1
0
        async public Task <IDatasetElement> Element(string DatasetElementTitle)
        {
            if (_fdb == null)
            {
                return(null);
            }

            IDatasetElement element = await _fdb.DatasetElement(this, DatasetElementTitle);

            if (element != null && element.Class is AccessFDBFeatureClass)
            {
                ((AccessFDBFeatureClass)element.Class).SpatialReference = _sRef;
            }

            return(element);
        }
Esempio n. 2
0
        public IDatasetElement this[string DatasetElementTitle]
        {
            get
            {
                if (_fdb == null)
                {
                    return(null);
                }
                IDatasetElement element = _fdb.DatasetElement(this, DatasetElementTitle);

                if (element != null && element.Class is AccessFDBFeatureClass)
                {
                    ((AccessFDBFeatureClass)element.Class).SpatialReference = _sRef;
                }

                return(element);
            }
        }