How to set the GDAL_DATA environment variable to point to the directory containing EPSG csv files?

后端 未结 5 651
故里飘歌
故里飘歌 2021-02-03 22:14

I want to wrap(re-project) one variable in this netcdf file.

D:\\ gdalwarp -t_srs EPSG:4326 NETCDF:"C:\\fie.nc":var "C:\\Desktop\\SM.img"
         


        
5条回答
  •  终归单人心
    2021-02-03 23:00

    I tried to set the GDAL_DATA variable programmatically(C#) and @turgay's solution didn't work for me. here I found the working way:

    OSGeo.GDAL.Gdal.SetConfigOption("GDAL_DATA", path+@"\gdal\data");
    

提交回复
热议问题