Python 3.x gis中边界盒的解析
我试图理解地球静止分析Python 3.x gis中边界盒的解析,python-3.x,geolocation,gis,raster,rio-tiler,Python 3.x,Geolocation,Gis,Raster,Rio Tiler,我试图理解地球静止分析 test_img_msk = "http://oin-hotosm.s3.amazonaws.com/5a95f32c2553e6000ce5ad2e/0/10edab38-1bdd-4c06-b83d-6e10ac532b7d.tif" test_img_msk_rast = rasterio.open(test_img_msk) print('test imag mask bounds ', test_img_msk_rast.bounds)
test_img_msk = "http://oin-hotosm.s3.amazonaws.com/5a95f32c2553e6000ce5ad2e/0/10edab38-1bdd-4c06-b83d-6e10ac532b7d.tif"
test_img_msk_rast = rasterio.open(test_img_msk)
print('test imag mask bounds ', test_img_msk_rast.bounds)
from rio_tiler.io import COGReader
with COGReader(test_img_msk) as cog:
print(cog.info())
上面的代码输出如下所示
output 1: test imag mask bounds BoundingBox(left=683715.3266400001, bottom=1718548.5702, right=684593.2680000002, top=1719064.90736)
output 2: bounds=BoundingBox(left=-61.287001876638215, bottom=15.537756794450583,
right=-61.27877967704677, top=15.542486503997608)
center=(-61.28289077684249, 15.540121649224096, 16)
minzoom=16 maxzoom=22
band_metadata=[('1', {}), ('2', {}), ('3', {})]
band_descriptions=[('1', ''), ('2', ''), ('3', '')]
dtype='uint8' nodata_type='None'
colorinterp=['red', 'green', 'blue']
scale=None offset=None colormap=None
overviews=[2, 4, 8, 16, 32, 64]
count=3 height=11666 width=19836 driver='GTiff'
我的问题是输出2中边界框left=683715.326640001和left=-61.287001876638215
之间的关系是什么。
如何解释这一点?请帮助您的数据集
test\u img\u msk
有一个投影坐标系,具体使用米的坐标单位
第二个边界框似乎位于不同的坐标系中,可能是地理坐标系,其中坐标单位为十进制度数
最后,您的左
边界是相同的位置,只是在不同的坐标系中
有关投影坐标系与地理坐标系的详细信息
编辑:
查看显示,使用
transform\u bounds
将边界框坐标从本机投影转换为GCS WGS84,感谢您的输入。如何检查第二个边界框所指的坐标系。@venkysmarty请查看我的编辑谢谢,现在提供的信息使我能够理解输出