about summary refs log tree commit diff
path: root/proj/1654.gie
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2023-11-02 07:14:30 +0900
committerNguyễn Gia Phong <cnx@loang.net>2023-11-02 07:14:30 +0900
commit5de7d79d93e009cf6e52f0006ef8bcbd00d3cf56 (patch)
tree10435d0e4ba91e9215b94140fd253c124ea54469 /proj/1654.gie
parentbb25f70192a3276f2cca2913e9012d2c56393bd6 (diff)
downloadbux-main.tar.gz
Add PROJ bug 1654 HEAD main
References: https://github.com/OSGeo/PROJ/issues/1654
Diffstat (limited to 'proj/1654.gie')
-rw-r--r--proj/1654.gie23
1 files changed, 23 insertions, 0 deletions
diff --git a/proj/1654.gie b/proj/1654.gie
new file mode 100644
index 0000000..10964f1
--- /dev/null
+++ b/proj/1654.gie
@@ -0,0 +1,23 @@
+<gie>
+# Test oblique aeqd with point very close lon_0, lat_0, on a perfect sphere
+operation +proj=aeqd +a=6371008.771415 +b=6371008.771415 +lat_0=30.2345 +lon_0=-120.2345
+tolerance 1 mm
+accept    -120.234501 30.234501
+expect    -0.096      0.111
+roundtrip 1
+
+accept    -120.2345   30.2345
+expect    0.000       0.000
+roundtrip 1
+
+# Same on an ellipsoid very close to the sphere
+operation +proj=aeqd +a=6371008.771415 +b=6371008.771414 +lat_0=30.2345 +lon_0=-120.2345
+tolerance 1 mm
+accept    -120.234501 30.234501
+expect    -0.096      0.111
+roundtrip 1
+
+accept    -120.2345   30.2345
+expect    0.000       0.000
+roundtrip 1
+</gie>