Skip to content

Commit

Permalink
Add JSON-FG example with custom geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed May 28, 2024
1 parent 6a6868d commit 9ce5bde
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
8 changes: 7 additions & 1 deletion registereditems/geo/json-fg/feature/context.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,13 @@
"links": "rdfs:seeAlso",
"featureType": "@type",
"coordRefSys": "http://www.opengis.net/def/glossary/term/CoordinateReferenceSystemCRS",
"place": "dct:spatial",
"place": {
"@id": "dct:spatial",
"@context": {
"@base": "https://purl.org/geojson/vocab#",
"type": "@type"
}
},
"time": {
"@id": "dct:time"
}
Expand Down
10 changes: 10 additions & 0 deletions registereditems/geo/json-fg/feature/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,13 @@
- language: json
ref: https://github.com/opengeospatial/ogc-feat-geo-json/raw/main/core/examples/fence.json
base-uri: https://example.com/json-fg/

- title: Feature with a custom geometry (Arc)
content: |
This feature follows
[the Arc extension](https://github.com/opengeospatial/ogc-feat-geo-json/blob/main/core/examples/extensions/arc.json)
for the `place` property.
snippets:
- language: json
base-uri: "https://example.com/json-fg/"
ref: examples/custom-geometry.json
26 changes: 26 additions & 0 deletions registereditems/geo/json-fg/feature/examples/custom-geometry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"type": "Feature",
"id": "my-space-station",
"conformsTo": [
"[ogc-json-fg-1-0.2:core]",
"[ogc-json-fg-1-0.2:3d]"
],
"featureType": "space-station",
"time": {
"interval": [
"2024-05-28T10:33:24Z",
".."
]
},
"geometry": null,
"coordRefSys": "http://www.opengis.net/def/crs/EPSG/0/7415",
"place": {
"type": "Arc",
"coordinates": [
81220.15,
455113.71,
44143.21
]
},
"properties": null
}

0 comments on commit 9ce5bde

Please sign in to comment.