-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1dc2df2
commit 70b87d1
Showing
5 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
title: bathymetry | ||
--- | ||
import CodeBlock from '@theme/CodeBlock'; | ||
import JSONSchemaViewer from "@theme/JSONSchemaViewer"; | ||
import generateResolverOptions from "@site/src/components/shared-libs/generateResolverOptions" | ||
import yamlLoad from "@site/src/components/yamlLoad" | ||
import BathymetrySchema from "!!raw-loader!@site/docs/_schema/base/bathymetry.yaml"; | ||
import BathymetryExample from "!!raw-loader!@site/docs/_examples/base/bathymetry-example.yaml"; | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
# Bathymetry | ||
<table> | ||
<tbody> | ||
<tr> | ||
<th>Geometry Type</th> | ||
<td> | ||
<code>Polygon</code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<th>Theme</th> | ||
<td><code>base</code></td> | ||
</tr> | ||
<tr> | ||
<th>Type</th> | ||
<td><code>bathymetry</code></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
## Schema | ||
<Tabs> | ||
<TabItem value="browsable" label="Browsable" default> | ||
<JSONSchemaViewer schema={ yamlLoad(BathymetrySchema) } resolverOptions={ generateResolverOptions({remote: true, yamlBasePath: '/base'})}/> | ||
</TabItem> | ||
<TabItem value="yaml" label="YAML" default> | ||
<CodeBlock language="jsx">{BathymetrySchema}</CodeBlock> | ||
</TabItem> | ||
</Tabs> | ||
## Examples | ||
<Tabs> | ||
<TabItem value="1" label="bathymetry" default> | ||
<CodeBlock language="json">{ JSON.stringify(yamlLoad(BathymetryExample), null, 2) }</CodeBlock> | ||
</TabItem> | ||
</Tabs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
id: "overture:bathymetry:example:1" | ||
type: Feature | ||
geometry: | ||
type: Polygon | ||
coordinates: [[[-73.1902319,41.6678018],[-73.1896302,41.667817],[-73.1890448,41.6667723],[-73.1899188,41.6666994],[-73.1902319,41.6678018]]] | ||
properties: | ||
theme: base | ||
type: bathymetry | ||
depth: -2500 | ||
cartography: | ||
min_zoom: 0 | ||
max_zoom: 23 | ||
sort_key: 7 | ||
sources: | ||
- record_id: x123 | ||
property: "" | ||
dataset: some source | ||
version: 0 | ||
update_time: "2023-05-30T00:00:00Z" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
"$schema": https://json-schema.org/draft/2020-12/schema | ||
title: bathymetry | ||
description: topographic representation of the ocean floor | ||
type: object | ||
properties: | ||
id: | ||
"$ref": ../defs.yaml#/$defs/propertyDefinitions/id | ||
geometry: | ||
unevaluatedProperties: false | ||
oneOf: | ||
- "$ref": https://geojson.org/schema/Polygon.json | ||
- "$ref": https://geojson.org/schema/MultiPolygon.json | ||
properties: | ||
unevaluatedProperties: false | ||
allOf: | ||
- "$ref": ../defs.yaml#/$defs/propertyContainers/overtureFeaturePropertiesContainer | ||
- "$ref": ../defs.yaml#/$defs/propertyContainers/levelContainer | ||
- "$ref": ../defs.yaml#/$defs/propertyContainers/cartographyContainer | ||
required: | ||
- depth | ||
properties: | ||
depth: { "$ref": ./defs.yaml#/$defs/propertyDefinitions/depth } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters