Exemplo n.º 1
0
        private void InitDic()
        {
            ShapeOp       shapeOp       = new ShapeOp(CityFilePath);
            IFeatureClass pFeatureClass = shapeOp.OpenFeatureClass();
            var           res           = shapeOp.FindValue(pFeatureClass, "Name", SelectedIndex);

            foreach (var re in res)
            {
                CityValues.Add(re.Key, Convert.ToSingle(re.Value));
            }
        }
        private void InitPop()
        {
            _popDic = new Dictionary <string, float>();
            if (String.IsNullOrEmpty(_selectedPopIndex))
            {
                return;
            }
            ShapeOp op            = new ShapeOp(CityFilePath);
            var     pFeatureClass = op.OpenFeatureClass();
            var     res           = op.FindValue(pFeatureClass, "Name", SelectedPopIndex);

            foreach (var re in res)
            {
                _popDic.Add(re.Key, Convert.ToSingle(re.Value));
            }
        }