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

etl/mapping graph tools build all layers at once #147

Merged
merged 1 commit into from
Jan 21, 2020

Conversation

nyurik
Copy link
Member

@nyurik nyurik commented Dec 19, 2019

generate-etlgraph and generate-mapping-graph can now automatically determine if the file
is a tileset or a layer yaml, and if tileset, will generate all needed image files for all layers.

This makes usage of this utility much faster for the whole tileset.

One unintended consequence is that it found that we have been using obsolete fields instead of columns in the imposm3 files everywhere except in https://github.com/openmaptiles/openmaptiles/blob/f3667170f68c4c3574a1c5bfd2d7830781ca8c4f/layers/transportation/mapping.yaml#L376 (transportation). Will submit a PR to change all fields.

@nyurik nyurik changed the title generate-etlgraph generate all layers at once etlgraph & mapping tools to build all layers at once Dec 20, 2019
@nyurik nyurik changed the title etlgraph & mapping tools to build all layers at once etl/mapping graph tools build all layers at once Dec 20, 2019
@nyurik nyurik force-pushed the multi-etl branch 4 times, most recently from 8098528 to 43d0386 Compare December 20, 2019 05:35
nyurik added a commit to nyurik/openmaptiles that referenced this pull request Dec 20, 2019
Requries openmaptiles/openmaptiles-tools#147

quicker and cleaner diagram image generation.
Remove etl-graph and mapping-graph targets - redundant

Several images have been updated due to a more inclusive mapping scan
nyurik added a commit to nyurik/openmaptiles that referenced this pull request Dec 20, 2019
Requires openmaptiles/openmaptiles-tools#147

quicker and cleaner diagram image generation.
Remove etl-graph and mapping-graph targets - redundant

Several images have been updated due to a more inclusive mapping scan
nyurik added a commit to nyurik/openmaptiles that referenced this pull request Jan 19, 2020
Requires openmaptiles/openmaptiles-tools#147

quicker and cleaner diagram image generation.
Remove etl-graph and mapping-graph targets - redundant

Several images have been updated due to a more inclusive mapping scan
@nyurik nyurik requested a review from TomPohys January 20, 2020 17:08
generate-etlgraph and generate-mapping-graph can now automatically determine
if the file is a tileset or a layer yaml, and if tileset, will generate all
needed image files for all layers.

This makes usage of this utility much faster for the whole tileset.

Also both utilities can do binary comparisons with the existing files,
and raise an error if differ.

Minor breaking change:  .dot files are not created by default unless --keep
and the .dot files no longer have extension. No .svg is generated by default.

Extra: added unit tests for mapping graph.
@nyurik nyurik merged commit da43a2a into openmaptiles:master Jan 21, 2020
@nyurik nyurik deleted the multi-etl branch January 21, 2020 15:14
nyurik added a commit to nyurik/openmaptiles that referenced this pull request Jan 21, 2020
Requires openmaptiles/openmaptiles-tools#147

quicker and cleaner diagram image generation.
Remove etl-graph and mapping-graph targets - redundant

Several images have been updated due to a more inclusive mapping scan
nyurik added a commit to nyurik/openmaptiles that referenced this pull request Jan 22, 2020
Requires openmaptiles/openmaptiles-tools#147

quicker and cleaner diagram image generation.
Remove etl-graph and mapping-graph targets - redundant

Several images have been updated due to a more inclusive mapping scan
nyurik added a commit to openmaptiles/openmaptiles that referenced this pull request Jan 23, 2020
quicker and cleaner diagram image generation.
Remove etl-graph and mapping-graph targets - redundant

Also, the obsolete "fields" is still in Imposm's code and both names are accepted,
but "fields" is not documented anywhere (PR submitted), and could be removed at any moment.

Our docs were not supporting it until this PR, so renaming it at the same time.

Several images have been updated due to a more inclusive mapping scan
Requires openmaptiles/openmaptiles-tools#147 (merged)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants