Marciolegal wrote:
In fact I am working with C# but I have done as you said.I get this error
What exactly is the error you're getting? Can you post more details?Thank you so much,
In fact I am working with C# but I have done as you said.I get this error
error
An unhandled exception of type 'System.TypeInitializationException' occurred in WindowsFormsApplication1.exe
Additional information: The type initializer for 'DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider' threw an exception.
this is how I use it,It trows error at the first line GdalRasterProvider gdal = new DotSpatial.Data.Rasters.GdalExtension.GdalRasterProvider();
var myraster = gdal.Open(@"D:\M-Attraction_dem\30-s2-t1.tif");
the problem is I can not figure out what is error or why is?:(