Exception while using GDAL in C#

后端 未结 8 518
囚心锁ツ
囚心锁ツ 2020-12-11 02:35

I started to use gdal_csharp dll in my application and read a geotiff file. but it says:

The type initializer for \'OSGeo.GDAL.GdalPINVOKE\'         


        
8条回答
  •  爱一瞬间的悲伤
    2020-12-11 03:00

    Have you added the path to your GDAL libraries to your PATH environment variable? I downloaded my files from http://vbkto.dyndns.org/sdk/?_sm_au_=iVVqjsHS2n46WP00 and here's my path: C:\libs\release-1600-gdal-1-9-mapserver-6-2\bin.

提交回复
热议问题