Exemple #1
0
 public override void OpenFile(string path, FileType fileType)
 {
     try
     {
         Gdal.AllRegister();
     }
     catch (Exception e)
     {
         throw new ApplicationException("GDAL libraries missing!", e);
     }
     Gdal.SetConfigOption("NODATA_value", "-9999");
     dataset = Gdal.Open(path, Access.GA_ReadOnly);
     info    = new GDAL_Info(dataset);
 }
 public override void OpenFile(string path, FileType fileType)
 {
     try
     {
         Gdal.AllRegister();
     }
     catch (Exception e)
     {
         throw new ApplicationException("GDAL libraries missing!", e);
     }
     Gdal.SetConfigOption("NODATA_value", "-9999");
     dataset = Gdal.Open(path, Access.GA_ReadOnly);
     info = new GDAL_Info(dataset);
 }
Exemple #3
0
 public GDALDataSource(Dataset dataset, AreaD worldArea)
     : base(worldArea)
 {
     data = dataset;
     info = new GDAL_Info(dataset);
 }