From 99a84ae74251d77180a58d81e913ea373fcac42a Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Sat, 24 Oct 2020 19:45:09 +0200 Subject: triangulation.schema.json: add an 'extent' member --- data/triangulation.schema.json | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/data/triangulation.schema.json b/data/triangulation.schema.json index ee5cae0c..8bc0a8e8 100644 --- a/data/triangulation.schema.json +++ b/data/triangulation.schema.json @@ -94,6 +94,10 @@ "additionalProperties": false } }, + "extent": { + "$ref": "#/definitions/extent", + "description": "Defines the region within which the triangulation is defined. This should be a bounding box defined as an array of [west,south,east,north] coordinate values in a unspecified geographic CRS. This bounding box should be seen as approximate, given that triangulation may be defined with projected coordinates, and also because some triangulations may not cover the whole bounding box." + }, "input_crs": { "$ref": "#/definitions/crs", "description": "String identifying the CRS of source coordinates in the vertices. Typically \"EPSG:XXXX\". If the transformation is for vertical component, this should be the code for a compound CRS (can be EPSG:XXXX+YYYY where XXXX is the code of the horizontal CRS and YYYY the code of the vertical CRS). For example, for the KKJ->ETRS89 transformation, this is EPSG:2393 (\"KKJ / Finland Uniform Coordinate System\"). The input coordinates are assumed to be passed in the \"normalized for visualisation\" / \"GIS friendly\" order, that is longitude, latitude for geographic coordinates and easting, northing for projected coordinates." @@ -160,10 +164,39 @@ "crs": { "type": "string" }, - "datetime": { + "datetime": { "type": "string", "format": "date-time", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$" + }, + "extent": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "bbox" + ] + }, + "parameters": { + "type": "object", + "properties": { + "bbox": { + "type": "array", + "minItems": 4, + "maxItems": 4, + "items": { + "type": "number" + } + } + } + } + }, + "required": [ + "type", + "parameters" + ], + "additionalProperties": false } } } -- cgit v1.2.3