Beispiel #1
0
        private void ApplayExtractResult(IRasterDataProvider dataProvider, ImportFilesObj[] objs)
        {
            IDataImportDriver driver = null;
            string            error  = null;

            foreach (ImportFilesObj obj in objs)
            {
                if (string.IsNullOrEmpty(obj.ProIdentify) || string.IsNullOrEmpty(obj.SubProIdentify))
                {
                    obj.ProIdentify    = _monitoringSession.ActiveMonitoringProduct.Identify;
                    obj.SubProIdentify = _monitoringSession.ActiveMonitoringSubProduct.Identify;
                }
                driver = DataImport.GetDriver(obj.ProIdentify, obj.SubProIdentify, obj.FullFilename, null);
                if (driver == null)
                {
                    continue;
                }
                IExtractResult result = driver.Do(obj.ProIdentify, obj.SubProIdentify, dataProvider, obj.FullFilename, out error);
                if (result == null)
                {
                    continue;
                }
                DisplayResultClass.DisplayResult(_smartSession, _monitoringSession.ActiveMonitoringSubProduct, result, true);
            }
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string         fileanme;
            OpenFileDialog dilaog = new OpenFileDialog();

            if (dilaog.ShowDialog() == DialogResult.OK)
            {
                fileanme = dilaog.FileName;
            }
            else
            {
                return;
            }
            IDataImportDriver  driver = DataImport.GetDriver("FIR", "DBLV", fileanme, null);
            string             error  = string.Empty;
            RasterDataProvider pro    = GeoDataDriver.Open(@"G:\培训光盘内容\培训数据(监测产品)\03_火情\山西火\FY3A_VIRR_0FHA_GLL_L1_20130426_0245_1000M_Day_MOSA.LDF") as RasterDataProvider;

            driver.Do("FIR", "DBLV", pro, fileanme, out error);
        }
Beispiel #3
0
        public object GetArgumentValue()
        {
            if (string.IsNullOrEmpty(txtHistroyFile.Text) || !File.Exists(txtHistroyFile.Text))
            {
                return(null);
            }
            IDataImportDriver driver = DataImport.GetDriver(_productIdentify, _subProductIdentify, txtHistroyFile.Text, null);

            if (driver == null)
            {
                return(null);
            }
            string error = null;

            if (!string.IsNullOrEmpty(_currentFileName))
            {
                using (RasterDataProvider provider = GeoDataDriver.Open(_currentFileName) as RasterDataProvider)
                {
                    return(driver.Do(_productIdentify, _subProductIdentify, provider, txtHistroyFile.Text, out error));
                }
            }
            return(null);
        }
Beispiel #4
0
 private void btnMVGXMLParser_Click(object sender, EventArgs e)
 {
     string            error  = string.Empty;
     IDataImportDriver driver = DataImport.GetDriver("FIR", "PLST", @"D:\MAS_Workspace\OutputItem\Fire\MultiValueGraph\20130311\FIR_DBLV_NOAA18_AVHRR_1000M_NUL_P001_20120407061200.mvg", null);
 }