From 339f1e57d3d3ec971753bd0cf75700505182100c Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Thu, 17 Sep 2020 00:19:24 +0200 Subject: projjson.schema.json: update to reflect that prime_meridian.longitude can just be a number, in which case the unit is implicitly degrees (fixes #2354) --- data/projjson.schema.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'data') diff --git a/data/projjson.schema.json b/data/projjson.schema.json index 0a4015ce..c8e213e3 100644 --- a/data/projjson.schema.json +++ b/data/projjson.schema.json @@ -756,7 +756,7 @@ "$schema" : { "type": "string" }, "type": { "type": "string", "enum": ["PrimeMeridian"] }, "name": { "type": "string" }, - "longitude": { "$ref": "#/definitions/value_and_unit" }, + "longitude": { "$ref": "#/definitions/value_in_degree_or_value_and_unit" }, "id": { "$ref": "#/definitions/id" }, "ids": { "$ref": "#/definitions/ids" } }, @@ -912,6 +912,13 @@ "additionalProperties": false }, + "value_in_degree_or_value_and_unit": { + "oneOf": [ + { "type": "number" }, + { "$ref": "#/definitions/value_and_unit" } + ] + }, + "value_in_metre_or_value_and_unit": { "oneOf": [ { "type": "number" }, -- cgit v1.2.3