GDAL/OGR/OSR 坐标系ERROR 4: Unable to open EPSG support file gcs.csv osr.SpatialReference()

版权声明:转载请注明作者(独孤尚良dugushangliang)出处: https://blog.csdn.net/dugushangliang/article/details/89378613

 

代码如下:

import osgeo.osr as osr
 
srs = osr.SpatialReference()
srs.ImportFromEPSG(4326)

报错如下:
ERROR 4: Unable to open EPSG support file gcs.csv. Try setting the GDAL_DATA environment variable to point to the directory containing EPSG csv files.

具体办法请参阅:https://blog.csdn.net/dugushangliang/article/details/89377625

 

独孤尚良dugushangliang——著

你可能感兴趣的:(#,GDAL,ERROR,4,python,未知的空间参考,epsg)