-
Notifications
You must be signed in to change notification settings - Fork 1
feat(kart-import): Add the config and fixups for carto_text. BM-1868 #393
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
Open
Wentao-Kuang
wants to merge
10
commits into
master
Choose a base branch
from
feat/import-carto-text-config
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
822a2cf
Add the config and fixups for carto_text
Wentao-Kuang ded3a46
Add unit tests and worddistance
Wentao-Kuang 788d2dd
Populate the example_point_id fixeup
Wentao-Kuang 20cf1d7
Add map_sheet theme for carto_text dependencies
Wentao-Kuang 8fbfcfb
Unit tests for example point id
Wentao-Kuang 28f5f55
Fix format
Wentao-Kuang 236c216
Fix format
Wentao-Kuang ea38af2
Refactory the logic for carto text example_point_id
Wentao-Kuang cefc59e
fix format
Wentao-Kuang 2a5001c
Add missing metadata in schema
Wentao-Kuang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
packages/kart-import/config/themes/nztopo50_carto_text.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: nztopo50_carto_text | ||
| target_repo: topographic-product-data | ||
| target_epsg: EPSG:2193 | ||
|
|
||
| datasets: | ||
| - source: | ||
| url: git@github.com:linz/topographic-source-data | ||
| dataset: linz_carto_text | ||
| name: linz_carto_text | ||
| depends_on_themes: [nztopo50_map_sheet, geographic_name, trig_point] | ||
| mapping: | ||
| t50_fid: null | ||
| example_point_id: { fixup: true } | ||
| full_text: $full_text | ||
| text_bend: $text_bend | ||
| text_char_spacing_distance: $t_c_s_d | ||
| text_colour: $text_colou | ||
| text_font: $text_font | ||
| text_height: $text_heigh | ||
| text_orientation: $text_orien | ||
| text_placement: $text_place | ||
| text_size_type: $txt_size_t | ||
| text_stretch_length: $txt_s_l | ||
| text_string: $text_strin | ||
| text_word_spacing_distance: $t_w_s_d | ||
| # Styling fields: filled by the carto_text_styling fixup below. | ||
| font: { fixup: true } | ||
| style: { fixup: true } | ||
| colour: { fixup: true } | ||
| size: { fixup: true } | ||
| placement: { fixup: true } | ||
| offset: { fixup: true } | ||
| textanchor: { fixup: true } | ||
| labelanchor: { fixup: true } | ||
| charplace: { fixup: true } | ||
| chardistance: { fixup: true } | ||
| worddistance: { fixup: true } | ||
| metadata: null | ||
| fixups: | ||
| # Populate the styling fields based on the mapped fields from carto_text_styling.csv | ||
| - fn: carto_text_styling | ||
| # Resolve example_point_id from geographic_name (by name) then trig_point (by code). | ||
| - fn: carto_text_example_point_id | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.