public void WorldView2_Combinations(GUI_AddRaster theGUI) { // If the user selects Natural Color... if (theGUI.combo_StudyType.SelectedItem.ToString() == GUI_AddRaster.STUDYTYPE_6) { // Define the band parameters to be passed for this study type. Class_BandCombination run_BandCombinationClass = new Class_BandCombination(); run_BandCombinationClass.bandCombination(theGUI, Class_AssignTextBoxRGB_NaturalColor.int_R.Value - indexOne, Class_AssignTextBoxRGB_NaturalColor.int_G.Value - indexOne, Class_AssignTextBoxRGB_NaturalColor.int_B.Value - indexOne); //run_BandCombinationClass.bandCombination(theGUI, 5 - indexOne, 3 - indexOne, 2 - indexOne); } // If the user selects Vegetation... else if (theGUI.combo_StudyType.SelectedItem.ToString() == GUI_AddRaster.STUDYTYPE_9) { // Define the band parameters to be passed for this study type. Class_BandCombination run_BandCombinationClass = new Class_BandCombination(); run_BandCombinationClass.bandCombination(theGUI, Class_AssignTextBoxRGB_Vegetation.int_R.Value - indexOne, Class_AssignTextBoxRGB_Vegetation.int_G.Value - indexOne, Class_AssignTextBoxRGB_Vegetation.int_B.Value - indexOne); //run_BandCombinationClass.bandCombination(theGUI, 7 - indexOne, 5 - indexOne, 3 - indexOne); } }
public void SPOT4_5_Combinations(GUI_AddRaster theGUI) { // If the user selects Land - Water Boundaries... if (theGUI.combo_StudyType.SelectedItem.ToString() == GUI_AddRaster.STUDYTYPE_5) { // Define the band parameters to be passed for this study type. Class_BandCombination run_BandCombinationClass = new Class_BandCombination(); run_BandCombinationClass.bandCombination(theGUI, Class_AssignTextBoxRGB_LandWaterBoundaries.int_R.Value - indexOne, Class_AssignTextBoxRGB_LandWaterBoundaries.int_G.Value - indexOne, Class_AssignTextBoxRGB_LandWaterBoundaries.int_B.Value - indexOne); //run_BandCombinationClass.bandCombination(theGUI, 3 - indexOne, 4 - indexOne, 2 - indexOne); } // If the user selects Vegetation... else if (theGUI.combo_StudyType.SelectedItem.ToString() == GUI_AddRaster.STUDYTYPE_9) { // Define the band parameters to be passed for this study type. Class_BandCombination run_BandCombinationClass = new Class_BandCombination(); run_BandCombinationClass.bandCombination(theGUI, Class_AssignTextBoxRGB_Vegetation.int_R.Value - indexOne, Class_AssignTextBoxRGB_Vegetation.int_G.Value - indexOne, Class_AssignTextBoxRGB_Vegetation.int_B.Value - indexOne); //run_BandCombinationClass.bandCombination(theGUI, 3 - indexOne, 2 - indexOne, 1 - indexOne); } }
public void Modis_Combinations(GUI_AddRaster theGUI) { // If the user selects Agriculture... if (theGUI.combo_StudyType.SelectedItem.ToString() == GUI_AddRaster.STUDYTYPE_1) { // Define the band parameters to be passed for this study type. Class_BandCombination run_BandCombinationClass = new Class_BandCombination(); run_BandCombinationClass.bandCombination(theGUI, Class_AssignTextBoxRGB_Agriculture.int_R.Value - indexOne, Class_AssignTextBoxRGB_Agriculture.int_G.Value - indexOne, Class_AssignTextBoxRGB_Agriculture.int_B.Value - indexOne); //run_BandCombinationClass.bandCombination(theGUI, 6 - indexOne, 2 - indexOne, 3 - indexOne); } // If the user selects Bare Earth... else if (theGUI.combo_StudyType.SelectedItem.ToString() == GUI_AddRaster.STUDYTYPE_2) { // Define the band parameters to be passed for this study type. Class_BandCombination run_BandCombinationClass = new Class_BandCombination(); run_BandCombinationClass.bandCombination(theGUI, Class_AssignTextBoxRGB_BareEarth.int_R.Value - indexOne, Class_AssignTextBoxRGB_BareEarth.int_G.Value - indexOne, Class_AssignTextBoxRGB_BareEarth.int_B.Value - indexOne); //run_BandCombinationClass.bandCombination(theGUI, 6 - indexOne, 4 - indexOne, 3 - indexOne); } // If the user selects Burn Scarring... else if (theGUI.combo_StudyType.SelectedItem.ToString() == GUI_AddRaster.STUDYTYPE_3) { // Define the band parameters to be passed for this study type. Class_BandCombination run_BandCombinationClass = new Class_BandCombination(); run_BandCombinationClass.bandCombination(theGUI, Class_AssignTextBoxRGB_BurnScarring.int_R.Value - indexOne, Class_AssignTextBoxRGB_BurnScarring.int_G.Value - indexOne, Class_AssignTextBoxRGB_BurnScarring.int_B.Value - indexOne); //run_BandCombinationClass.bandCombination(theGUI, 7 - indexOne, 2 - indexOne, 3 - indexOne); } // If the user selects Healthy Vegetation... else if (theGUI.combo_StudyType.SelectedItem.ToString() == GUI_AddRaster.STUDYTYPE_4) { // Define the band parameters to be passed for this study type. Class_BandCombination run_BandCombinationClass = new Class_BandCombination(); run_BandCombinationClass.bandCombination(theGUI, Class_AssignTextBoxRGB_HealthyVegetation.int_R.Value - indexOne, Class_AssignTextBoxRGB_HealthyVegetation.int_G.Value - indexOne, Class_AssignTextBoxRGB_HealthyVegetation.int_B.Value - indexOne); //run_BandCombinationClass.bandCombination(theGUI, 2 - indexOne, 6 - indexOne, 3 - indexOne); } // If the user selects Land - Water Boundaries... else if (theGUI.combo_StudyType.SelectedItem.ToString() == GUI_AddRaster.STUDYTYPE_5) { // Define the band parameters to be passed for this study type. Class_BandCombination run_BandCombinationClass = new Class_BandCombination(); run_BandCombinationClass.bandCombination(theGUI, Class_AssignTextBoxRGB_LandWaterBoundaries.int_R.Value - indexOne, Class_AssignTextBoxRGB_LandWaterBoundaries.int_G.Value - indexOne, Class_AssignTextBoxRGB_LandWaterBoundaries.int_B.Value - indexOne); //run_BandCombinationClass.bandCombination(theGUI, 2 - indexOne, 6 - indexOne, 1 - indexOne); } // If the user selects Natural Color... else if (theGUI.combo_StudyType.SelectedItem.ToString() == GUI_AddRaster.STUDYTYPE_6) { // Define the band parameters to be passed for this study type. Class_BandCombination run_BandCombinationClass = new Class_BandCombination(); run_BandCombinationClass.bandCombination(theGUI, Class_AssignTextBoxRGB_NaturalColor.int_R.Value - indexOne, Class_AssignTextBoxRGB_NaturalColor.int_G.Value - indexOne, Class_AssignTextBoxRGB_NaturalColor.int_B.Value - indexOne); //run_BandCombinationClass.bandCombination(theGUI, 1 - indexOne, 4 - indexOne, 3 - indexOne); } // If the user selects Natural Color - No Atmosphere... else if (theGUI.combo_StudyType.SelectedItem.ToString() == GUI_AddRaster.STUDYTYPE_7) { // Define the band parameters to be passed for this study type. Class_BandCombination run_BandCombinationClass = new Class_BandCombination(); run_BandCombinationClass.bandCombination(theGUI, Class_AssignTextBoxRGB_NaturalColorNoAtmosphere.int_R.Value - indexOne, Class_AssignTextBoxRGB_NaturalColorNoAtmosphere.int_G.Value - indexOne, Class_AssignTextBoxRGB_NaturalColorNoAtmosphere.int_B.Value - indexOne); //run_BandCombinationClass.bandCombination(theGUI, 7 - indexOne, 2 - indexOne, 4 - indexOne); } // If the user selects Urban... else if (theGUI.combo_StudyType.SelectedItem.ToString() == GUI_AddRaster.STUDYTYPE_8) { // Define the band parameters to be passed for this study type. Class_BandCombination run_BandCombinationClass = new Class_BandCombination(); run_BandCombinationClass.bandCombination(theGUI, Class_AssignTextBoxRGB_Urban.int_R.Value - indexOne, Class_AssignTextBoxRGB_Urban.int_G.Value - indexOne, Class_AssignTextBoxRGB_Urban.int_B.Value - indexOne); //run_BandCombinationClass.bandCombination(theGUI, 7 - indexOne, 6 - indexOne, 1 - indexOne); } // If the user selects Vegetation... else if (theGUI.combo_StudyType.SelectedItem.ToString() == GUI_AddRaster.STUDYTYPE_9) { // Define the band parameters to be passed for this study type. Class_BandCombination run_BandCombinationClass = new Class_BandCombination(); run_BandCombinationClass.bandCombination(theGUI, Class_AssignTextBoxRGB_Vegetation.int_R.Value - indexOne, Class_AssignTextBoxRGB_Vegetation.int_G.Value - indexOne, Class_AssignTextBoxRGB_Vegetation.int_B.Value - indexOne); //run_BandCombinationClass.bandCombination(theGUI, 2 - indexOne, 1 - indexOne, 4 - indexOne); } }
public void RGB_Assignments_NaturalColor(GUI_AddRaster theGUI) { if (theGUI.combo_SensorType.SelectedItem.ToString() == "ASTER") { // This RGB combination is not available for this sensor. int_R = null; int_G = null; int_B = null; // Set RGB band values to textboxes. theGUI.textBox_R.Text = null; theGUI.textBox_G.Text = null; theGUI.textBox_B.Text = null; } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "EO-1 ALI") { // RGB Band values int_R = 5; int_G = 4; int_B = 3; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "EO-1 Hyperion") { // RGB Band values int_R = 29; int_G = 23; int_B = 16; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "FormoSat-1") { // RGB Band values int_R = 5; int_G = 4; int_B = 2; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "FormoSat-2") { // RGB Band values int_R = 3; int_G = 2; int_B = 1; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "FormoSat-5") { // RGB Band values int_R = 3; int_G = 2; int_B = 1; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "GeoEye-1") { // RGB Band values int_R = 3; int_G = 2; int_B = 1; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "IKONOS") { // RGB Band values int_R = 3; int_G = 2; int_B = 1; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "Landsat 1-5 MSS") { // This RGB combination is not available for this sensor. int_R = null; int_G = null; int_B = null; // Set RGB band values to textboxes. theGUI.textBox_R.Text = null; theGUI.textBox_G.Text = null; theGUI.textBox_B.Text = null; } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "Landsat 4-5 TM") { // RGB Band values int_R = 3; int_G = 2; int_B = 1; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "Landsat 7") { // RGB Band values int_R = 3; int_G = 2; int_B = 1; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "Landsat 8") { // RGB Band values int_R = 4; int_G = 3; int_B = 2; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "MODIS") { // RGB Band values int_R = 1; int_G = 4; int_B = 3; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "NAIP 3-Band") { // RGB Band values int_R = 3; int_G = 2; int_B = 1; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "NAIP 4-Band") { // RGB Band values int_R = 3; int_G = 2; int_B = 1; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "OrbView-3") { // RGB Band values int_R = 3; int_G = 2; int_B = 1; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "Pleiades-1") { // RGB Band values int_R = 3; int_G = 2; int_B = 1; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "QuickBird") { // RGB Band values int_R = 3; int_G = 2; int_B = 1; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "RapidEye") { // RGB Band values int_R = 3; int_G = 2; int_B = 1; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "Sentinel-2") { // RGB Band values int_R = 4; int_G = 3; int_B = 2; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "Sentinel-3") { // RGB Band values int_R = 8; int_G = 6; int_B = 4; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "SPOT 1-3") { // This RGB combination is not available for this sensor. int_R = null; int_G = null; int_B = null; // Set RGB band values to textboxes. theGUI.textBox_R.Text = null; theGUI.textBox_G.Text = null; theGUI.textBox_B.Text = null; } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "SPOT 4-5") { // This RGB combination is not available for this sensor. int_R = null; int_G = null; int_B = null; // Set RGB band values to textboxes. theGUI.textBox_R.Text = null; theGUI.textBox_G.Text = null; theGUI.textBox_B.Text = null; } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "SPOT 6-7") { // RGB Band values int_R = 3; int_G = 2; int_B = 1; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "WorldView-2") { // RGB Band values int_R = 5; int_G = 3; int_B = 2; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "WorldView-3") { // RGB Band values int_R = 5; int_G = 3; int_B = 2; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } else if (theGUI.combo_SensorType.SelectedItem.ToString() == "WorldView-4") { // RGB Band values int_R = 3; int_G = 2; int_B = 1; // Set RGB band values to textboxes. theGUI.textBox_R.Text = int_R.ToString(); theGUI.textBox_G.Text = int_G.ToString(); theGUI.textBox_B.Text = int_B.ToString(); } }