コード例 #1
0
        public IFeature GetNodeFeature(int nid)
        {
            QueryFilter filter = new QueryFilter();

            filter.WhereClause = _fdb.DbColName("FDB_OID") + "=" + nid;
            filter.AddField("*");

            try
            {
                using (IFeatureCursor cursor = GetNodeFeatures(filter))
                {
                    if (cursor == null)
                    {
                        return(null);
                    }
                    return(cursor.NextFeature);
                }
            }
            catch { return(null); }
        }