tilezen / joerd

Joerd can be used to download, merge and generate tiles from digital elevation data
MIT License
323 stars 49 forks source link

S3 bucket download to linux issue #216

Closed Adithya-Devops closed 8 months ago

Adithya-Devops commented 8 months ago

Hi, I've been using the docker image (interline/planetutils:release-v0.4.11) for a while to download tif files(elevation tile download) into Ubuntu 20.04 server. Whenever i download the files from S3 using the docker image interline/planetutils:release-v0.4.11, i keep on getting empty files. Kindly can anyone help me with this issue. I have shared the details below. Docker command :- docker run --rm -v ${PWD}/data:/data -t interline/planetutils:release-v0.4.11 elevation_tile_download --outpath=data/elevation --bbox=68.1766451354,7.96553477623,97.4025614766,35.4940095078 --zoom=12

tif unsupported Tif file
mtmail commented 8 months ago

http fails, https seems to work

http://s3.amazonaws.com/elevation-tiles-prod/geotiff/12/2823/1615.tif https://s3.amazonaws.com/elevation-tiles-prod/geotiff/12/2823/1615.tif

Adithya-Devops commented 8 months ago

https://s3.amazonaws.com/elevation-tiles-prod/geotiff/12/2823/1615.tif

But this is command is being performed by the docker image. How can i change that?

iandees commented 8 months ago

We didn't create that docker image. Try looking for the code contained in it.

Adithya-Devops commented 8 months ago

@iandees But there's no option in the code where we can change the S3 url from http to https. This is the image :- interline/planetutils:release-v0.4.11 Can you help me in modification of the code?

mtmail commented 8 months ago

Have you contacted the authors of that image?

iandees commented 8 months ago

I recommend filing a pull request with the authors of the image. You can find the code here: https://github.com/interline-io/planetutils/blob/master/planetutils/elevation_tile_downloader.py#L53

Adithya-Devops commented 8 months ago

I recommend filing a pull request with the authors of the image. You can find the code here: https://github.com/interline-io/planetutils/blob/master/planetutils/elevation_tile_downloader.py#L53

I had already requested for a pull request, but as there was no response from there side i thought of enquiring about it over here.