From b6fc41cd7cbc78fd0e6d31168096a62b27dd0194 Mon Sep 17 00:00:00 2001 From: Kristian Evers Date: Wed, 27 Jun 2018 10:00:27 +0200 Subject: Use proj_torad() instead of proj_todeg(). Internally PROJ uses radians so of course that is what we need to convert our input coordinates to before processing with proj_trans(). --- docs/source/development/migration.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/source') diff --git a/docs/source/development/migration.rst b/docs/source/development/migration.rst index 1ab0a91d..34e166bf 100644 --- a/docs/source/development/migration.rst +++ b/docs/source/development/migration.rst @@ -109,8 +109,8 @@ The same program implemented using PROJ v. 5: return 1; while (scanf("%lf %lf", &c.lp.lam, &c.lp.phi) == 2) { - c.lp.lam = proj_todeg(c.lp.lam); - c.lp.phi = proj_todeg(c.lp.phi); + c.lp.lam = proj_torad(c.lp.lam); + c.lp.phi = proj_torad(c.lp.phi); c = proj_trans(P, PJ_FWD, c); printf("%.2f\t%.2f\n", c.xy.x, c.xy.y); } -- cgit v1.2.3