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
Reproducing TileOutsideBounds errors #130
Comments
If you can't reproduce this, then it seems the only thing that could be different is the
|
|
At the end of the first post I shared a link that doesn't work. That includes one x/y/z and a public mosaic
Hmm good question |
wow it works outside the titiler app using the same dependencies... Here's how I opened the titiler lambda docker container to test using the same code: # export AWS credentials
dshell titiler-lambda sh Inside docker shell: cd /var/task
export AWS_REQUEST_PAYER="requester"
python Inside python shell: from cogeo_mosaic.backends import MosaicBackend
url = 's3://tmp-us-west-2-kylebarron/tmp/naip-analytic-mosaic.json.gz'
z, x, y = 16, 12406, 25717
with MosaicBackend(url) as mosaic:
tile=mosaic.tile(x, y, z)
|
This is all due to setting When I'm inside the docker shell as above and run export AWS_REQUEST_PAYER="requester"
export CACHE_CONTROL="public,max-age=3600"
export CPL_TMPDIR="/tmp"
export CPL_VSIL_CURL_ALLOWED_EXTENSIONS=".tif,.TIF"
export GDAL_CACHEMAX="25%"
export GDAL_DISABLE_READDIR_ON_OPEN="EMPTY_DIR"
export GDAL_HTTP_MERGE_CONSECUTIVE_RANGES="YES"
export GDAL_HTTP_MULTIPLEX="YES"
export GDAL_HTTP_VERSION="2"
export MAX_THREADS="1"
export PYTHONWARNINGS="ignore"
export VSI_CACHE="TRUE"
export VSI_CACHE_SIZE="536870912"
But when you unset
|
fixed in rio-tiler cogeotiff/rio-tiler#281 Thanks @kylebarron 🙏 |
I did this exact set of instructions (twice), and was able to reproduce a
TileOutsideBounds
errorClone repo
git clone https://github.com/developmentseed/titiler cd titiler
Build docker image:
docker build --tag titiler-lambda:latest . -f Dockerfiles/lambda/Dockerfile --no-cache
Extract package.zip locally
Install serverless-offline
yarn add serverless-offline # or npm install serverless-offline
Paste the following into
serverless.yml
locally in the titiler folder (as an aside, I'd consider adding a page in the docs for deploying with Serverless framework basically with these steps)..Content
Start
serverless-offline
Go to this address: (note this may take a little while to load the first time because
serverless-offline
does something with docker in the background). This is pulling from a mosaic that should be fully public.And I get:
The text was updated successfully, but these errors were encountered: