- 05 Oct, 2012 3 commits
-
-
Jason Davies authored
Also adds support for previously unsupported object types e.g. Points and LineStrings.
-
Jason Davies authored
-
Mike Bostock authored
Better resampling for non-linear distortions.
-
- 04 Oct, 2012 1 commit
-
-
Jason Davies authored
I've reinstated the original conditional for linear longitudinal interpolation, since the x * x < ε conditional was not tight enough and hence caused glitches in projections that include the poles e.g. stereographic. Back to solving the issue that was primarily noticeable in the Albers demo: graticules near the poles would not resample correctly. We made an assumption that a point mid-way along the connecting great arc is going to be approximately mid-way in pixel-space. This is a reasonable assumption in most cases, but there is an area of high instability near the poles, since a small change in distance could result in a large change in longitude, e.g. imagine a great arc going right over a pole, so the longitude will change greatly depending on which side of the pole you're on. So the new fix is to see if the distance in pixel-space hardly changed at all, and in this case we attempt to interpolate again, mid-way to the new spherical coordinates. I think we can probably improve this even further by borrowing methods from standard root-finding techniques e.g. Newton-Raphson.
-
- 03 Oct, 2012 3 commits
-
-
Mike Bostock authored
Add extra ring if polygon "surrounds" clip circle.
-
Jason Davies authored
This can be optimised using the 3D coordinates directly from the rotation step, rather than performing additional trig. calculations.
-
Jason Davies authored
The antemeridian interpolator was mistakenly assuming longitudes of interpolation points are exactly on the antemeridian. An alternative fix would be to use exact equality tests for the coincident points test, but it feels safer to use a margin of error.
-
- 02 Oct, 2012 19 commits
-
-
Jason Davies authored
This was breaking antemeridian clipping in some rare cases where a point was coincident with the antemeridian.
-
Jason Davies authored
-
Jason Davies authored
Polygon LinearRings weren't being closed correctly.
-
Jason Davies authored
It was breaking obviously in the resampling demo. Retains a minor optimisation.
-
Jason Davies authored
Interpolation of longitudes becomes inaccurate near the poles, since they become mathematically insignificant in relation to a sphere. However, for map projections, we want to interpolate longitudes even at the poles themselves, since many projections distort the poles along an edge.
-
Jason Davies authored
Conflicts: d3.v2.min.js
-
Mike Bostock authored
This reverts commit b6d7c5e4.
-
Jason Davies authored
Conflicts: d3.v2.min.js
-
Mike Bostock authored
-
Jason Davies authored
-
Jason Davies authored
-
Jason Davies authored
-
Jason Davies authored
Hurrah for tests!
-
Jason Davies authored
Conflicts: d3.v2.js d3.v2.min.js src/geo/circle.js src/geo/projection.js
-
Jason Davies authored
Passes spiral test.
-
Mike Bostock authored
-
Mike Bostock authored
Also restore path.area and add a few tests.
-
Mike Bostock authored
-
Mike Bostock authored
-
- 01 Oct, 2012 3 commits
-
-
Mike Bostock authored
-
Mike Bostock authored
-
Jason Davies authored
-
- 29 Sep, 2012 11 commits
-
-
Mike Bostock authored
-
Mike Bostock authored
-
Jason Davies authored
Conflicts: d3.v2.js d3.v2.min.js src/geo/path.js src/geo/projection.js
-
Mike Bostock authored
-
Mike Bostock authored
This is now forwards-compatible should desire complex clipping.
-
Jason Davies authored
-
Jason Davies authored
Setting projection.clipAngle(null) enables antemeridian cutting (the default). However, it would be nice to support cutting of different antemeridian heights, so perhaps projection.cut(true | false) or something else would be better, since clipAngle could apply to both.
-
Jason Davies authored
This allows correct clipping to take place when holes are involved. This fixes an artefact that appears in a stereographic projection example, which probably occurred due to misinterpreting a hole as an exterior.
-
Jason Davies authored
-
Jason Davies authored
-
Jason Davies authored
This makes use of the fact that we now have a fixed circle origin. Note that the Cartesian centre of the circle can still change depending on the angle. More optimisations to come!
-