google / earthenterprise

Google Earth Enterprise - Open Source
Apache License 2.0
2.67k stars 887 forks source link

Fusion cannot process very high level images #1925

Closed tst-lsavoie closed 3 years ago

tst-lsavoie commented 3 years ago

Describe the bug

Fusion will refuse to process images that are higher than a certain resolution (i.e., zoom level 24). The reason for this is because the number of pixels and tiles at zoom levels higher than 24 starts to be too large to store in a 32-bit integer. However, instead of rejecting such imagery, Fusion could simply downsample it to level 24 as a part of the reprojection that it's already doing.

To Reproduce

Create a resource from the attached image and try to build it in Fusion. The build will fail and the logs will show an error similar to the one below:

Fusion Fatal:   input pixel size with reprojection: (xy) 0.0185 m, 0.0185 m.
This tool supports pixel size upto: (xy) 0.0186 m, 0.0186 m.
You may down-sample the imagery and retry.

toohighres.tiff.zip

Expected behavior

The build succeeds.

tst-lsavoie commented 3 years ago

Closed via PR #1926