From f5aed82fc6eee896606e95dc15e578cd9f058a2c Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues Date: Sat, 16 Oct 2021 15:38:17 +0200 Subject: Add fallback_strategy to tinshift transform - this bumps format_version of tinshift JSON to 1.1 for the new field fallback_strategy - the default behaviour without that field is retained - if fallback_strategy is set to "nearest_side", then points that do not fall into any of the triangles will be transformed according to the nearest triangle - if fallback_centroid is set to "nearest_side", then points that do not fall into any of the triangles will be transformed according to the triangle with the nearest centroid --- data/triangulation.schema.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'data/triangulation.schema.json') diff --git a/data/triangulation.schema.json b/data/triangulation.schema.json index d3f8004d..8203f5d9 100644 --- a/data/triangulation.schema.json +++ b/data/triangulation.schema.json @@ -13,7 +13,7 @@ "format_version": { "type": "string", "enum": [ - "1.0" + "1.0", "1.1" ] }, "name": { @@ -28,6 +28,14 @@ "$ref": "#/definitions/datetime", "description": "The date on which this version of the triangulation was published (or possibly the date on which it takes effect?)" }, + "fallback_strategy": { + "type": "string", + "enum": [ + "none", + "nearest_side", + "nearest_centroid" + ] + }, "license": { "type": "string", "description": "License under which the file is published" -- cgit v1.2.3