Exemple #1
0
        private string getRaster()
        {
            string[] nm;
            ESRI.ArcGIS.Catalog.IGxObjectFilter flt = new ESRI.ArcGIS.Catalog.GxFilterRasterDatasetsClass();
            string rstPath = frmHlp.getPath(flt, out nm, false)[0];

            frmHlp.FunctionRasterDictionary[nm[0]] = rsUtil.createIdentityRaster(rstPath);
            return(nm[0]);
        }
Exemple #2
0
 private void btnOpenLasDir_Click(object sender, EventArgs e)
 {
     ESRI.ArcGIS.Catalog.IGxObjectFilter flt = new ESRI.ArcGIS.Catalog.GxFilterBasicTypesClass();
     string[] flNames;
     string[] flPath = frmHlp.getPath(flt, out flNames, false);
     if (flPath.Length > 0)
     {
         txtLasDir.Text = flPath[0];
     }
 }
Exemple #3
0
        private void btnFtrCls_Click(object sender, EventArgs e)
        {
            ESRI.ArcGIS.Catalog.IGxObjectFilter flt = new ESRI.ArcGIS.Catalog.GxFilterPolygonFeatureClassesClass();
            string[] nm;
            string   ftrPath = frmHlp.getPath(flt, out nm, false)[0];

            ftrDic[nm[0]] = geoUtil.getFeatureClass(ftrPath);
            cmbFtrCls.Items.Add(nm);
            cmbFtrCls.SelectedItem = nm;
        }
Exemple #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            ESRI.ArcGIS.Catalog.IGxObjectFilter flt = new ESRI.ArcGIS.Catalog.GxFilterPolygonFeatureClassesClass();
            string[] outName;
            string   outPath = frmHlp.getPath(flt, out outName, false)[0];

            frmHlp.FeatureDictionary[outName[0]] = geoUtil.getFeatureClass(outPath);
            cmbFtrCls.Items.Add(outName[0]);
            cmbFtrCls.SelectedItem = outName[0];
        }
Exemple #5
0
 private void getFeaturePath()
 {
     ESRI.ArcGIS.Catalog.IGxObjectFilter flt = new ESRI.ArcGIS.Catalog.GxFilterRasterDatasetsClass();
     string[] rsNames;
     string[] rsPaths = frmHlp.getPath(flt, out rsNames, true);
     for (int i = 0; i < rsPaths.Length; i++)
     {
         string pt = rsPaths[i];
         string nm = rsNames[i];
         rstDic[nm] = pt;
         lsbRaster.Items.Add(nm);
     }
     return;
 }
Exemple #6
0
        private void btnInFtrCls_Click(object sender, EventArgs e)
        {
            string[] nm;
            ESRI.ArcGIS.Catalog.IGxObjectFilter flt = new ESRI.ArcGIS.Catalog.GxFilterPolygonFeatureClasses();
            string outPath = frmHlp.getPath(flt, out nm)[0];

            cmbInFtrCls.Items.Add(nm[0]);
            frmHlp.FeatureDictionary[nm[0]] = geoUtil.getFeatureClass(outPath);
            cmbInFtrCls.Text = nm[0];
        }
Exemple #7
0
        private void getFeaturePath()
        {
            ESRI.ArcGIS.Catalog.IGxObjectFilter flt = new ESRI.ArcGIS.Catalog.GxFilterRasterDatasetsClass();
            string[] nm;
            string   outPath = frmHlp.getPath(flt, out nm, false)[0];
            string   outName = nm[0];

            frmHlp.FunctionRasterDictionary[outName] = rsUtil.createIdentityRaster(outPath);
            cmbInRaster1.Text = outName;
            return;
        }
Exemple #8
0
 private void btnDir_Click(object sender, EventArgs e)
 {
     ESRI.ArcGIS.Catalog.IGxObjectFilter flt = new ESRI.ArcGIS.Catalog.GxFilterBasicTypesClass();
     inDirPath     = frmHelper.getPath(flt, out inDirName);
     txtInDir.Text = inDirPath[0];
 }