Mike Bostock
06cf988c5a
Expose raw projections.
2012-09-26 21:19:56 -07:00
Mike Bostock
99c444ddaf
path(null) should return null.
...
This frequently happens when a feature is fully clipped.
2012-09-26 21:01:42 -07:00
Mike Bostock
f36a6acdf3
Fix for precision(0).
2012-09-26 17:33:55 -07:00
Mike Bostock
e499edf533
Merge branch 'projection' of https://github.com/jasondavies/d3 into projection
2012-09-26 17:25:55 -07:00
Mike Bostock
650ebcffab
Fix for garticule.outline.
2012-09-26 12:23:32 -07:00
Mike Bostock
e40787c165
Expose d3.geo.azimuthalEqualArea.raw.
2012-09-26 11:51:49 -07:00
Mike Bostock
83af6c4c0b
Resampling for closePath, too.
2012-09-26 11:50:20 -07:00
Mike Bostock
3b480a2549
Expose d3.geo.projectionMutator.
2012-09-26 11:34:39 -07:00
Jason Davies
f7e6dc93dc
Simplify.
2012-09-26 11:25:14 -07:00
Jason Davies
04b85ef364
Make resampling precision configurable.
2012-09-26 11:25:14 -07:00
Jason Davies
a91954bbac
Simplify.
2012-09-26 18:30:36 +01:00
Jason Davies
f7174ce1a1
Make resampling precision configurable.
2012-09-26 17:29:44 +01:00
Mike Bostock
9ac8ad3c7d
Merge pull request #823 from jasondavies/projection
...
Interpolate polygon cuts correctly, and resample.
2012-09-26 07:58:33 -07:00
Jason Davies
7af2884394
Improve interpolation at poles.
2012-09-26 14:57:55 +01:00
Jason Davies
9c7e3a8d9a
Increase resampling recursion depth.
...
Otherwise Albers shows some graticule artefacts near the North Pole for
rotate([0, 0, 45]). It may be worth investigating what happens to k near
the poles, in case we need to override it.
2012-09-26 14:47:21 +01:00
Jason Davies
e8b3ac10bc
Restore graticule precision.
...
This is not configurable for now, since resampling should do the rest.
The distortion of parallels is quite noticeable without this,
particularly nearer the poles (since parallels are not all great
circles), so we need *some* precision to begin with here.
2012-09-26 14:30:40 +01:00
Jason Davies
9399591f9a
Simplify.
2012-09-26 14:16:03 +01:00
Jason Davies
c7284d7dc3
Fix accuracy issue when interpolating near poles.
2012-09-26 14:14:13 +01:00
Jason Davies
45d4b31461
Adaptive resampling.
...
Can still be optimised further by caching trig. results.
2012-09-26 13:35:51 +01:00
Jason Davies
302576bbcd
Initial version of resampling.
...
This non-adaptively uses d3.geo.greatArc at the moment. This needs to be
rewritten to be adaptive, more efficient, and handle interpolating at
poles e.g. 〈-180°, -90°〉↦〈180°, -90°〉 should interpolate
longitudinally.
2012-09-26 12:18:04 +01:00
Jason Davies
6b16dfa4cd
Checkpoint adaptive resampling.
2012-09-26 12:07:00 +01:00
Jason Davies
b8a47f1c8c
Minor optimisation.
2012-09-26 10:01:32 +01:00
Jason Davies
48dacb3599
Minor optimisation.
2012-09-26 09:59:49 +01:00
Jason Davies
cc123a96be
Fix bug at rotate([62, -174, 0]).
...
Includes a minor optimisation.
2012-09-26 09:51:47 +01:00
Jason Davies
e431bc5962
Another minor optimisation.
2012-09-26 09:29:01 +01:00
Jason Davies
57ee53a232
Minor optimisation.
2012-09-26 09:23:58 +01:00
Jason Davies
69b36c117f
Interpolate polygon cuts correctly.
2012-09-26 09:14:48 +01:00
Mike Bostock
e4ead4e008
Tiny optimization.
2012-09-25 17:15:11 -07:00
Jason Davies
62fbc0c210
Add some TODO comments.
2012-09-26 00:35:02 +01:00
Jason Davies
a59b718cfc
Better polygon cutting.
...
One more thing left to do: interpolate along the cut line when joining
endpoints. Ideally, the distance between interpolated points should be
less than 180°. This should probably also apply to points interpolated
at ±90° latitudes.
2012-09-26 00:28:27 +01:00
Mike Bostock
b12a5352d8
Remove unnecessary modulo.
2012-09-25 15:46:29 -07:00
Mike Bostock
448c3d085f
Extract static function.
2012-09-25 15:36:07 -07:00
Mike Bostock
1b7c291179
Merge branch 'projection' of https://github.com/jasondavies/d3 into projection
2012-09-25 15:29:29 -07:00
Mike Bostock
24d1f6051b
Merge branch 'projection' of https://github.com/jasondavies/d3 into projection
2012-09-25 15:19:50 -07:00
Jason Davies
e409935c66
Remove redundant code.
2012-09-25 23:17:17 +01:00
Jason Davies
4921757dbc
Simplify.
2012-09-25 22:57:13 +01:00
Jason Davies
5cf9d299ab
Simplify.
2012-09-25 22:52:25 +01:00
Jason Davies
262286bc60
Consolidate code.
2012-09-25 22:45:41 +01:00
Jason Davies
1fe9eb5909
Add antemeridian cutting for all projections.
2012-09-25 22:14:32 +01:00
Mike Bostock
714f47cd2f
Allow d3.geo.path's context to be overridden.
2012-09-25 11:31:35 -07:00
Mike Bostock
d7c2cc756f
Checkpoint new projection-path interface.
2012-09-25 10:41:20 -07:00
Mike Bostock
af6f24a269
Merge pull request #821 from jasondavies/projection
...
Add projection.{line,polygon} support to d3.geo.path.
2012-09-25 09:59:25 -07:00
Jason Davies
3d9d05f33d
Simplify.
2012-09-25 11:49:13 +01:00
Jason Davies
38755cb9be
Slightly shorter.
2012-09-24 18:11:40 +01:00
Jason Davies
c1047df954
Fix projection.{line,polygon} default fallbacks.
2012-09-24 13:44:01 +01:00
Jason Davies
f4bbeda781
Rename d3_path_circle for consistency.
2012-09-24 10:23:59 +01:00
Jason Davies
a7d5245f52
Support optional projection.{line,polygon}.
2012-09-24 10:22:48 +01:00
Mike Bostock
6bba6a1868
Hide d3.geo.rotation to minimize API surface area.
2012-09-23 19:34:32 -07:00
Mike Bostock
f2b07f913b
Fix default scale for d3.geo.mercator.
2012-09-23 19:33:04 -07:00
Mike Bostock
1b7969f1c8
Slightly shorter code.
2012-09-23 17:29:25 -07:00