Skip to content

Commit

Permalink
turning osmTags into source tags
Browse files Browse the repository at this point in the history
  • Loading branch information
jenningsanderson committed Sep 14, 2023
1 parent 5db5e0c commit 65360ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
23 changes: 1 addition & 22 deletions schema/context/defs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,6 @@ title: Context layer properties
description: Common schema definitions the context theme (primarily from OSM)
"$defs":
propertyDefinitions:
osmType:
description: "Type of OSM element"
type: string
enum:
- node
- way
- relation
osmId:
description: OSM Element ID
type: integer
osmVersion:
description: Version of element in OSM.
type: integer
osmTags:
description: Original tags from OSM.
type: object
wikidata:
description: A wikidata ID if available
type: string
Expand All @@ -28,11 +12,6 @@ description: Common schema definitions the context theme (primarily from OSM)
title: "OSM Properties"
description: OSM Properties
type: object
# required: [osmId, osmType, osmVersion, osmTags]
properties:
# Commenting these out because they can be more accurately embedded into the sources?
# osmType: { "$ref": "#/$defs/propertyDefinitions/osmType" }
# osmId: { "$ref": "#/$defs/propertyDefinitions/osmId" }
# osmVersion: { "$ref": "#/$defs/propertyDefinitions/osmVersion" }
osmTags: { "$ref": "#/$defs/propertyDefinitions/osmTags" }
sourceTags: { "$ref": "../defs.yaml#/$defs/propertyDefinitions/sourceTags" }
wikidata: { "$ref": "#/$defs/propertyDefinitions/wikidata" }
3 changes: 3 additions & 0 deletions schema/defs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,9 @@ description: Common schema definitions shared by all themes
country:
description: ISO 3166 alpha2 country code
type: string
sourceTags:
description: Any attributes/tags from the original source data that should be passed through.
type: object
propertyContainers:
overtureFeaturePropertiesContainer:
title: Overture Properties
Expand Down

0 comments on commit 65360ea

Please sign in to comment.