<div dir="ltr">Scott,<div><br></div><div>Have you called GdalConfiguration.ConfigureGdal() and/or GdalConfiguration.ConfigureOgr() at the beginning of your code?</div><div><br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div><br></div><div><br></div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr">Scott Senften <<a href="mailto:scott@senften.com">scott@senften.com</a>> ezt írta (időpont: 2018. okt. 26., P, 23:59):<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br></div><div>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.</div><div><br></div><div>I'm trying to build one of the GDAL swig c# examples, specifically I have tried both OGRGEOS and ORSTransform. I've installed <a href="http://GDAL.NET" target="_blank">GDAL.NET</a> 2.3.1 from nuget (<a href="https://www.nuget.org/packages/GDAL.NET/" target="_blank">https://www.nuget.org/packages/GDAL.NET/</a>). My projects build but both throw System.TypeInitializationException at runtime. <br></div><div><br></div><div>For OGRGEOS, the error is</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Exception thrown: 'System.TypeInitializationException' in ogr_csharp.dll<br>An unhandled exception of type 'System.TypeInitializationException' occurred in ogr_csharp.dll<br>The type initializer for 'OSGeo.OGR.OgrPINVOKE' threw an exception.<br><br>The program '[34872] dotnet.exe' has exited with code -1073741510 (0xc000013a).<br></blockquote><div><br></div><div>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.</div><div><br></div><div>Any help would be appreciated,</div><div><br></div><div>Scott<br></div><br></div></div></div></div></div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a></blockquote></div></div></div>