报错类型:
ERROR 1: PROJ: proj_create_from_wkt: Open of /home/wyc/software/anconda3/envs/torch_m40/share/proj failed
ERROR 1: PROJ: proj_create_from_database: Open of /home/wyc/software/anconda3/envs/torch_m40/share/proj failed
ERROR 1: PROJ: createGeodeticReferenceFrame: Open of /home/wyc/software/anconda3/envs/torch_m40/share/proj failed
解决方法:
将proj文件所在目录进行指引,放在gdal文件中
import os
os.environ['PROJ_LIB'] = '/home/wyc/software/anconda3/envs/torch_m40/share/proj'
os.environ['GDAL_DATA'] = '/home/wyc/software/anconda3/envs/torch_m40/share'