-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging' into main: for release v0.11.0-beta
- Loading branch information
Showing
36 changed files
with
1,218 additions
and
369 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
id: names-invalid-language | ||
type: Feature | ||
geometry: | ||
type: LineString | ||
coordinates: [[0, 0], [1, 1]] | ||
properties: | ||
theme: transportation | ||
type: segment | ||
version: 1 | ||
update_time: "2024-04-15T16:22:07-08:00" | ||
subtype: road | ||
class: primary | ||
names: | ||
primary: Foo | ||
common: | ||
ja_rm: Not allowed to have an underscore | ||
zh_pinyin: Not allowed to have an underscore | ||
en1: Not allowed to have a digit in the language part | ||
rules: | ||
- language: etymology:wikidata | ||
value: Not allowed to have a colon | ||
- language: etymology | ||
value: Too long | ||
- language: pronunciation | ||
value: Too long | ||
ext_expected_errors: | ||
- "additionalProperties 'zh_pinyin', 'en1', 'ja_rm' not allowed" | ||
- "[I#/properties/names/rules/0/language] [S#/$defs/propertyDefinitions/language/pattern] does not match pattern" | ||
- "[I#/properties/names/rules/1/language] [S#/$defs/propertyDefinitions/language/pattern] does not match pattern" | ||
- "[I#/properties/names/rules/2/language] [S#/$defs/propertyDefinitions/language/pattern] does not match pattern" |
63 changes: 63 additions & 0 deletions
63
docusaurus/docs/reference/admins/administrative_boundary.mdx
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,63 @@ | ||
--- | ||
title: administrative boundary | ||
--- | ||
|
||
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 AdministrativeBoundarySchema from '!!raw-loader!@site/docs/_schema/admins/administrative_boundary.yaml'; | ||
import AdminBoundaryExample from '!!raw-loader!@site/docs/_examples/admins/administrative_boundary/boundary.yaml'; | ||
import DisputedAdminBoundaryExample from '!!raw-loader!@site/docs/_examples/admins/administrative_boundary/disputed-boundary.yaml'; | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
# Administrative Boundary | ||
|
||
Administrative boundaries are borders surrounding administrative [localities](locality). | ||
|
||
<table> | ||
<tbody> | ||
<tr> | ||
<th>Geometry Type</th> | ||
<td><code>LineString</code></td> | ||
</tr> | ||
<tr> | ||
<th>Theme</th> | ||
<td><code>admins</code></td> | ||
</tr> | ||
<tr> | ||
<th>Type</th> | ||
<td><code>administrative_boundary</code></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
An administrative boundary is typically an officially defined border | ||
between two administrative [localities](locality). In light of | ||
geopolitical issues, some administrative boundaries represent standalone | ||
disputed or treaty lines and therefore do not coincide with the border | ||
of an administrative locality. The administrative boundary and two | ||
administrative localities do not share common geometry. | ||
|
||
## Schema | ||
|
||
<Tabs> | ||
<TabItem value="browsable" label="Browsable" default> | ||
<JSONSchemaViewer schema={ yamlLoad(AdministrativeBoundarySchema) } resolverOptions={ generateResolverOptions({remote: true, yamlBasePath: '/admins'})}/> | ||
</TabItem> | ||
<TabItem value="yaml" label="YAML" default> | ||
<CodeBlock language="jsx">{AdministrativeBoundarySchema}</CodeBlock> | ||
</TabItem> | ||
</Tabs> | ||
|
||
## Examples | ||
|
||
<Tabs> | ||
<TabItem value="1" label="Administrative Boundary" default> | ||
<CodeBlock language="json">{ JSON.stringify(yamlLoad(AdminBoundaryExample), null, 2) }</CodeBlock> | ||
</TabItem> | ||
<TabItem value="2" label="Disputed Administrative Boundary" default> | ||
<CodeBlock language="json">{ JSON.stringify(yamlLoad(DisputedAdminBoundaryExample), 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
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
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
Oops, something went wrong.