From 9ce5bdea7378d13111cf5a74f1fdcfdaf5576c1b Mon Sep 17 00:00:00 2001 From: Alejandro Villar Date: Tue, 28 May 2024 10:45:07 +0200 Subject: [PATCH] Add JSON-FG example with custom geometry --- .../geo/json-fg/feature/context.jsonld | 8 +++++- .../geo/json-fg/feature/examples.yaml | 10 +++++++ .../feature/examples/custom-geometry.json | 26 +++++++++++++++++++ 3 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 registereditems/geo/json-fg/feature/examples/custom-geometry.json diff --git a/registereditems/geo/json-fg/feature/context.jsonld b/registereditems/geo/json-fg/feature/context.jsonld index fe2b6aa16..93b2cfb59 100644 --- a/registereditems/geo/json-fg/feature/context.jsonld +++ b/registereditems/geo/json-fg/feature/context.jsonld @@ -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" } diff --git a/registereditems/geo/json-fg/feature/examples.yaml b/registereditems/geo/json-fg/feature/examples.yaml index 36b28b95b..88b66808a 100644 --- a/registereditems/geo/json-fg/feature/examples.yaml +++ b/registereditems/geo/json-fg/feature/examples.yaml @@ -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 \ No newline at end of file diff --git a/registereditems/geo/json-fg/feature/examples/custom-geometry.json b/registereditems/geo/json-fg/feature/examples/custom-geometry.json new file mode 100644 index 000000000..872509b7a --- /dev/null +++ b/registereditems/geo/json-fg/feature/examples/custom-geometry.json @@ -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 +}