Esempio n. 1
0
 void layer_DataSourceNeeded(object sender, RasterDataSourceEventArgs e)
 {
     RasterLayer raster = (RasterLayer)(sender);
     e.Provider = new GDALRasterProvider(raster.DataProviderParameters["file_name"]);
 }
Esempio n. 2
0
 void layer_DataSourceReadyToRelease(object sender, RasterDataSourceEventArgs e)
 {
    ((IDisposable) e.Provider).Dispose();
 }