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

Add prominence #302

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ properties:
name: A country division that has a parent ID, which is not allowed
parent_division_id: counterexample:division:some-parent-division
ext_expected_errors:
- "[S#/properties/properties/allOf/2/then]: not failed"
- "[S#/properties/properties/allOf/3/then]: not failed"
31 changes: 31 additions & 0 deletions examples/divisions/division/prominence.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
id: example:division:locality:dk
type: Feature
geometry:
type: Point
coordinates: [12.0819247, 55.6433478]
properties:
theme: divisions
type: division
version: 0
subtype: locality
local_type:
en: city
names:
primary: Roskilde
sources:
- property: ""
dataset: OpenStreetMap
record_id: N21040334
country: DK
hierarchies:
- - division_id: example:division:country:dk
subtype: country
name: Denmark
capital_of_divisions:
- division_id: example:division:country:dk
subtype: country
parent_division_id: example:division:country:dk
population: 50781
cartography:
prominence: 5
9 changes: 9 additions & 0 deletions schema/defs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,15 @@ description: Common schema definitions shared by all themes
title: cartography
type: object
properties:
prominence:
description: >-
Represents Overture's view of a place's significance or importance.
This value can be used to help drive cartographic display of a
place and is derived from various factors including, but not
limited to: population, capital status, place tags, and type.
type: integer
minimum: 0
maximum: 100
min_zoom:
description: >-
Recommended minimum tile zoom per the Slippy Maps convention.
Expand Down
1 change: 1 addition & 0 deletions schema/divisions/division.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ properties: # JSON Schema: Top-level object properties.
allOf:
- "$ref": ../defs.yaml#/$defs/propertyContainers/overtureFeaturePropertiesContainer
- "$ref": ../defs.yaml#/$defs/propertyContainers/namesContainer
- "$ref": ../defs.yaml#/$defs/propertyContainers/cartographyContainer
- if:
properties:
subtype: { enum: [country] }
Expand Down
Loading