aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_collg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/PJ_collg.c')
-rw-r--r--src/PJ_collg.c44
1 files changed, 1 insertions, 43 deletions
diff --git a/src/PJ_collg.c b/src/PJ_collg.c
index 01c65cd0..15e8354c 100644
--- a/src/PJ_collg.c
+++ b/src/PJ_collg.c
@@ -49,46 +49,4 @@ PJ *PROJECTION(collg) {
return P;
}
-#ifndef PJ_SELFTEST
-int pj_collg_selftest (void) {return 0;}
-#else
-
-int pj_collg_selftest (void) {
- double tolerance_lp = 1e-10;
- double tolerance_xy = 1e-7;
-
- char s_args[] = {"+proj=collg +a=6400000 +lat_1=0.5 +lat_2=2"};
-
- LP fwd_in[] = {
- { 2, 1},
- { 2,-1},
- {-2, 1},
- {-2,-1}
- };
-
- XY s_fwd_expect[] = {
- {249872.921577929839, 99423.1747884602082},
- {254272.532301245432, -98559.3077607425657},
- {-249872.921577929839, 99423.1747884602082},
- {-254272.532301245432, -98559.3077607425657},
- };
-
- XY inv_in[] = {
- { 200, 100},
- { 200,-100},
- {-200, 100},
- {-200,-100}
- };
-
- LP s_inv_expect[] = {
- {0.00158679719207879865, 0.00101017310941749921},
- {0.001586769215623956, -0.00101018201458258111},
- {-0.00158679719207879865, 0.00101017310941749921},
- {-0.001586769215623956, -0.00101018201458258111},
- };
-
- return pj_generic_selftest (0, s_args, tolerance_xy, tolerance_lp, 4, 4, fwd_in, 0, s_fwd_expect, inv_in, 0, s_inv_expect);
-}
-
-
-#endif
+int pj_collg_selftest (void) {return 10000;}