Difficulty loading image file

Jul 29, 2011 at 1:56 PM

I'm new to DotSpatial, currently working my way through the tutorials. The first two tutorials were great, made me feel that it was going to be a breeze getting into this. However, tutorial 3 is giving me some grief loading up a TIF file. At first, it gave me a ProjectionException from TransformManager.GetProjection("Lambert_Conformal_Conic_2SP"), since it's not expecting the "_2SP"at the end. I got round that by tweaking the LambertConformalConic constructor.

Now I'm getting a null reference exception. It looks like the call to DataManagerExt.OpenRaster manages to open the file (producing an instance of DotSpatial.Data.Rasters.GdalExtension.GdalImage), but the software then casts it to an IRaster. Unfortunately GdalImage doesn't implement IRaster.

Can anyone get me over this roadblock?

Steve