1

嗨,我想知道如何更改 tif 文件 crs,因为我想将我的 shapefile(称为 imd)覆盖到 tif 文件上,如果我不更改坐标,它们就无法合​​并。

这是代码:

import rasterio
src = rasterio.open('M:/lab3/man22.tif')
left, bottom, right, top = src.bounds
f, ax = plt.subplots(1, figsize=(6, 6))
ax.imshow(src.read(1), cmap='gray', extent=(left, right, bottom, top))
imd.plot(column='imd_score', cmap='Purples', 
         linewidth=0.1, alpha=0.75,ax=ax)

man22.tif 文件的 CRS 为:epsg=3857,imd.shp 为 27700。非常感谢您的帮助

4

0 回答 0