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

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

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

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

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

                return(element);
            }
        }