aboutsummaryrefslogtreecommitdiff
path: root/data/projjson.schema.json
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-09-17 00:19:24 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-09-17 00:19:24 +0200
commit339f1e57d3d3ec971753bd0cf75700505182100c (patch)
treedbbbbf0bd8e01b6a5543cd642175d95fa0d7489d /data/projjson.schema.json
parente3905b559a99d32952df08af9122192ca1b99cff (diff)
downloadPROJ-339f1e57d3d3ec971753bd0cf75700505182100c.tar.gz
PROJ-339f1e57d3d3ec971753bd0cf75700505182100c.zip
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)
Diffstat (limited to 'data/projjson.schema.json')
-rw-r--r--data/projjson.schema.json9
1 files changed, 8 insertions, 1 deletions
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" },