MetPX / sarracenia

https://MetPX.github.io/sarracenia
GNU General Public License v2.0
45 stars 22 forks source link

v04 format: idiomatic GeoJSON+STAC message format #503

Closed petersilva closed 10 months ago

petersilva commented 2 years ago

https://github.com/wmo-im/wis2-notification-message

WMO has chosen a format as above. It's still JSON, but everything else is different, and Unknown... subject to experiments and negotiation... v03 is deployed (for HPC mirroring, for example) so cannot really change it. Have to increment the version. This is a first shot at what it looks like:

"id":  value of relPath goes here.
"type": "feature",
"geometry": null, or accept one  from the message.
"properties": {
     old fields go here.
     "baseUrl": "..."
}

* "type": is hard-coded.
* geometry field gets passed on literally.
* "links" gets passed on literally.
* all 'fields' get stored in "properties" instead of at the root.   "BaseURL" is now optional. if present, the retrieval url is built from catenating  baseURL and id.   if missing, then STAC-style "links" should be supplied to provide for retrieval.

"id": value of relPath goes here. "type": "feature", "geometry": null, or accept one from the message. "properties": { old fields go here. "baseUrl": "..." }

petersilva commented 2 years ago

branch v03_issue503 implements this. it works. it looks ugly to me though.

petersilva commented 2 years ago

branch v03_issue503 implements this. it works. it looks ugly to me though, because:

petersilva commented 2 years ago

What happenned since April:

petersilva commented 10 months ago

The format is called wis now, and message formats are now encapsulated in the postformat classes. It is implemented... need to follow along, but the work for getting an initial version is done.