aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gie/builtins.gie91
-rw-r--r--test/gie/more_builtins.gie17
2 files changed, 106 insertions, 2 deletions
diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie
index 1ee968f4..955b5b51 100644
--- a/test/gie/builtins.gie
+++ b/test/gie/builtins.gie
@@ -2505,11 +2505,10 @@ expect -217928.275907355 112144.329220142
accept -2 -1
expect -217928.275907355 -112144.329220142
-
===============================================================================
Lambert Conformal Conic
Conic, Sph&Ell
- lat_1= and lat_2= or lat_0
+ lat_1= and lat_2= or lat_0, k_0=
===============================================================================
-------------------------------------------------------------------------------
@@ -2535,6 +2534,94 @@ expect -0.001796359 0.000904232
accept -200 -100
expect -0.001796358 -0.000904233
+-------------------------------------------------------------------------------
+Tests with +k_0 (Lambert Conformal Conic 2SP Michigan).
+-------------------------------------------------------------------------------
+operation +proj=lcc +ellps=GRS80 +lat_1=0.5 +lat_2=2 +k_0=1.0000382
+-------------------------------------------------------------------------------
+tolerance 0.1 mm
+accept 2 1
+expect 222596.942614366 110664.761103214
+accept 2 -1
+expect 222765.389013083 -110537.020013748
+accept -2 1
+expect -222596.942614366 110664.761103214
+accept -2 -1
+expect -222765.389013083 -110537.020013748
+
+direction inverse
+accept 200 100
+expect 0.001796291 0.000904198
+accept 200 -100
+expect 0.001796290 -0.000904199
+accept -200 100
+expect -0.001796291 0.000904198
+accept -200 -100
+expect -0.001796290 -0.000904199
+
+
+-------------------------------------------------------------------------------
+Test various corner cases, spherical projection and one standard
+parallel to improve test coverage.
+-------------------------------------------------------------------------------
+operation +proj=lcc +ellps=GRS80 +lat_1=0.5 +lat_2=2
+-------------------------------------------------------------------------------
+tolerance 0.1 mm
+
+accept 0 90
+expect 0 292411117.537843227
+accept 0 0
+expect 0 0
+
+-------------------------------------------------------------------------------
+operation +proj=lcc +ellps=sphere +lat_1=30 +lat_2=40
+-------------------------------------------------------------------------------
+tolerance 0.1 mm
+
+accept 1 2
+expect 129391.909521100 262101.674176860
+accept 0 0
+expect 0 0
+
+direction inverse
+
+accept 129391.909521100 262101.674176860
+expect 1 2
+accept 0 0
+expect 0 0
+
+-------------------------------------------------------------------------------
+operation +proj=lcc +ellps=GRS80 +lat_1=30
+-------------------------------------------------------------------------------
+tolerance 0.1 mm
+
+accept 1 2
+expect 131833.493971117 265456.213515346
+accept 1 -2
+expect 137536.205750651 -269686.591917190
+accept -1 2
+expect -131833.493971117 265456.213515346
+accept -1 -2
+expect -137536.205750651 -269686.591917190
+
+-------------------------------------------------------------------------------
+operation +proj=lcc +ellps=sphere +lat_1=30
+-------------------------------------------------------------------------------
+tolerance 0.1 mm
+
+accept 1 2
+expect 131824.206082557 267239.875053699
+accept -1 -2
+expect -137565.475967350 -271546.945608449
+accept 1 -2
+expect 137565.475967350 -271546.945608449
+accept -1 2
+expect -131824.206082557 267239.875053699
+
+direction inverse
+
+accept 131824.206082557 267239.875053699
+expect 1 2
===============================================================================
Lambert Conformal Conic Alternative
diff --git a/test/gie/more_builtins.gie b/test/gie/more_builtins.gie
index 10feea70..960e5814 100644
--- a/test/gie/more_builtins.gie
+++ b/test/gie/more_builtins.gie
@@ -243,6 +243,23 @@ expect failure errno no_args
+-------------------------------------------------------------------------------
+Tests for LCC 2SP Michigan (from PJ_lcc.c)
+-------------------------------------------------------------------------------
+This test is taken from EPSG guidance note 7-2 (version 54, August 2018,
+page 25)
+-------------------------------------------------------------------------------
+operation +proj=lcc +ellps=clrk66 +lat_1=44d11'N +lat_2=45d42'N +x_0=609601.2192 +lon_0=84d20'W +lat_0=43d19'N +k_0=1.0000382 +units=us-ft
+-------------------------------------------------------------------------------
+tolerance 5 mm
+accept 83d10'W 43d45'N
+expect 2308335.75 160210.48
+
+direction inverse
+accept 2308335.75 160210.48
+expect 83d10'W 43d45'N
+-------------------------------------------------------------------------------
+
-------------------------------------------------------------------------------
A number of tests from PJ_helmert.c