hongfaqiu / TIFFImageryProvider

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

Cannot Open TIF File from Local #27

Closed aspandaburkut closed 4 months ago

aspandaburkut commented 4 months ago

error

When I write the code below I faced up with this issue. I saw your comment in one of your issues "Alignment issues when source cog is in non-native projection #16 " that I switch to "WebMercatorTilingScheme" from tileXYToRectangle. And I thought you forgot to update the repo. Could you help me with this issue.

const provider = TIFFImageryProvider.fromUrl("https://stafs-cogs.s3.ap-southeast-2.amazonaws.com/Whian_Whian_TCI_4326_cog.tif");
viewer.imageryLayers.addImageryProvider(provider); 
aspandaburkut commented 4 months ago

I have been forgotten to use await keyword.