示例#1
0
 GISLayer layer;         //专题地图源图层
 public AdvancedThematic(GISDocument _document, GISPanel mapwindow, GISLayer _layer)
 {
     InitializeComponent();
     Document  = _document;
     Mapwindow = mapwindow;
     layer     = _layer;
 }
示例#2
0
 private void AdvancedThematic_Shown(object sender, EventArgs e)
 {
     //当窗口显示时,即根据图层读取字段,填充到cbattribute里面
     for (int i = 0; i < layer.Fields.Count; i++)
     {
         Console.WriteLine(layer.Fields[i].name);
         cbattribute.Items.Add(layer.Fields[i].name);
         cbattributedot.Items.Add(layer.Fields[i].name);
         cbattributeEsymbol.Items.Add(layer.Fields[i].name);
     }
     //cbattribute.SelectedIndex = (layer.Fields.Count > 0) ? layer.ThematicFieldIndex : -1;
     //填充预览窗口
     Mapwindow.CloneGP(gisPanel1advanced);
     gisPanel1advanced.UpdateMap();
     PreviewWindow = gisPanel1advanced;
 }
示例#3
0
        bool FromMapWindow = true;//记录选择数据集的来源
        public AttributeForm(GISLayer _layer, GISPanel mapwindow)
        {
            InitializeComponent();
            Layer     = _layer;
            MapWindow = mapwindow;
            //for (int i = 0; i < layer.Fields.Count; i++) //添加一系列的列
            //{
            //    dataGridView1.Columns.Add(layer.Fields[i].name, layer.Fields[i].name);
            //}
            //for (int i = 0; i < layer.FeatureCount(); i++)
            //{
            //    dataGridView1.Rows.Add();
            //    for (int j = 0; j < layer.Fields.Count; j++)
            //    {
            //        dataGridView1.Rows[i].Cells[j].Value = layer.GetFeature(i).getAttribute(j);
            //    }

            //}
        }
示例#4
0
 public LayerDialog(GISDocument document, GISPanel mapwindow)
 {
     InitializeComponent();
     Document  = document;
     Mapwindow = mapwindow;
 }
示例#5
0
 //将gispanel中部分对象引用至另一个panel
 internal void CloneGP(GISPanel gisPanel1advanced)
 {
     gisPanel1advanced.view          = view;
     gisPanel1advanced.bitbackwindow = bitbackwindow;
     gisPanel1advanced.document      = document;
 }