Skip to content

Commit

Permalink
Emphasize that WCMP2 is GeoJSON #190 (#193)
Browse files Browse the repository at this point in the history
* Emphasize that WCMP2 is GeoJSON #190

For now, only examples are updated and one humble sentence added to the normative text (chapter 7.1.1. Overview).
I was not able to find a place where we would talk about the WCMP record "representation". Should I add something like "7.1.2 WCMP record representation" (which would shift all other things in 7.1) with a sentence or two and a requirement?

* Add WCMP media type as REC_media_type.adoc #190

---------

Co-authored-by: Tom Kralidis <tomkralidis@gmail.com>
  • Loading branch information
josusky and tomkralidis authored Feb 15, 2024
1 parent bd646f8 commit c502302
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 15 deletions.
2 changes: 1 addition & 1 deletion examples/ca-eccc-msc.daily-climate-observations.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"rel": "items",
"href": "mqtts://example.org",
"channel": "origin/a/wis2/ca-eccc-msc/data/core/climate/observations",
"type": "application/json",
"type": "application/geo+json",
"title": "Data notifications"
}
]
Expand Down
2 changes: 1 addition & 1 deletion examples/ca-eccc-msc.hydrometric-archive.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"rel": "items",
"href": "mqtts://example.org",
"channel": "origin/a/wis2/ca-eccc-msc/data/core/hydrology",
"type": "application/json",
"type": "application/geo+json",
"title": "Data notifications"
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/ca-eccc-msc.hydrometric-realtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"rel": "items",
"href": "mqtts://example.org",
"channel": "origin/a/wis2/ca-eccc-msc/data/core/hydrology",
"type": "application/json",
"type": "application/geo+json",
"title": "Data notifications"
},
{
Expand Down
2 changes: 1 addition & 1 deletion examples/ca-eccc-msc.nwp-gdps.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
"rel": "items",
"channel": "origin/a/wis2/ca-eccc-msc/data/core/weather/nwp/global",
"href": "mqtts://example.org",
"type": "application/json",
"type": "application/geo+json",
"title": "Data notifications"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
"rel": "items",
"href": "mqtts://example.org",
"channel": "origin/a/wis2/ca-eccc-msc/data/core/weather/surface-based-observations/synop",
"type": "application/json",
"type": "application/geo+json",
"title": "Data notifications"
}
]
Expand Down
2 changes: 1 addition & 1 deletion examples/cn-cma-babj.nmic.prediction-forecast.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
{
"rel": "items",
"channel": "origin/a/wis2/cn-cma-babj/weather/prediction/forecast/#",
"type": "application/json",
"type": "application/geo+json",
"title": "Data notifications - WMO WIS Global Broker - CMA",
"href": "mqtts://everyone:everyone@example.org:8883"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/cn-cma-babj.nmic.surface-based-observations.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
{
"rel": "items",
"channel": "cache/a/wis2/#",
"type": "application/json",
"type": "application/geo+json",
"title": "Data notifications - WMO WIS Global Broker - CMA",
"href": "mqtts://everyone:everyone@example.org:8883"
}
Expand Down
2 changes: 1 addition & 1 deletion examples/de-dwd.global-cache.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
"rel": "items",
"channel": "cache/a/wis2",
"href": "mqtts://everyone:everyone@example.org:8883",
"type": "application/json",
"type": "application/geo+json",
"title": "Data notifications"
}
]
Expand Down
2 changes: 1 addition & 1 deletion examples/de-dwd.icon-eps-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
"rel": "items",
"channel": "origin/a/wis2/de-dwd/data/core/weather/prediction/forecast/medium-range",
"href": "mqtts://everyone:everyone@example.org:8883",
"type": "application/json",
"type": "application/geo+json",
"title": "Data notifications"
}
]
Expand Down
2 changes: 1 addition & 1 deletion examples/de-dwd.surface-weather-observations-realtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"rel": "items",
"channel": "origin/a/wis2/de-dwd/data/core/weather/surface-based-observations/synop",
"href": "mqtts://everyone:everyone@example.org:8883",
"type": "application/json",
"type": "application/geo+json",
"title": "Data notifications"
}
]
Expand Down
2 changes: 1 addition & 1 deletion examples/fr-meteo-france.global-broker.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"links": [
{
"rel": "items",
"type": "application/json",
"type": "application/geo+json",
"title": "WMO WIS2 Global Broker - M\u00e9t\u00e9o-France",
"href": "mqtts://everyone:everyone@example.org:8883",
"channel": "cache/a/wis2/#",
Expand Down
2 changes: 1 addition & 1 deletion examples/int-eumetsat-serviri-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"rel": "items",
"channel": "origin/a/wis2/int-eumetsat/data/core/weather/space-based-observations/satellite4nowcasting/Meteosat-10/ImageL1-5",
"href": "mqtts://example.org",
"type": "application/json",
"type": "application/geo+json",
"title": "Data notifications"
},
{
Expand Down
4 changes: 2 additions & 2 deletions kpi/core/links-health.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Ensure that all links resolve and are accessible via HTTPS.
"links": [
{
"rel": "related",
"type": "application/json",
"type": "application/geo+json",
"title": "Global Broker (Toulouse)",
"href": "mqtts://[yourAccount]:[yourPassword]@globalbroker.meteo.fr:8883/",
"channel": "cache/a/wis2/#",
Expand All @@ -59,7 +59,7 @@ Ensure that all links resolve and are accessible via HTTPS.
"links": [
{
"rel": "subscribe",
"type": "application/json",
"type": "application/geo+json",
"title": "Global Broker (Toulouse)",
"href": "mqtts://[yourAccount]:[yourPassword]@wis2.dwd.de:8883/",
"channel": "cache/a/wis2/deu/dwd/data/core/weather/analysis-prediction/forecast/model/#"
Expand Down
6 changes: 6 additions & 0 deletions standard/recommendations/core/REC_media_type.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[[rec_core_media_type]]
[width="90%",cols="2,6a"]
|===
^|*Recommendation {counter:rec-id}* |*/rec/core/media_type*
^|A |The media type assigned to a WCMP record, when transported through a protocol that supports it, SHOULD be ``application/geo+json``.
|===
8 changes: 7 additions & 1 deletion standard/sections/clause_7_normative_text.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ The table below provides an overview of the set of properties that may be includ

|===

==== WCMP record representation

WCMP record can be represented in various ways internally, in WIS systems and software tools, but its external representation is GeoJSON.

include::../recommendations/core/REC_media_type.adoc[]

==== Validation

The WCMP record schema is based on _OGC API - Records - Part 1: Core: Requirements Class: Record Core_ schema and the associated information model. WCMP records compliant with WCMP schema are therefore compliant with the _OGC API - Records_ record schema.
Expand Down Expand Up @@ -864,7 +870,7 @@ For recommended data, the ``links`` property may also provide links to services
},
{
"rel" : "items",
"type" : "application/json",
"type" : "application/geo+json",
"title": "WIS2 notification service",
"href" : "mqtts://example.org",
"channel": "cache/a/wis2/ca-eccc-msc/data/core/weather/surface-based-observations"
Expand Down

0 comments on commit c502302

Please sign in to comment.