aboutsummaryrefslogtreecommitdiff
path: root/test/gie
diff options
context:
space:
mode:
authorJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>2021-10-16 15:38:17 +0200
committerJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>2021-10-21 22:18:29 +0200
commitf5aed82fc6eee896606e95dc15e578cd9f058a2c (patch)
tree94ed60520c61a765cb2515aaea4f3d21183d6b74 /test/gie
parent576a075d309056382cadc26ddf04c9eb779114a0 (diff)
downloadPROJ-f5aed82fc6eee896606e95dc15e578cd9f058a2c.tar.gz
PROJ-f5aed82fc6eee896606e95dc15e578cd9f058a2c.zip
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
Diffstat (limited to 'test/gie')
-rw-r--r--test/gie/tinshift.gie12
1 files changed, 12 insertions, 0 deletions
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
+
</gie-strict>