Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update templated links to support both aware and unaware clients. #322

Merged
merged 11 commits into from
Dec 29, 2023
20 changes: 12 additions & 8 deletions core/examples/json/associations-simple-and-uri-template.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,15 @@
"type": "text/html",
"title": "WOUDC - Data - Station List",
"href": "https://woudc.org/data/stations"
},
}
],
"linkTemplates": [
{
"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={bbox}&layers=stations&width={width}&height={height}&format=image/png",
"templated": true,
"link-template": "https://geo.woudc.org/ows?service=WMS&version=1.3.0&request=GetMap&crs={crs}&bbox={bbox}&layers=stations&width={width}&height={height}&format=image/png",
"variables": {
"crs": {
"description": "...",
"type": "string",
"enum": [ "EPSG:4326", "EPSG:3857" ]
},
"bbox": {
"description": "...",
"type": "array",
Expand All @@ -28,6 +24,14 @@
"minItems": 4,
"maxItems": 4
},
"crs": {
"description": "...",
"type": "string",
"enum": [
"EPSG:4326",
"EPSG:3857"
]
},
"width": {
"description": "...",
"type": "number",
Expand Down
49 changes: 20 additions & 29 deletions core/examples/json/crawlable_catalogue/collection.json
Original file line number Diff line number Diff line change
@@ -1,32 +1,23 @@
{
"id": "example-collection",
"title": "Dataset and Imagery Record examples",
"description": "This Collection links down to several examples of crawlable record collections of different types",
"extent":
"id": "example-collection",
"title": "Dataset and Imagery Record examples",
"description": "This Collection links down to several examples of crawlable record collections of different types",
"extent": {
"spatial": {
"bbox": [
[ -180, -90, 180, 90 ]
]
}
},
"itemType": "feature",
"links": [
{
"spatial":
{
"bbox":
[
[
-180,
-90,
180,
90
]
]
}
"rel": "item",
"href": "imagery_example/collection.json"
},
"itemType": "feature",
"links":
[
{
"rel": "item",
"href": "imagery_example/collection.json"
},
{
"rel": "item",
"href": "dataset_example/collection.json"
}
]
}
{
"rel": "item",
"href": "dataset_example/collection.json"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,69 +1,91 @@
{
"id": "101290",
"id": "101290",
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
167.325430204,
-47.001329508
],
[
179.413063484,
-47.001329508
],
[
179.413063484,
-34.310623441
],
[
167.325430204,
-34.310623441
],
[
167.325430204,
-47.001329508
]
]
]
},
"properties": {
"created": "2021-08-17T00:00:00Z",
"updated": "2021-08-17T00:00:00Z",
"type": "dataset",
"title": "New Zealand Building Outlines",
"description": "This dataset provides current outlines of buildings within mainland New Zealand captured from the latest aerial imagery. A building outline is a 2D representation of the roof outline of a building which has been classified from LINZ aerial imagery using a combination of automated and manual processes to extract and refine a building roof outline. Building outlines observed in aerial imagery larger than or equal to 10 square meters are captured in this dataset, and may include structures such as garages and large sheds. **Data vintage** This dataset shows the most recent set of building outlines extracted from the LINZ aerial imagery available on the LINZ Data Service. Current coverage includes nearly all regions of New Zealand, except parts of rural Auckland, remote parts of Bay of Plenty, Tasman and the Southern Alps, as well as Fiordland, Stewart Island and the Chatham Islands. This dataset will be updated and expanded as new aerial imagery becomes available. Since aerial imagery is flown only every few years in each region of the country, building outlines only reflect those buildings observed at the date of this aerial imagery capture, and may not reflect buildings constructed after this time period. Please refer to the [NZ Building Outlines Data Dictionary](https://nz-buildings.readthedocs.io/en/latest/introduction.html) for detailed metadata and information about this dataset.",
"extent":
{
"spatial":
{
"bbox":
[
[
167.325430204,
-47.001329508,
179.413063484,
-34.310623441
]
]
}
},
"itemType": "feature",
"keywords":
[
"New Zealand",
"buildings"
"keywords": [
"New Zealand"
],
"language": "en-NZ",
"publisher":
{
"organizationName": "LINZ - Land Information New Zealand",
"contactInfo":
{
"onlineResource":
{
"href": "https://data.linz.govt.nz/"
},
"email": "customersupport@linz.govt.nz"
"publisher": {
"organizationName": "LINZ - Land Information New Zealand",
"contactInfo": {
"onlineResource": {
"href": "https://data.linz.govt.nz/"
},
"roles": [ "producer" ]
"email": "customersupport@linz.govt.nz"
},
"roles": [
"producer"
]
},
"license": "CC-BY-4.0",
"links":
[
{
"href": "https://www.linz.govt.nz/data/licensing-and-using-data/attributing-linz-data",
"rel": "license",
"type": "text/html",
"title": "license"
},
{
"href": "nz-buildings-record.json",
"rel": "alternate",
"type": "application/geo+json",
"title": "OGC Record JSON of this data"
},
{
"href": "https://storage.googleapis.com/open-geodata/linz-examples/nz-building-outlines.gpkg",
"rel": "enclosure",
"type": "application/geopackage+sqlite3",
"length": 1449656320,
"title": "Data as a Geopackage"
},
{
"href": "./nz-building-outlines.xml",
"rel": "describedby",
"type": "text/xml",
"title": "ISO 19115/19139 Metadata"
}
]
"formats": [
"GeoPackage",
"GeoJSONSeq",
"FlatGeobuf"
],
"license": "CC-BY-4.0"
},
"links": [
{
"href": "https://www.linz.govt.nz/data/licensing-and-using-data/attributing-linz-data",
"rel": "license",
"type": "text/html",
"title": "license"
},
{
"href": "buildings-collection.json",
"rel": "alternate",
"type": "application/json",
"title": "OGC Collection JSON of this data",
"created": "2013-01-21T00:00:00Z",
"updated": "2020-04-23T00:00:00Z"
},
{
"href": "https://storage.googleapis.com/open-geodata/linz-examples/nz-building-outlines.gpkg",
"rel": "enclosure",
"type": "application/geopackage+sqlite3",
"length": 1449656320,
"title": "Data as a Geopackage",
"created": "2013-01-21T00:00:00Z",
"updated": "2020-04-23T00:00:00Z"
},
{
"href": "./nz-building-outlines.xml",
"rel": "describedby",
"type": "text/xml",
"title": "ISO 19115/19139 Metadata"
}
]
}
Loading