geo-data / cesium-terrain-builder

A C++ library and associated command line tools designed to create terrain tiles for use in the Cesium JavaScript library
Other
706 stars 338 forks source link

Errors: 1) Integer overflow and 2) Could not read heights from raster #88

Open swiss-knight opened 4 years ago

swiss-knight commented 4 years ago

Hello,

I freshly cloned the ctb repository here and build the tools according to the doc for Ubuntu 18.04 (5.0.0-37-generic x86_64 GNU/Linux).

Here is the version given by the -V flag after the build process:

$ ctb-tile -V
0.4.1

My GDAL version is:

$ gdalinfo --version
GDAL 2.4.0, released 2018/12/14

And here is the command that raise the 2 errors but at the really end, after ~2h of processing a large (~50 GB) single DEM file in the Erdas HFA file format (https://gdal.org/drivers/raster/hfa.html) composed by a *.img along with a *.ige file.

$ ctb-tile -o terrain-tiles/ --profile mercator -f Terrain DTM_50cm_EPSG4326.img
0...10...20...30...40...50...60...70...80...90...ERROR 1: Integer overflow : nSrcXSize=35014, nSrcYSize=15617
ERROR 1: IReadBlock failed at X offset 0, Y offset 0: Integer overflow : nSrcXSize=35014, nSrcYSize=15617
Error: Could not read heights from raster
ERROR 1: Integer overflow : nSrcXSize=45459, nSrcYSize=15617
ERROR 1: IReadBlock failed at X offset 0, Y offset 0: Integer overflow : nSrcXSize=45459, nSrcYSize=15617
Error: Could not read heights from raster
ERROR 1: Integer overflow : nSrcXSize=45459, nSrcYSize=15072
ERROR 1: IReadBlock failed at X offset 0, Y offset 0: Integer overflow : nSrcXSize=45459, nSrcYSize=15072
Error: Could not read heights from raster
ERROR 1: Integer overflow : nSrcXSize=45459, nSrcYSize=15617
ERROR 1: IReadBlock failed at X offset 0, Y offset 0: Integer overflow : nSrcXSize=45459, nSrcYSize=15617
Error: Could not read heights from raster