Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
swiss-knight opened this issue Dec 17, 2019 · 0 comments

Comments

@swiss-knight
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant