-
Notifications
You must be signed in to change notification settings - Fork 19
feat(cli-vector): adjust the layers assigned to each schema layer BM-1299 #3462
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
feat(cli-vector): adjust the layers assigned to each schema layer BM-1299 #3462
Conversation
|
One moment. Something doesn't seem right about the |
Before - In this commit, I had adjusted the logic for After - In this commit, I've corrected the logic by pre-processing "0" valued properties as In the following screenshots, we can see that all of the expected
|
# [8.4.0](v8.3.0...v8.4.0) (2025-06-25) ### Bug Fixes * **cli-vector:** Fix the stac item format missing datetime in properties. BM-1317 ([#3464](#3464)) ([6c7719f](6c7719f)) * **cli-vector:** revert polylabel version to 1.1.0 BM-1309 ([#3467](#3467)) ([e2039fa](e2039fa)) ### Features * **cli-config:** Support vector preview links and reports for NZTM. BM-1253 ([#3463](#3463)) ([5ab6a5b](5ab6a5b)) * **cli-vector:** adjust the layers assigned to each schema layer BM-1299 ([#3462](#3462)) ([0770163](0770163))
…1299 (#1193) This PR is a sibling of [this PR] in the **basemaps** repository. [this PR]: linz/basemaps#3462 --- ### Motivation This PR's [sibling] re-homes various datasets from one Shortbread layer to another. It also adjusts the tags for various datasets. We need to update the affected style entries in the `topographic-v2` stylesheet to reflect the changes. [sibling]: linz/basemaps#3462 ### Modifications - **labels-v2** - Adjusted the `filter` and `source-layer` for **rifle range** features to reflect its new tag and Shortbread layer. - **topographic-v2** - Adjusted the `filter` and `source-layer` for **rifle range** features to reflect its new tag and Shortbread layer. - Adjusted the `filter` and `source-layer` for **ford** features to reflect its new tag and Shortbread layer. - Adjusted the `filter` for **historic site** features to reflect its new tag. - Adjusted the `filter` for **ladder** features to reflect its new tag. - **topolite-v2** - _No changes._ ### Verification - **1st attempt ([Argo](https://argo.linzaccess.com/workflows/argo/test-basemaps-vector-etl-shortbread-7szck))** - Problems: - Code-side issue. A lot of features under the `place_labels` layer are [missing from the map]. - **2nd attempt ([Argo](https://argo.linzaccess.com/workflows/argo/test-basemaps-vector-etl-shortbread-mfk5m))** - Problems: - Code-side issue. We've noticed that the Airport labels are on the wrong place. - Resolved: - Code-side issue. All of the features under the `place_labels` layer are now [displayed from the map]. - [Explanation][1] - **3rd attempt ([Argo](https://argo.linzaccess.com/workflows/argo/basemaps-vector-etl-shortbread-f52gq))** - Resolved: - Code-side issue. All of the Airport labels are now [positioned correctly on the map]. - [Explanation][2] <!-- external links --> [missing from the map]: https://basemaps.linz.govt.nz/@-44.6569182,168.5341070,z5?style=topographic-v2&i=topographic-v2&config=TmVmbYRQjL9T2JWgyaSie193b4D1qZnBD8hjaSqPFYSsEvEYYhaGYKrcjvsX1rDa8Rg42PReNbTHS4EK5h81M7foD7FFEegLN4mQz1di15yxdgjFRsr5LNmVQ6RFCFs&debug=true [displayed from the map]: https://basemaps.linz.govt.nz/@-44.6569182,168.5341070,z5?style=topographic-v2&i=topographic-v2&config=TmVmbYRQjL9T2JWgyaSie193b4D1qZnBD8hjaSqPFYSsEvEYYhaGYKrcjhEfXv3EK4AaPrUWqcZ4yq7mfih5opwKDAqtRdCcNF77exzMeyAZKrWAKVNf2Yx4mC4xfzH&debug=true [positioned correctly on the map]: https://basemaps.linz.govt.nz/@-41.3275878,174.8088966,z14?style=topographic-v2&i=topographic-v2&config=TmVmbYRQjL9T2JWgyaSie193b4D1qZnBD8hjaSqPFYSsEvEYYhaGYKrck9sbtrzRGUV1RMdVV7hv5TNfkSghCTZXt6rPYifGdjc8vgvmKhhjCGqRPyw1vPDAHJkwvpZ&debug=true [1]: linz/basemaps#3462 (comment) [2]: linz/basemaps#3467


This PR is a sibling of this PR in the basemaps-config repository.
Motivation
As a general rule, all features assigned to a particular Shortbread layer should have the same geometry type, with exceptions (i.e. the
contoursandlandlayers).Currently, we have a few Shortbread layers that comprise features of differing geometry types (e.g.
PointsandPolygons, rather thanPointsonly). We also have some datasets that are duplicated across layers and that are not targeted by any style entries. Such duplicates can be removed.Modifications
I have identified and resolved the following inconsistencies for the following Shortbread layers:
pois
The
poislayer containsPointandPolygonfeatures. It should only containPointfeatures.50326-nz-rifle-range-polygons-topo-150kdataset to thesiteslayer and updated the stylesheet.I've changed the tags for the following features to more appropriate OSM key-value pairs:
Pointfeatures and updated the stylesheet.Pointfeatures and updated the stylesheet.streets
The
streetslayer containsLineString,PointandPolygonfeatures. It should only containLineStringfeatures.Moved the following datasets to the
poislayer and updated the stylesheet:50275-nz-ford-points-topo-150k50080-nz-chatham-island-ford-points-topo-150kRemoved the following datasets as they already live under the
street_polygonslayer and are not targeted by any style entries under thestreetslayer:airports:
50237-nz-airport-polygons-topo-150k50063-nz-chatham-island-airport-polygons-topo-150k52231-cook-islands-airport-polygons-topo-125k-zone452168-niue-airport-polygons-topo-150krunways:
50333-nz-runway-polygons-topo-150k50914-nz-kermadec-is-runway-polygons-topo-125k52302-cook-islands-runway-polygons-topo-125k-zone352268-cook-islands-runway-polygons-topo-125k-zone452211-cook-islands-runway-polygons-topo-150k-zone452190-niue-runway-polygons-topo-150k50103-nz-chatham-island-runway-polygons-topo-150kI have adjusted the 'special tagging' logic for the following Shortbread layers:
place_labels
The logic for handling
place_labelsfeatures currently preserves null-like values for certain properties. For example:I've adjusted the logic so that properties with values of
"0"are interpreted asundefined. This is desired as such properties are already optional. This now allows us to discard such property key-value pairs instead of carrying them through.Verification
I built this pull request as a container and triggered a Vector ETL Argo workflow using it. Once the workflow finished, I updated the topographic-v2 tileset to point to the
2193and3857Cotar files generated by the workflow. This gave me previews links from which I could check that my schema and stylesheet changes were in-sync:Previews
labels-v2
topographic-v2
Screenshots
sites: rifle range
pois: ford
pois: historic sites
pois: ladder points