hongfaqiu / TIFFImageryProvider

Load GeoTIFF/COG(Cloud optimized GeoTIFF) on Cesium
https://tiff-imagery-provider.opendde.com/?panel=layer
MIT License
62 stars 13 forks source link

经过测试,在2.1.1版本DEMO,3 band RBG byte Eight bit unsigned integer 无法正确渲染显示 #3

Closed xmsuperman closed 1 year ago

xmsuperman commented 1 year ago

example url

hongfaqiu commented 1 year ago

正要尝试解决这个bug

xmsuperman commented 1 year ago

现在demo的默认样式添加进tif数据源是无效的,无论单通还是多通都是无法正确显示的

hongfaqiu commented 1 year ago

已发现这个问题,下次提交一起解决了

xmsuperman commented 1 year ago

作者辛苦

hongfaqiu commented 1 year ago

v2.2.0已修复,添加了convertToRGB配置,默认加载时,多波段tif将优先尝试rgb模式加载,demo中添加了相关示例 image

xmsuperman commented 1 year ago

20230421185248

[ 20230421185849 ]

附上测试数据Link

https://sentinel-cogs.s3.us-west-2.amazonaws.com/sentinel-s2-l2a-cogs/36/Q/WD/2020/7/S2A_36QWD_20200701_0_L2A/B04.tif

刚测试,2.20版本demo在增加单波段数据时报错。

我再试一下用代码增加单波段。

hongfaqiu commented 1 year ago

抱歉,是我的代码有误,forEach中的异步方法没有做await处理,已修复