diff --git a/registereditems/geo/json-fg/feature-lenient/examples.yaml b/registereditems/geo/json-fg/feature-lenient/examples.yaml new file mode 100644 index 000000000..572beefbd --- /dev/null +++ b/registereditems/geo/json-fg/feature-lenient/examples.yaml @@ -0,0 +1,33 @@ +- title: Example feature for a fence without time or place + snippets: + - language: json + ref: examples/fence-lenient.json + base-uri: https://example.com/json-fg/ + +- title: Example feature for a fence (full) + snippets: + - 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: Example feature for a building without time or place + snippets: + - language: json + ref: examples/building-lenient.json + base-uri: https://example.com/json-fg/ + +- title: Example feature for a building (full) + snippets: + - language: json + ref: https://github.com/opengeospatial/ogc-feat-geo-json/raw/main/core/examples/building.json + base-uri: https://example.com/json-fg/ + +- title: Feature with a custom geometry (Arc) without time + 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-lenient.json \ No newline at end of file diff --git a/registereditems/geo/json-fg/feature-lenient/examples/building-lenient.json b/registereditems/geo/json-fg/feature-lenient/examples/building-lenient.json new file mode 100644 index 000000000..0e02d0f57 --- /dev/null +++ b/registereditems/geo/json-fg/feature-lenient/examples/building-lenient.json @@ -0,0 +1,46 @@ +{ + "type": "Feature", + "id": "DENW19AL0000giv5BL", + "conformsTo": [ + "[ogc-json-fg-1-0.2:core]" , + "[ogc-json-fg-1-0.2:types-schemas]", + "[ogc-json-fg-1-0.2:3d]" + ], + "featureType": "app:building", + "featureSchema": "https://example.org/data/v1/collections/buildings/schema", + "coordRefSys": "http://www.opengis.net/def/crs/EPSG/0/5555", + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [8.7092045, 51.5035285, 100], + [8.7093128, 51.5034570, 100], + [8.7093919, 51.5035030, 100], + [8.7092837, 51.5035747, 100], + [8.7092045, 51.5035285, 100] + ] + ] + }, + "links": [ + { + "href": "https://example.org/data/v1/collections/cadastralparcel/items/05297001600313______", + "rel": "http://www.opengis.net/def/rel/ogc/1.0/within", + "title": "Cadastral parcel 313 in district Wünnenberg (016)" + }, + { + "href" : "https://inspire.ec.europa.eu/featureconcept/Building", + "rel" : "type" , + "title": "This feature is of type 'building'" + } + ], + "properties": { + "lastChange": "2014-04-24T10:50:18Z", + "built": "2012-03", + "function": "Agricultural building", + "height_m": 20.0, + "owners": [ + {"href": "https://example.org/john-doe", "title": "John Doe"}, + {"href": "https://example.org/jane-doe", "title": "Jane Doe"} + ] + } +} diff --git a/registereditems/geo/json-fg/feature-lenient/examples/custom-geometry-lenient.json b/registereditems/geo/json-fg/feature-lenient/examples/custom-geometry-lenient.json new file mode 100644 index 000000000..8869c49db --- /dev/null +++ b/registereditems/geo/json-fg/feature-lenient/examples/custom-geometry-lenient.json @@ -0,0 +1,20 @@ +{ + "type": "Feature", + "id": "my-space-station", + "conformsTo": [ + "[ogc-json-fg-1-0.2:core]", + "[ogc-json-fg-1-0.2:3d]" + ], + "featureType": "space-station", + "geometry": null, + "coordRefSys": "http://www.opengis.net/def/crs/EPSG/0/7415", + "place": { + "type": "Arc", + "coordinates": [ + 81220.15, + 455113.71, + 44143.21 + ] + }, + "properties": {} +} diff --git a/registereditems/geo/json-fg/feature-lenient/examples/fence-lenient.json b/registereditems/geo/json-fg/feature-lenient/examples/fence-lenient.json new file mode 100644 index 000000000..bbfe5f918 --- /dev/null +++ b/registereditems/geo/json-fg/feature-lenient/examples/fence-lenient.json @@ -0,0 +1,9 @@ +{ + "type": "Feature", + "id": "fence.1", + "conformsTo" : [ "[ogc-json-fg-1-0.2:core]", "[ogc-json-fg-1-0.2:3d]" ], + "featureType": "fence", + "geometry": null, + "coordRefSys": "http://www.opengis.net/def/crs/EPSG/0/7415", + "properties": null +} \ No newline at end of file diff --git a/registereditems/geo/json-fg/feature/examples.yaml b/registereditems/geo/json-fg/feature/examples.yaml index 88b66808a..6a506dd05 100644 --- a/registereditems/geo/json-fg/feature/examples.yaml +++ b/registereditems/geo/json-fg/feature/examples.yaml @@ -1,13 +1,13 @@ -- title: Example feature for a building +- title: Example feature for a fence snippets: - language: json - ref: https://github.com/opengeospatial/ogc-feat-geo-json/raw/main/core/examples/building.json + ref: https://github.com/opengeospatial/ogc-feat-geo-json/raw/main/core/examples/fence.json base-uri: https://example.com/json-fg/ -- title: Example feature for a fence +- title: Example feature for a building snippets: - language: json - ref: https://github.com/opengeospatial/ogc-feat-geo-json/raw/main/core/examples/fence.json + ref: https://github.com/opengeospatial/ogc-feat-geo-json/raw/main/core/examples/building.json base-uri: https://example.com/json-fg/ - title: Feature with a custom geometry (Arc)