Skip to content

Commit

Permalink
Add JSON-FG feature - lenient examples
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jul 25, 2024
1 parent 9bac3a4 commit bfb4416
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 4 deletions.
33 changes: 33 additions & 0 deletions registereditems/geo/json-fg/feature-lenient/examples.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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"}
]
}
}
Original file line number Diff line number Diff line change
@@ -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": {}
}
Original file line number Diff line number Diff line change
@@ -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
}
8 changes: 4 additions & 4 deletions registereditems/geo/json-fg/feature/examples.yaml
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit bfb4416

Please sign in to comment.