How to create GdalImage object?

Aug 17, 2011 at 8:51 AM


I'm using release DotSpatial 2-12-2011 (because it is stil able to load a large GeoTIFF rasters).
But I've got a follow question: how I can create GDAL image object (to get for example pixel's color) at this release?

In latest releases I can use folow code:

InRamImageData raster = (InRamImageData)map1.Layers[0].DataSet;

But at my project I get an exception
Unable to cast object of type "DotSpatial.Data.Rasters.GdalExtension.GdalImage" to type "DotSpatial.Data.InRamImageData".

Then I connect an assembly: "DotSpatial.Data.Rasters.GdalExtension" an try to create GdalImage object,

GdalImage raster = (GdalImage)map1.Layers[0].DataSet;

but again I get an exception:
Could not load file or assembly "DotSpatial.Data.Rasters.GdalExtension, Version =, Culture = neutral, PublicKeyToken = null" or one of its dependencies. Can not find the file specified.

Is there other ways to solve my problem? How can I use GeoTIFFs in later (large rasters loadable) Dotspatial releases?