如何在 Python 中使用 Rasterio 中的 transform.from_bounds

问题描述 投票:0回答:0

我正在尝试从一些坐标设置边界:xmin、ymin、xmax、ymax,使用 Rasterio 和 transform.from_bounds。

我是这样设置的

transform = rasterio.transform.from_bounds(x_min, y_min, x_max, y_max, 0.00028, 0.00028)

问题是当我打印元数据或边界时,边界不是根据变换设置的,而只是仿射(1.0,0.0,0.0, 0.0、-1.0、0.0)。 我该如何正确设置?

python coordinates raster rasterio
© www.soinside.com 2019 - 2024. All rights reserved.