-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add the ability to list individual tiles that should stay in the TOI #178
Conversation
Sample config: toi-prune:
redshift-uri: postgresql://redacted:redacted@localhost:5439/analytics
days: 30
s3:
bucket: mapzen-tiles-dev-us-east
date-prefix: 20170123
path: osm
layer: all
format: zip
always-include:
conus:
bbox: -124.8,24.8,-66.1,49.3
min_zoom: 10
max_zoom: 13
world:
bbox: -180.0,-85.06,180.0,85.06
min_zoom: 0
max_zoom: 9
tests:
tiles: [5/2/4, 5/7/8] |
Nice! |
elif 'tiles' in info: | ||
tiles = map(deserialize_coord, info['tiles']) | ||
tiles = map(coord_marshall_int, tiles) | ||
immortal_tiles.update(tiles) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I make a feature request? :) How about adding something like path
or file(s)
. We would expect that the file contains coordinates, one per line.
I'm expecting that when we add the tests, what we'll do is first run the script that prints them out. And then we can save that to a file and feed it into this. Maybe another option is to read it from stdin to avoid having the temporary file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in e17b902.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Is there an assumption that the list of tiles is always 512px (2x2)
metatile size?
…On Wed, Mar 29, 2017 at 2:30 PM, Ian Dees ***@***.***> wrote:
Merged #178 <#178>.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#178 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA0EOwocAXfINL90x7DCxse2TuSWKdPuks5rqs2CgaJpZM4MrANT>
.
|
Yea, good point. The tiles at this point are dumped straight into the TOI so they are assumed to be 512px. |
Follows #176, adds the ability to list individual tiles that should stay in the TOI