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

Reject invalid coordinates with a helpful message #35

Closed
zerebubuth opened this issue Sep 11, 2018 · 0 comments
Closed

Reject invalid coordinates with a helpful message #35

zerebubuth opened this issue Sep 11, 2018 · 0 comments
Assignees

Comments

@zerebubuth
Copy link
Member

A web mercator tile z/x/y can only exist if x or y are at least 0 and less than 2**z. We can use this information to quickly respond to requests outside of that range for either coordinate (i.e: without needing to check S3). We can also respond to requests where z is negative or larger than some configurable value.

We should still respond with a 404, but can include a helpful message so that clients get more information about why the tile isn't present.

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

2 participants