Skip to content

Commit bea2205

Browse files
author
Schuyler Erle
committed
Add two common GIS formats for describing complex geometries (GeoJSON and WKT)
1 parent 1a8b319 commit bea2205

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"lexicon": 1,
3+
"id": "community.lexicon.location.geojson",
4+
"defs": {
5+
"main": {
6+
"type": "object",
7+
"description": "A geographic location represented as a GeoJSON geometry object (https://geojson.org/).",
8+
"required": [
9+
"geometry"
10+
],
11+
"properties": {
12+
"geometry": {
13+
"type": "bytes",
14+
"description": "The GeoJSON representation of the geometry, stored as a byte array."
15+
},
16+
"name": {
17+
"type": "string",
18+
"description": "The name of the location, if any."
19+
}
20+
}
21+
}
22+
}
23+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"lexicon": 1,
3+
"id": "community.lexicon.location.wkt",
4+
"defs": {
5+
"main": {
6+
"type": "object",
7+
"description": "A geographic location represented as a WKT (Well-Known Text) geometry object.",
8+
"required": [
9+
"geometry"
10+
],
11+
"properties": {
12+
"geometry": {
13+
"type": "string",
14+
"description": "The WKT representation of the geometry."
15+
},
16+
"name": {
17+
"type": "string",
18+
"description": "The name of the location, if any."
19+
}
20+
}
21+
}
22+
}
23+
}

0 commit comments

Comments
 (0)