private void getRasterPath() { string outPath = null; string outName = ""; ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = false; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; flt = new ESRI.ArcGIS.Catalog.GxFilterRasterDatasetsClass(); gxDialog.ObjectFilter = flt; gxDialog.Title = "Select a Raster Dataset"; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); while (gxObj != null) { outPath = gxObj.FullName; outName = gxObj.BaseName; IRaster rs = rsUtil.returnRaster(outPath); if (!rstDic.ContainsKey(outName)) { rstDic.Add(outName, rs); cmbValueRaster.Items.Add(outName); } else { rstDic[outName] = rs; } gxObj = eGxObj.Next(); } } cmbValueRaster.SelectedItem = outName; return; }
private void btnStrataRst_Click(object sender, EventArgs e) { string outPath = null; string outName = ""; ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = false; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; flt = new ESRI.ArcGIS.Catalog.GxFilterRasterDatasetsClass(); gxDialog.ObjectFilter = flt; gxDialog.Title = "Select a Raster Dataset"; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); outPath = gxObj.FullName; outName = gxObj.BaseName; IRaster rs = rsUtil.returnRaster(outPath); if (!rstDic.ContainsKey(outName)) { rstDic.Add(outName, rs); cmbStrataField.Items.Add(outName); } else { rstDic[outName] = rs; } cmbStrataField.SelectedItem = outName; } return; }
private void getFeaturePath() { string outPath = null; string outName = ""; ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = true; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; flt = new ESRI.ArcGIS.Catalog.GxFilterTablesAndFeatureClassesClass(); gxDialog.ObjectFilter = flt; gxDialog.Title = "Select a "; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); while (gxObj != null) { outPath = gxObj.FullName; outName = gxObj.BaseName; ITable rs = geoUtil.getTable(outPath); if (!rstDic.ContainsKey(outName)) { rstDic.Add(outName, rs); cmbdataset.Items.Add(outName); } else { rstDic[outName] = rs; } gxObj = eGxObj.Next(); } cmbdataset.SelectedItem = outName; } return; }
private void getRasterPath(ComboBox cntr) { string outPath = null; string outName = ""; ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = false; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; flt = new ESRI.ArcGIS.Catalog.GxFilterRasterDatasetsClass(); gxDialog.ObjectFilter = flt; gxDialog.Title = "Select a Feature"; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); outPath = gxObj.FullName; outName = gxObj.BaseName; if (!rstDic.ContainsKey(outName)) { rstDic.Add(outName, rsUtil.returnRaster(outPath)); cntr.Items.Add(outName); } else { rstDic[outName] = rsUtil.returnRaster(outPath); } cntr.Text = outName; } return; }
private void getFeaturePath() { string outPath = null; string outName = ""; ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = true; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; flt = new ESRI.ArcGIS.Catalog.GxFilterRasterDatasetsClass(); gxDialog.ObjectFilter = flt; gxDialog.Title = "Select a Raster"; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); while (gxObj != null) { outPath = gxObj.FullName; outName = gxObj.BaseName; if (!rstDic.ContainsKey(outName)) { rstDic.Add(outName, rsUtil.createIdentityRaster(outPath)); //cmbInRaster1.Items.Add(outName); lsbRaster.Items.Add(outName); } else { rstDic[outName] = rsUtil.createIdentityRaster(outPath); } gxObj = eGxObj.Next(); } //cmbInRaster1.SelectedItem = outName; } return; }
private void getFeaturePath() { string outPath = null; string outName = ""; ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = false; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; flt = new ESRI.ArcGIS.Catalog.GxFilterTablesAndFeatureClassesClass(); gxDialog.ObjectFilter = flt; gxDialog.Title = "Select a Feature"; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); outPath = gxObj.FullName; outName = gxObj.BaseName; if (!ftrDic.ContainsKey(outName)) { ftrDic.Add(outName, geoUtil.getTable(outPath)); cmbSampleFeatureClass.Items.Add(outName); } else { ftrDic[outName] = geoUtil.getTable(outPath); } cmbSampleFeatureClass.SelectedItem = outName; } return; }
private string getFeatureClass(ESRI.ArcGIS.Catalog.IGxObjectFilter flt) { string[] nm; string ftrPath = frmHlp.getPath(flt, out nm, false)[0]; frmHlp.FeatureDictionary[nm[0]] = geoUtil.getFeatureClass(ftrPath); return(nm[0]); }
private void getFeaturePath() { string outPath = null; string outName = ""; ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = true; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; flt = new ESRI.ArcGIS.Catalog.GxFilterRasterDatasetsClass(); gxDialog.ObjectFilter = flt; gxDialog.Title = "Select a Feature"; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); while (gxObj != null) { outPath = gxObj.FullName; outName = gxObj.BaseName; IRaster rs = rsUtil.returnRaster(outPath); if (((IRasterBandCollection)rs).Count > 1) { IRasterBandCollection rsBc = (IRasterBandCollection)rs; for (int r = 0; r < rsBc.Count; r++) { string nNm = outName + "_Band_" + (r + 1).ToString(); IRaster rsB = rsUtil.returnRaster(rsUtil.getBand(rs, r)); if (!rstDic.ContainsKey(nNm)) { rstDic.Add(nNm, rsB); //cmbInRaster1.Items.Add(nNm); dgvRasterSlopes.Rows.Add(nNm, 0); } else { rstDic[nNm] = rsB; } } } else { if (!rstDic.ContainsKey(outName)) { rstDic.Add(outName, rs); //cmbInRaster1.Items.Add(outName); dgvRasterSlopes.Rows.Add(outName, 0); } else { rstDic[outName] = rs; } } gxObj = eGxObj.Next(); } } return; }
private void getFeaturePath(bool featureClass) { string outPath = null; string outName = ""; ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = false; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; if (featureClass) { flt = new ESRI.ArcGIS.Catalog.GxFilterWorkspacesClass(); gxDialog.Title = "Select a Workspace"; } else { flt = new ESRI.ArcGIS.Catalog.GxFilterRasterDatasetsClass(); gxDialog.Title = "Select a Raster"; } gxDialog.ObjectFilter = flt; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); outPath = gxObj.FullName; outName = gxObj.BaseName; if (featureClass) { if (!ftrDic.ContainsKey(outName)) { ftrDic.Add(outName, geoUtil.OpenWorkSpace(outPath)); cmbSampleFeatureClass.Items.Add(outName); } else { ftrDic[outName] = geoUtil.OpenWorkSpace(outPath); } cmbSampleFeatureClass.SelectedItem = outName; } else { if (!rstDic.ContainsKey(outName)) { rstDic.Add(outName, rstUtil.returnRaster(outPath)); cmbRasterBands.Items.Add(outName); } else { rstDic[outName] = rstUtil.returnRaster(outPath); } cmbRasterBands.Text = outName; } } return; }
private void getFeaturePath(object sender, EventArgs e) { Control cnt = (Control)sender; string cntName = cnt.Name; TextBox txtBox = txtPop; if (cntName == btnSamp.Name) { txtBox = txtSamp; } string outPath = null; string outName = ""; ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = false; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; flt = new ESRI.ArcGIS.Catalog.GxFilterTablesAndFeatureClassesClass(); gxDialog.ObjectFilter = flt; gxDialog.Title = "Select a Feature Class or Table"; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); outPath = gxObj.FullName; outName = gxObj.BaseName; IRaster rs = rsUtil.returnRaster(outPath); if (rs == null) { if (!ftrDic.ContainsKey(outName)) { ftrDic.Add(outName, geoUtil.getTable(outPath)); } else { ftrDic[outName] = geoUtil.getTable(outPath); } } else { if (!rstDic.ContainsKey(outName)) { rstDic.Add(outName, rs); } else { rstDic[outName] = rs; } } txtBox.Text = outName; } updateFieldComboBox(); return; }
private void getTablePath() { ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; flt = new ESRI.ArcGIS.Catalog.GxFilterTablesClass(); gxDialog.ObjectFilter = flt; gxDialog.Title = "Save Output Table"; if (gxDialog.DoModalSave(0)) { txtOutNm.Text = gxDialog.FinalLocation.FullName + "\\" + gxDialog.Name; } return; }
private void getTablePath() { ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = false; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; flt = new ESRI.ArcGIS.Catalog.GxFilterTablesClass();//.GxFilterRasterDatasetsClass(); gxDialog.ObjectFilter = flt; gxDialog.Title = "Save Output Table"; if (gxDialog.DoModalSave(0)) { txtTableName.Text = gxDialog.FinalLocation.FullName + "\\" + gxDialog.Name; } return; }
private void btnOpenWorkspace_Click(object sender, EventArgs e) { ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = false; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; flt = new ESRI.ArcGIS.Catalog.GxFilterWorkspacesClass(); gxDialog.ObjectFilter = flt; gxDialog.Title = "Select a Workspace"; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); txtLandFireDir.Text = gxObj.FullName; } }
public string getPathSave(ESRI.ArcGIS.Catalog.IGxObjectFilter filter, out string outName) { string outPath = ""; outName = ""; ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.ObjectFilter = filter; gxDialog.Title = filter.Description; if (gxDialog.DoModalSave(0)) { outName = gxDialog.Name; outPath = gxDialog.FinalLocation.FullName + "\\" + outName; } return(outPath); }
private void getFeaturePathMap() { string outPath = null; string outName = ""; ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = false; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; flt = new ESRI.ArcGIS.Catalog.GxFilterGeoDatasetsClass(); gxDialog.ObjectFilter = flt; gxDialog.Title = "Select a Feature or Raster Class"; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); outPath = gxObj.FullName; outName = gxObj.BaseName; IRaster rs = rsUtil.returnRaster(outPath); if (rs == null) { if (!ftrDic.ContainsKey(outName)) { ftrDic.Add(outName, geoUtil.getFeatureClass(outPath)); cmbMap.Items.Add(outName); } else { ftrDic[outName] = geoUtil.getFeatureClass(outPath); } } else { if (!rstDic.ContainsKey(outName)) { rstDic.Add(outName, rsUtil.returnRaster(outPath)); cmbMap.Items.Add(outName); } else { rstDic[outName] = rsUtil.returnRaster(outPath); } } cmbMap.SelectedItem = outName; } return; }
private void btnOpenFeatureClass_Click(object sender, EventArgs e) { ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = false; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; flt = new ESRI.ArcGIS.Catalog.GxFilterPolygonFeatureClassesClass(); gxDialog.ObjectFilter = flt; gxDialog.Title = "Select a RCZ Layer"; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); string nm = gxObj.Name; IFeatureClass ftrCls = geoUtil.getFeatureClass(gxObj.FullName); ftrDic.Add(nm, ftrCls); cmbInFeatureClass.Items.Add(nm); cmbInFeatureClass.SelectedItem = nm; } }
private void getFeaturePath(Control cmb, ESRI.ArcGIS.Catalog.IGxObjectFilter flt) { string outPath = null; string outName = ""; ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = false; gxDialog.ObjectFilter = flt; gxDialog.Title = "Select a Feature"; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); outPath = gxObj.FullName; outName = gxObj.BaseName; if (cmb.Name.ToLower() == "cmbraster") { IRaster oRs = null; if (!rstDic.ContainsKey(outName)) { oRs = rsUtil.returnRaster(outPath); rstDic.Add(outName, oRs); cmbRaster.Items.Add(outName); } else { oRs = rsUtil.returnRaster(outPath); rstDic[outName] = oRs; } object ndv = ((IRasterProps)((IRasterBandCollection)oRs).Item(0)).NoDataValue; //txtNoData.Text = (ndv.ToString()); } else { outWks = geoUtil.OpenRasterWorkspace(outPath); } cmb.Text = outName; } return; }
private IRaster getSeedRaster() { IRaster rsOut = null; string outPath = null; string outName = ""; ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = false; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; flt = new ESRI.ArcGIS.Catalog.GxFilterRasterDatasetsClass(); gxDialog.ObjectFilter = flt; gxDialog.Title = "Select a Seed Raster"; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); outPath = gxObj.FullName; outName = gxObj.BaseName; rsOut = rstUtil.returnRaster(outPath); } return(rsOut); }
private ITable getTableFromUser() { ITable outTbl = null; string outPath = null; string outName = ""; ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = false; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; flt = new ESRI.ArcGIS.Catalog.GxFilterTablesAndFeatureClassesClass(); gxDialog.ObjectFilter = flt; gxDialog.Title = "Supplemental Table"; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); outPath = gxObj.FullName; outName = gxObj.BaseName; outTbl = geoUtil.getTable(outPath); } return(outTbl); }
public string[] getPath(ESRI.ArcGIS.Catalog.IGxObjectFilter filter, out string[] outName, bool MultiSelect = false) { List <string> outLst = new List <string>(); List <string> outNameLst = new List <string>(); ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = MultiSelect; gxDialog.ObjectFilter = filter; gxDialog.Title = filter.Description; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); while (gxObj != null) { outLst.Add(gxObj.FullName); outNameLst.Add(gxObj.BaseName); gxObj = eGxObj.Next(); } } outName = outNameLst.ToArray(); return(outLst.ToArray()); }
private void getPath(bool isRaster) { string outPath = null; string outName = ""; ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = false; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; if (isRaster) { flt = new ESRI.ArcGIS.Catalog.GxFilterDatasetsClass(); } else { flt = new ESRI.ArcGIS.Catalog.GxFilterFileGeodatabasesClass(); } gxDialog.ObjectFilter = flt; gxDialog.Title = "Select a Feature"; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); outPath = gxObj.FullName; outName = gxObj.BaseName; if (isRaster) { string wksPath = geoUtil.getDatabasePath(outPath); IWorkspace wks = geoUtil.OpenWorkSpace(wksPath); IEnumDatasetName rsDsetName = wks.get_DatasetNames(esriDatasetType.esriDTRasterDataset); bool rsCheck = false; IDatasetName dsName = rsDsetName.Next(); while (dsName != null) { if (outName.ToLower() == dsName.Name.ToLower()) { rsCheck = true; break; } System.Runtime.InteropServices.Marshal.ReleaseComObject(dsName); dsName = rsDsetName.Next(); } System.Runtime.InteropServices.Marshal.ReleaseComObject(rsDsetName); if (rsCheck) { if (!rstDic.ContainsKey(outName)) { rstDic.Add(outName, rsUtil.createIdentityRaster(outPath)); cmbRst.Items.Add(outName); } else { rstDic[outName] = rsUtil.createIdentityRaster(outPath); } } else { ftrDic[outName] = geoUtil.getFeatureClass(outPath); } cmbRst.Text = outName; } else { txtOutWorkspace.Text = outPath; } } return; }
private void getFeaturePath(bool featureClass) { string outPath = null; string outName = ""; ESRI.ArcGIS.CatalogUI.IGxDialog gxDialog = new ESRI.ArcGIS.CatalogUI.GxDialogClass(); gxDialog.AllowMultiSelect = false; ESRI.ArcGIS.Catalog.IGxObjectFilter flt = null; if (featureClass) { flt = new ESRI.ArcGIS.Catalog.GxFilterPointFeatureClassesClass(); } else { flt = new ESRI.ArcGIS.Catalog.GxFilterDatasets(); } gxDialog.ObjectFilter = flt; gxDialog.Title = "Select"; ESRI.ArcGIS.Catalog.IEnumGxObject eGxObj; if (gxDialog.DoModalOpen(0, out eGxObj)) { ESRI.ArcGIS.Catalog.IGxObject gxObj = eGxObj.Next(); outPath = gxObj.FullName; outName = gxObj.BaseName; if (featureClass) { ftrDic[outName] = geoUtil.getFeatureClass(outPath); cmbSampleFeatureClass.Items.Add(outName); cmbSampleFeatureClass.Text = outName; } else { string wksPath = geoUtil.getDatabasePath(outPath); IWorkspace wks = geoUtil.OpenWorkSpace(wksPath); IEnumDataset rsDset = wks.get_Datasets(esriDatasetType.esriDTAny); bool rsCheck = false; IDataset ds = rsDset.Next(); while (ds != null) { if (outName.ToLower() == ds.Name.ToLower() && (ds.Type == esriDatasetType.esriDTMosaicDataset || ds.Type == esriDatasetType.esriDTRasterDataset || ds.Type == esriDatasetType.esriDTRasterCatalog)) { rsCheck = true; break; } System.Runtime.InteropServices.Marshal.ReleaseComObject(ds); ds = rsDset.Next(); } System.Runtime.InteropServices.Marshal.ReleaseComObject(rsDset); if (rsCheck) { rstDic[outName] = rsUtil.createIdentityRaster(outPath); cmbRaster.Items.Add(outName); cmbRaster.Text = outName; } else { ftrDic[outName] = geoUtil.getFeatureClass(outPath); cmbRaster.Items.Add(outName); cmbRaster.Text = outName; } } } return; }