Quantcast
Channel: DotSpatial
Viewing all articles
Browse latest Browse all 3973

New Post: Using the Gdal extension from a script in F#

$
0
0
Marciolegal wrote:
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?:(

Viewing all articles
Browse latest Browse all 3973

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>