Esempio n. 1
0
        public bool Open()
        {
            if (_fdb == null)
            {
                return(false);
            }

            _dsID = _fdb.DatasetID(_dsname);
            if (_dsID < 0)
            {
                return(false);
            }

            _sRef      = this.SpatialReference;
            _state     = DatasetState.opened;
            _sIndexDef = _fdb.SpatialIndexDef(_dsID);

            return(true);
        }
Esempio n. 2
0
        async public Task <bool> Open()
        {
            if (_fdb == null)
            {
                return(false);
            }

            _dsID = await _fdb.DatasetID(_dsname);

            if (_dsID < 0)
            {
                return(false);
            }

            _sRef = await this.GetSpatialReference();

            _state     = DatasetState.opened;
            _sIndexDef = await _fdb.SpatialIndexDef(_dsID);

            return(true);
        }