使用python 读取tiff后,发现其中的'crs': None, 并且python生成的tiff导入arcgis中有:“Unknown Spatial Reference: the following data sources you added are missing spatial reference information.this data can be draw in arcmap but cannot be projected”,提醒。
之前遇到了这样的问题,稀里糊涂的解决后,今天又出现了,困扰了半天。后来想起是需要设置环境变量。又找到之前做的笔记:
https://blog.csdn.net/weixin_39282491/article/details/117927440 # Win10+Python3.8下的Geopandas和rasterio配置 # import os # os.environ['PROJ_LIB'] = r'E:\Anaconda3\Lib\site-packages\pyproj\proj_dir\share\proj' # os.environ['PROJ_LIB'] = r'D:\ProgramData\Anaconda\pkgs\proj-8.0.1-h1cfcee9_0\Library\share\proj' # os.environ['PROJ_LIB'] = r'D:\ProgramData\Anaconda\pkgs\proj-6.2.1-h9f7ef89_0\Library\share\proj
最后是改变了变量环境,解决问题