Problems with GDAL

Topics: Español, SharpMap Project, SharpMap v0.9 / v1.x
Mar 16, 2011 at 1:15 PM

Hello friends,

I am working in a GIS Project using VB2005, C#, and SharpMap libraries. The project started 2 or 3 years ago, but stopped.

Now I have to continue the project and first of all I want to use de last version associated with release sharpmap 0.9 - 2010.10.21. So I have downloaded this version, I have configured the Postgis following the steps explained on this website (http://www.bostongis.com/?content_name=postgis_sharpmap_tut01), and finally I have configured GDAL using this information (http://cgraefe.wordpress.com/).

PostGis is configured succesfully because the project get the values from the database. But when the project try to show de map, an error occurs. It used images with .sid extensions, for that reason I have to use gdal. The project throw an error when execute this line of code: 

     mapaProcesado = new GdalRasterLayer(((FileInfo)ficheros[0]).Name, ((FileInfo)ficheros[0]).FullName);

Error: An exception occurred in the type initializer 'SharpMap.Layers.GdalRasterLayer'

But the line is not the problem, because with the .dlls generates by the old SharpMap the project works fine. But when I try to execute the project using the .dlls generated with SharpMap from 2010.10.21 the project does not work.

Can someone help me? It is very important.

Thanks in advance!