aboutsummaryrefslogtreecommitdiff
path: root/data/projjson.schema.json
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2021-08-18 20:27:46 +0200
committerEven Rouault <even.rouault@spatialys.com>2021-08-19 02:15:04 +0200
commit31692d0c0667f26ea1975affeae161beabb279fd (patch)
tree562d91eab76ad8196f4a721c4f48e8fb90e22a2e /data/projjson.schema.json
parent92d8cc66100d72ba53bbc0bb0651b26310dfce4c (diff)
downloadPROJ-31692d0c0667f26ea1975affeae161beabb279fd.tar.gz
PROJ-31692d0c0667f26ea1975affeae161beabb279fd.zip
BoundCRS: accept importing/exporting in WKT2 and PROJJSON the scope/area/extent/id attributes (fixes #2813)
For PROJJSON only, also accept the ``name`` attribute.
Diffstat (limited to 'data/projjson.schema.json')
-rw-r--r--data/projjson.schema.json14
1 files changed, 11 insertions, 3 deletions
diff --git a/data/projjson.schema.json b/data/projjson.schema.json
index bdb97bd5..c347b3e1 100644
--- a/data/projjson.schema.json
+++ b/data/projjson.schema.json
@@ -1,7 +1,7 @@
{
- "$id": "https://proj.org/schemas/v0.2/projjson.schema.json",
+ "$id": "https://proj.org/schemas/v0.3/projjson.schema.json",
"$schema": "http://json-schema.org/draft-07/schema#",
- "description": "Schema for PROJJSON (v0.2.1)",
+ "description": "Schema for PROJJSON (v0.3)",
"$comment": "This file exists both in data/ and in schemas/vXXX/. Keep both in sync. And if changing the value of $id, change PROJJSON_CURRENT_VERSION accordingly in io.cpp",
"oneOf": [
@@ -111,12 +111,20 @@
"bound_crs": {
"type": "object",
+ "allOf": [{ "$ref": "#/definitions/object_usage" }],
"properties": {
"$schema" : { "type": "string" },
"type": { "type": "string", "enum": ["BoundCRS"] },
+ "name": { "type": "string" },
"source_crs": { "$ref": "#/definitions/crs" },
"target_crs": { "$ref": "#/definitions/crs" },
- "transformation": { "$ref": "#/definitions/abridged_transformation" }
+ "transformation": { "$ref": "#/definitions/abridged_transformation" },
+ "scope": {},
+ "area": {},
+ "bbox": {},
+ "usages": {},
+ "remarks": {},
+ "id": {}, "ids": {}
},
"required" : [ "source_crs", "target_crs", "transformation" ],
"additionalProperties": false