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

[WIP] Add spatial index container #313

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions examples/buildings/building-polygon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ properties:
- property: /properties/height
dataset: metaLidarExtractions,
confidence: 0.95
h3: 08b2aa845a199fff
1 change: 1 addition & 0 deletions schema/buildings/building.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ properties:
- "$ref": ../defs.yaml#/$defs/propertyContainers/namesContainer
- "$ref": ../defs.yaml#/$defs/propertyContainers/levelContainer
- "$ref": ./defs.yaml#/$defs/propertyContainers/shapeContainer
- "$ref": ../defs.yaml#/$defs/propertyContainers/spatialIndexingContainer
properties:
subtype:
description: >-
Expand Down
31 changes: 31 additions & 0 deletions schema/defs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -371,3 +371,34 @@ description: Common schema definitions shared by all themes
of features with a higher number.
type: integer
default: 0
spatialIndexingContainer:
title: spatial indexing
description: Various spatial indexing systems
properties:
bbox:
title: Bounding box that fully contains the feature.
type: object
properties:
xmin:
type: number
minimum: -180
maximum: 180
xmax:
type: number
minimum: -180
maximum: 180
ymin:
type: number
minimum: -90
maximum: 90
ymax:
type: number
minimum: -90
maximum: 90
h3:
title: H3 Index
description: h3 hexagonal indexing system
type: string
minLength: 15
maxLength: 16
pattern: ^[0-9A-Fa-f]{15,16}?$
Loading