コード例 #1
0
ファイル: PyCmd.cs プロジェクト: tevfikoguz/ProjectCollection
        public static void find(string key)
        {
            // pycmd.find('当雄')

            var entities = MapDataManager.LatestMap.Layers.SelectMany(x => x.Features).Where(f => f.Properties.Any(x => x.Value.ToUpper().Contains(key.ToUpper()))).ToArray();

            SelectionSet.Select(entities);
        }
コード例 #2
0
ファイル: PyCmd.cs プロジェクト: tevfikoguz/ProjectCollection
        public static void query(string layer, Func <IFeature, bool> predicate)
        {
            // pycmd.query('区域',lambda x:System.Convert.ToDouble(x.Properties['全县地震点数'])>5)

            var entities = MapDataManager.LatestMap.Layers[layer].Features.Where(f => predicate(f)).ToArray();

            SelectionSet.Select(entities);
        }