-
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
Makes queries per-table #227
Conversation
192085a
to
7330cae
Compare
7330cae
to
91dfa8c
Compare
|
||
|
||
def convert_source_data_to_feature_layers(rows, layer_data, bounds, zoom): | ||
# TODO we might want to fold in the other processing into this |
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 this a note for the glorious future or for the current sprint?
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.
This would have been a performance improvement, if we find that when we run it on dev it's too slow. If it's unnecessary, it might be better to hold off on this since it might change with phase 3 anyway.
for layer_datum in layer_data: | ||
layer = layer_datum['name'] | ||
features = features_by_layer[layer] | ||
# TODO padded bounds |
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.
To support the MVT Buffered format or something additional?
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.
Yes, exactly.
tilequeue/process.py
Outdated
boundaries_geometry = row.pop('__boundaries_geometry__', None) | ||
assert geometry or boundaries_geometry | ||
|
||
common_props = row.pop('__properties__', None) or {} |
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 this the same thing as row.pop('__properties__', {})
?
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.
Oh, I see... the way it is at the moment handles the case where row['__properties__']
exists, but is None
. I feel like that's slightly non-obvious.
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.
I just confused myself too, so I expanded it out and added a comment in da19aa0.
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.
Looks good to me!
Connects to https://github.com/mapzen/tile-tasks/issues/267
Links up with tilezen/tileserver#110 and tilezen/vector-datasource#1352.