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 --- test/gie/tinshift.gie | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/gie') diff --git a/test/gie/tinshift.gie b/test/gie/tinshift.gie index f16c16bb..85009537 100644 --- a/test/gie/tinshift.gie +++ b/test/gie/tinshift.gie @@ -47,4 +47,16 @@ accept 3210000.0000 6700000.0000 10.0 expect 3210000.0000 6700000.0000 10.2886 roundtrip 1 +# Test fallback strategy nearest_side +operation +proj=tinshift +file=tests/tinshift_fallback_nearest_side.json +accept 2 3 +expect 4 6 +roundtrip 1 + +# Test fallback strategy nearest_centroid +operation +proj=tinshift +file=tests/tinshift_fallback_nearest_centroid.json +accept 3 0 +expect 3 0 +roundtrip 1 + -- cgit v1.2.3