opengeospatial / CRS-JSON-Encoding

0 stars 2 forks source link

Definition of "one_and_only_one_of_datum_or_datum_ensemble" #37

Open KRyden opened 2 months ago

KRyden commented 2 months ago

NOTE: Markdown does not support highlighting in color, so bold/italic has been used to highlight the material being discussed. This issue is extracted from the document submitted by Roger Lott at https://github.com/opengeospatial/CRS-JSON-Encoding/blob/main/ProjJson%20v0-7%20RL%202024-06-16.docx for discussion at the CRS SWG meeting OGC held during the Montreal June 2024 TC meeting.

"one_and_only_one_of_datum_or_datum_ensemble": {
  "allOf": [
    {
        "not": {
            "type": "object",
            "required": [ "datum", "datum_ensemble" ]
        }
    },
    {
        "oneOf": [
            { "type": "object", "required": ["datum"] },
            { "type": "object", "required": ["datum_ensemble"] }
        ]
    }
  ]
},

"$comment": "[RL] Why is the structure different to that of one of ID or IDs?"