-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from tomkralidis/record-schema
resolve extents to OGC API - Common, Collections, make optional
- Loading branch information
Showing
6 changed files
with
202 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,147 @@ | ||
{ | ||
"id": "rid67", | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[[-10,-10],[-5,0],[0,0],[10,10],[-6,-7],[-10,-10]] | ||
"id": "urn:x-wmo:md:int.wmo.wis::https://geo.woudc.org/def/data/ozone/total-column-ozone/totalozone", | ||
"type": "Feature", | ||
"geometry": { | ||
"type": "Polygon", | ||
"coordinates": [ | ||
[ | ||
[ | ||
-180, | ||
-90 | ||
], | ||
[ | ||
-180, | ||
90 | ||
], | ||
[ | ||
180, | ||
90 | ||
], | ||
[ | ||
180, | ||
-90 | ||
], | ||
[ | ||
-180, | ||
-90 | ||
] | ||
] | ||
] | ||
}, | ||
"properties": { | ||
"type": "some_resource_type", | ||
"recordcreated": "2020-03-06T00:00:00Z", | ||
"recordupdated": "2020-05-17T10:34:39Z", | ||
"title": "The Resource's Title", | ||
"description": "Some human readable description of the resource.", | ||
"keywords": [ | ||
"keyword1", | ||
"keyword2", | ||
"keyword3" | ||
], | ||
"extents": [ | ||
{ | ||
"spatial": { | ||
"bbox": [-10,-10,10,10], | ||
"crs": "http://www.opengis.net/def/crs/EPSG/0/4326" | ||
}, | ||
"temporal": { | ||
"interval": ["2019-05-21T07:05:35","2019-05-21T07:07:08"], | ||
"trs": "http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" | ||
} | ||
} | ||
], | ||
"associations": [ | ||
{ | ||
"rel": "related", | ||
"title": "Some related record in this catalogue.", | ||
"href": "http://demo.server.com/collations/ogccat/items/rid574" | ||
}, | ||
{ | ||
"rel": "related", | ||
"title": "Some related record in another catalogue.", | ||
"href": "http://other.server.com/collations/catalogue/items/id6574" | ||
}, | ||
{ | ||
"rel": "search", | ||
"type": "text/html", | ||
"title": "WOUDC - Data - Station List", | ||
"href": "https://woudc.org/data/stations" | ||
}, | ||
{ | ||
"rel": "item", | ||
"type": "image/png", | ||
"title": "World Ozone and Ultraviolet Radiation Data Centre (WOUDC) stations", | ||
"href": "https://geo.woudc.org/ows?service=WMS&version=1.3.0&request=GetMap&crs={crs}&bbox={miny},{minx},{maxy},{maxx}&layers=stations&width={width}&height={height}&format=image/png", | ||
"templated": "true" | ||
} | ||
] | ||
}, | ||
"links": [ | ||
{ | ||
"rel": "alternate", | ||
"type": "application/atom+xml", | ||
"title": "This records encoded as ATOM/XML.", | ||
"href": "http://demo.server.com/collations/ogccat/items/rid67.xml" | ||
}, | ||
{ | ||
"rel": "next", | ||
"title": "The next record in this result set.", | ||
"href": "http://demo.server.com/collations/ogccat/items/rid53" | ||
} | ||
] | ||
"record-created": "2021-02-08", | ||
"record-updated": "2021-02-08", | ||
"type": "dataset", | ||
"title": "Total Ozone - daily observations", | ||
"description": "A measurement of the total amount of atmospheric ozone in a given column from the surface to the edge of the atmosphere. Ground based instruments such as spectrophotometers and ozonemeters are used to measure results daily", | ||
"keywords": [ | ||
"total", | ||
"ozone", | ||
"level 1.0", | ||
"column", | ||
"dobson", | ||
"brewer", | ||
"saoz" | ||
], | ||
"language": "en", | ||
"externalId": "urn:x-wmo:md:int.wmo.wis::https://geo.woudc.org/def/data/ozone/total-column-ozone/totalozone", | ||
"created": "2015-01-23", | ||
"updated": "2015-01-23", | ||
"publisher": "https://woudc.org", | ||
"themes": [ | ||
{ | ||
"scheme": "https://geo.woudc.org/codelists.xml#WOUDC_InstrumentCode", | ||
"concepts": [ | ||
"dobson", | ||
"brewer", | ||
"vassey", | ||
"pion", | ||
"microtops", | ||
"spectral", | ||
"hoelper", | ||
"saoz", | ||
"filter" | ||
] | ||
}, | ||
{ | ||
"scheme": "https://wis.wmo.int/2012/codelists/WMOCodeLists.xml#WMO_CategoryCode", | ||
"concepts": [ | ||
"atmosphericComposition", | ||
"pollution", | ||
"observationPlatform", | ||
"rocketSounding" | ||
] | ||
} | ||
], | ||
"formats": [ | ||
"CSV", | ||
"GeoJSON" | ||
], | ||
"contactPoint": "https://woudc.org/contact.php", | ||
"license": "https://woudc.org/about/data-policy.php", | ||
"rights": null, | ||
"extent": [ | ||
{ | ||
"spatial": { | ||
"bbox": [ | ||
-180, | ||
-90, | ||
180, | ||
90 | ||
], | ||
"crs": "http://www.opengis.net/def/crs/OGC/1.3/CRS84" | ||
}, | ||
"temporal": { | ||
"interval": [ | ||
[ | ||
"1924-08-18", | ||
null | ||
] | ||
], | ||
"trs": "http://www.opengis.net/def/uom/ISO-8601/0/Gregorian" | ||
} | ||
} | ||
], | ||
"associations": [ | ||
{ | ||
"rel": "item", | ||
"type": "image/png", | ||
"title": "OGC Web Map Service (WMS)", | ||
"href": "https://geo.woudc.org/ows?service=WMS&version=1.3.0&request=GetMap&crs={crs}&bbox={miny},{minx},{maxy},{maxx}&layers=totalozone&width={width}&height={height}&format=image/png", | ||
"templated": true | ||
}, | ||
{ | ||
"rel": "enclosure", | ||
"type": "text/html", | ||
"title": "Web Accessible Folder (WAF)", | ||
"href": "https://woudc.org/archive/Archive-NewFormat/TotalOzone_1.0_1" | ||
}, | ||
{ | ||
"rel": "search", | ||
"type": "text/html", | ||
"title": "Data Search / Download User Interface", | ||
"href": "https://woudc.org/data/explore.php?dataset=totalozone" | ||
}, | ||
{ | ||
"rel": "enclosure", | ||
"type": "application/zip", | ||
"title": "Static dataset archive file", | ||
"href": "https://woudc.org/archive/Summaries/dataset-snapshots/totalozone.zip" | ||
}, | ||
{ | ||
"rel": "service", | ||
"type": "application/xml", | ||
"title": "OGC Web Feature Service (WFS)", | ||
"href": "https://geo.woudc.org/ows" | ||
} | ||
], | ||
"links": [ | ||
{ | ||
"rel": "alternate", | ||
"type": "text/html", | ||
"title": "This document as HTML", | ||
"href": "https://woudc.org/data/dataset_info.php?id=totalozone" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
type: object | ||
required: | ||
- type | ||
- features | ||
properties: | ||
type: | ||
type: string | ||
enum: | ||
- FeatureCollection | ||
features: | ||
type: array | ||
items: | ||
$ref: record.yaml | ||
links: | ||
type: array | ||
items: | ||
$ref: link.yaml | ||
timeStamp: | ||
type: string | ||
format: date-time | ||
numberMatched: | ||
type: integer | ||
minimum: 0 | ||
numberReturned: | ||
type: integer | ||
minimum: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters