Scott, Have you called GdalConfiguration.ConfigureGdal() and/or GdalConfiguration.ConfigureOgr() at the beginning of your code?
Best regards, Tamas Scott Senften <sc...@senften.com> ezt írta (időpont: 2018. okt. 26., P, 23:59): > > My apologies; I'm guessing this is well trod ground, but I couldn't find a > good search for the archives and, on inspection, I couldn't find an > appropriate topic. > > I'm trying to build one of the GDAL swig c# examples, specifically I have > tried both OGRGEOS and ORSTransform. I've installed GDAL.NET 2.3.1 from > nuget (https://www.nuget.org/packages/GDAL.NET/). My projects build but > both throw System.TypeInitializationException at runtime. > > For OGRGEOS, the error is > >> Exception thrown: 'System.TypeInitializationException' in ogr_csharp.dll >> An unhandled exception of type 'System.TypeInitializationException' >> occurred in ogr_csharp.dll >> The type initializer for 'OSGeo.OGR.OgrPINVOKE' threw an exception. >> >> The program '[34872] dotnet.exe' has exited with code -1073741510 >> (0xc000013a). >> > > I'm guessing that I either have a configuration issue or a dependency > issue with the underlying native code, but, at this point, I'm just > guessing. > > Any help would be appreciated, > > Scott > > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev