-
Notifications
You must be signed in to change notification settings - Fork 12
[Minor] Division updates #294
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
Conversation
|
Some feedback on these new fields:
|
|
We discussed this change in the divisions task force meeting this morning, a few comments about these changes:
If this works for the theme and doesn't muddle property usage, I can add a new commit to change the name of the |
|
since the accepted hierarchy of big ➕ 1️⃣ to huge thanks @stepps00 for digging in deep here, lets ship some code! |
I'm in a agreement with Jonah, and love the |
@stepps00 do it seems you are suggesting to repurpose |
That makes the most sense to me. If we leave the
The better approach seems to be flagging maritime and land values separately from any "place" types. But @vcschapp curious what you think here. |
|
The divisions task force discussed this pull request this morning; here is a summary of the changes being suggested:
I've also added definitions and examples for enum values and updated |
|
@stepps00 can we decouple the 3 sets of changes into 3 PRs? The change-groups I see are:
The reason I'm suggesting decoupling is I think each can be applied independently and its easier then to get smaller units of change approved, since one thing that doesn't work won't block two that does. |
| is_rendering: | ||
| description: | ||
| A boolean, 0 or 1, to indicate whether or not the feature | ||
| geometry is intended for map rendering and cartographic | ||
| display purposes. This flag is typically set to 1 on | ||
| land-based features and boundaries that are clipped to land. | ||
| is_processing: | ||
| description: |
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.
- Documentation: Booleans are
trueorfalsein JSON schema, not 0/1! - Need type.
- I think these are meant to be on division area/boundary?
- We should push ourselves a bit harder on the naming.
Category
What kind of change is this?
Please select one of the following four options.
Consult Pull request merging criteria for a description of each category.
Description
This pull request adds three new fields for use in the divisions theme -
prominence,is_rendering, andis_processing. This also adds context to an existing column,class, which would be reworked to add more specific subtype detail.class: This field would explicitly call out the type of locality (hamlet, city, village, etc.) being represented. As a v1, we'd essentially repurpose thelocal_typeen value to create this enum. In the future, additional types could be defined and added, like 'megacity' for example.prominence: Similar to a ranked hierarchy for localities, this field would rank the significance of a locality (Overture's opinion of the importance of a city) based on factors like population, capital status, and type. The use cases for this new field would include helping drive cartographic display.The value of this field could be an integer, where a lower number indicates a high significance/importance.
is_processing: A boolean to indicate whether or not a feature geometry should be used for processing purposes. Maritime geometries and geometries used for processing would receive a1value.is_rendering: A boolean to indicate whether or not a feature geometry should be used for rendering purposes. Land-clipped geometries and geometries used in map rendering would receive a1value.I've also added definitions and examples for enum values and updated defs.yaml as needed. cc @DavidKarlas @jonahadkins, I'll review this with the schema task force and merge this once approved.
Reference
https://github.com/OvertureMaps/tf-admin/issues/82
Testing
Checklist
Checklist of tasks commonly-associated with schema pull requests. Please review the relevant checklists and ensure you do all the tasks that are required for the change you made.
Abut is not intended to test propertyA's validity, and you made a schema change that invalidates propertyAin that counterexample, fix the counterexample to align it with your schema change.Documentation Website
Update the hyperlink below to put the pull request number in.
Docs preview for this PR.