Esempio n. 1
0
        async public Task <IFeatureCursor> GetFeatures(IQueryFilter filter /*, gView.Framework.Data.getFeatureQueryType type*/)
        {
            if (_fdb == null)
            {
                return(null);
            }

            if (filter != null)
            {
                filter.AddField("FDB_OID");
            }

            if (filter is IRowIDFilter)
            {
                filter.fieldPostfix = filter.fieldPrefix = "\"";
                return(await _fdb.QueryIDs(this, filter.SubFieldsAndAlias, ((IRowIDFilter)filter).IDs, filter.FeatureSpatialReference));
            }
            else
            {
                return(await _fdb.Query(this, filter));
            }
        }