GDAL 1.9 with SharpMap-0.9-AnyCPU-Trunk-2012.04.17

Topics: SharpMap v0.9 / v1.x
Jul 13, 2012 at 4:04 PM


First off I have had no problems with prior releases but I thought I would try 1.9. Well, I have failed. Has anyone got this to work for them? I get this error when attempting to render a GeoTiff:

Thrown: "C:\MDADGIS\LocalGISData\Aerial2010SP\MIA_2010.tif, band 1: Access window out of range in RasterIO().  Requested (876032,544118) of size 140x37 on raster of 32628x23963." (System.ApplicationException)    Exception Message = "C:\\MDADGIS\\LocalGISData\\Aerial2010SP\\MIA_2010.tif, band 1: Access window out of range in RasterIO().  Requested\n(876032,544118) of size 140x37 on raster of 32628x23963.", Exception Type = "System.ApplicationException"   

and it looks like it does not see my plugins for MrSid because I get an "unsupported format exception".



Jul 13, 2012 at 4:27 PM

You need to make sure you application that hosts SharpMap is compiled with  x86 CPU-target in orde to use the SharpMap.Extensions / GDAL assemlies.

Jul 13, 2012 at 6:46 PM

This appears not to be a module loading issue. In stepping thru the code it manages to successfully do the Gdal.Register -- it is after this then that things fall apart.

"Access window out of range in RasterIO()" looks like something not good is happening after things are loaded up.



Jul 16, 2012 at 7:02 AM

AFAIK, if you use the precompiled binaries, you are stuck with FWTools 2.4.7.

If you compile the source youreself, you can replace FWTools csharp bindings with those of  more recent distributions. Be careful to update all relevant environment variables (PATH, GDAL_DATA, GDAL_PLUGINS, ...) accordingly

Hth FObermaier