用ipyleaflet覆盖GeoTIFF图像

我想通过下面的代码在ipyleaflet中使用ImageOverlay函数,它仅显示没有geotiff层的openstreetmap,我该怎么办?

from ipyleaflet import Map,ImageOverlay

m = Map(center=(31,48),zoom=9)
image = ImageOverlay(url="D:/aa//IDW.tif",bounds=((30,46.1),(32.5,48.8)))

m.add_layer(image);
m
patrxx 回答:用ipyleaflet覆盖GeoTIFF图像

您只能添加相对本地路径(如@Darwin1871 所述)

这是来自the docs的快照

enter image description here

本文链接:https://www.f2er.com/3099189.html

大家都在问