private void simpleButton1_Click(object sender, EventArgs e)            //渲染图层
 {
     if (comboBoxEdit2.Text == "分级渲染")
     {
         if (comboBoxEdit3.Text != "自定义分级")
         {
             Classifly.classifyRender(featureLayer, comboBoxEdit3.Text, comboBoxEdit1.Text,
                                      getRamp(), Convert.ToInt16(spinEdit1.Text));
         }
         else
         {
             Classifly.userRender(featureLayer, comboBoxEdit3.Text, comboBoxEdit1.Text,
                                  getRamp(), Convert.ToInt16(spinEdit1.Text), valueChooseInChart1.getValues());
         }
     }
     else if (comboBoxEdit2.Text == "圆大小渲染")
     {
         Classifly.ProportionalRenderer(featureLayer, comboBoxEdit1.Text,
                                        ColorToIColor(colorPickEdit3.Color), Convert.ToDouble(spinEdit2.Text));
     }
     else
     {
         Classifly.uniqueRender(featureLayer, comboBoxEdit1.Text);
     }
     axMapControl1.Refresh();
     axTOCControl1.Update();
 }
Beispiel #2
0
 private void simpleButton1_Click(object sender, EventArgs e)
 {
     if (comboBoxEdit2.Text == "分级渲染")
     {
         if (comboBoxEdit1.Text != "自定义分级")
         {
             Classifly.classifyRender(rasterLayer, comboBoxEdit1.Text,
                                      Convert.ToInt16(spinEdit1.Text), getRamp());
         }
         else
         {
             Console.WriteLine("自定义");
             Classifly.userRender(rasterLayer, getRamp(), Convert.ToInt32(spinEdit1.Text), valueChooseInChart1.getValues());
         }
     }
     else if (comboBoxEdit2.Text == "连续渲染")
     {
         Classifly.stretchRender(rasterLayer, getRamp());
     }
     else
     {
         Classifly.uniqueRender(rasterLayer);
     }
     axMapControl1.Refresh();
     axTOCControl1.Update();
 }