具有地理空间轴的数据着色器

Datashader with geospatial axes

我正在尝试将使用 Python Datashader 生成的图像添加到 Mapbox 图层作为叠加层 (https://www.mapbox.com/mapbox-gl-js/example/image-on-a-map/)。

但是结果 a misaligned layers like this (绿色来自Datashader,灰色来自Mapbox)

我想通过指定像 tf.shade(agg, epsg=3857)

这样的 EPSG 来创建带有地理空间轴的叠加图像

有什么办法吗?

谢谢。

Datashader doesn't reproject your data, so if you want to end up with an image in epsg 3857 coordinates, first reproject your data into that coordinate system, before calling Datashader in the first place. You can use Cartopy for that.

我相信这条评论是准确的答案,所以我引用它来关闭 post。