在unity中使用GDAL时提示
Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files
解决方法:
1.在Start()函数中加入以下代码,文件夹中放入gcs.csv所在的文件夹。
Gdal.SetConfigOption("GDAL_DATA", "D:/Project/CdEnjoy/study/OpenGisFile/OpenGisFile/Assets/StreamingAssets/data");
2.打包成exe.
3.以管理员方式运行一次exe。
GDAL_DATA路径配置成功。
