aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/projjson.schema.json9
-rw-r--r--schemas/v0.2/projjson.schema.json9
2 files changed, 16 insertions, 2 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" },
diff --git a/schemas/v0.2/projjson.schema.json b/schemas/v0.2/projjson.schema.json
index 0a4015ce..c8e213e3 100644
--- a/schemas/v0.2/projjson.schema.json
+++ b/schemas/v0.2/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" },