-
Notifications
You must be signed in to change notification settings - Fork 877
Closed
Labels
Description
The final "north warp" at lines 69-71 in the Bertin1953 projection code has that
if (xy.y > 0.) {
xy.x *= 1. + d / 1.5 * xy.x * xy.x;
}
However, in attempting to duplicate the rendering of the Bertin 1953 implemented in D3 and shown in the gallery at https://github.com/d3/d3-geo-projection , I found that the northern hemisphere wasn't coming out right. Double-checking the code for that warp, I found that the Javascript code on https://github.com/d3/d3-geo-projection/blob/master/src/bertin.js alters the value for xy.y (or r[1] in the d3-geo repo) rather than xy.x. Thus, if the JS code in the d3-geo repo is correct, then the code here in PROJ should read
if (xy.y > 0.) {
xy.y *= 1. + d / 1.5 * xy.x * xy.x;
}
@Fil, can you confirm?
Reactions are currently unavailable