diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-06-27 10:00:27 +0200 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2018-06-27 10:00:27 +0200 |
| commit | b6fc41cd7cbc78fd0e6d31168096a62b27dd0194 (patch) | |
| tree | 2f15630c9a71c07bb5e41c95da682b5caf79f756 | |
| parent | 3eb56dbe0f6c244ea31baf75306a4554af46b4c3 (diff) | |
| download | PROJ-b6fc41cd7cbc78fd0e6d31168096a62b27dd0194.tar.gz PROJ-b6fc41cd7cbc78fd0e6d31168096a62b27dd0194.zip | |
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().
| -rw-r--r-- | docs/source/development/migration.rst | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |
