aboutsummaryrefslogtreecommitdiff
path: root/data
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:20:05 +0200
commit92b47020290a37a12fa8ea22c53d3ee058030483 (patch)
tree857eb20519423928b6d5c67ba00c49a76965bd0a /data
parent93b5898ef59c9085f73a0d026d608be56efa8d3a (diff)
downloadPROJ-92b47020290a37a12fa8ea22c53d3ee058030483.tar.gz
PROJ-92b47020290a37a12fa8ea22c53d3ee058030483.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')
-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" },