d3-geo-projection 3.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +13 -30
- package/README.md +278 -266
- package/bin/{geo2svg → geo2svg.js} +36 -29
- package/bin/{geograticule → geograticule.js} +26 -18
- package/bin/geoproject.js +74 -0
- package/bin/geoquantize.js +46 -0
- package/bin/geostitch.js +43 -0
- package/bin/read.js +6 -6
- package/bin/write.js +4 -4
- package/dist/d3-geo-projection.js +197 -204
- package/dist/d3-geo-projection.min.js +2 -2
- package/dist/d3-geo-projection.min.mjs +2 -0
- package/dist/d3-geo-projection.mjs +4813 -0
- package/package.json +54 -39
- package/bin/geoproject +0 -53
- package/bin/geoquantize +0 -40
- package/bin/geostitch +0 -37
- package/bin/requires.js +0 -10
- package/bin/resolve.js +0 -16
- package/src/airy.js +0 -49
- package/src/aitoff.js +0 -45
- package/src/armadillo.js +0 -83
- package/src/august.js +0 -39
- package/src/baker.js +0 -27
- package/src/berghaus.js +0 -77
- package/src/bertin.js +0 -44
- package/src/boggs.js +0 -26
- package/src/bonne.js +0 -29
- package/src/bottomley.js +0 -34
- package/src/bromley.js +0 -10
- package/src/chamberlin.js +0 -120
- package/src/collignon.js +0 -18
- package/src/craig.js +0 -26
- package/src/craster.js +0 -18
- package/src/cylindricalEqualArea.js +0 -22
- package/src/cylindricalStereographic.js +0 -21
- package/src/eckert1.js +0 -24
- package/src/eckert2.js +0 -23
- package/src/eckert3.js +0 -23
- package/src/eckert4.js +0 -30
- package/src/eckert5.js +0 -23
- package/src/eckert6.js +0 -28
- package/src/eisenlohr.js +0 -70
- package/src/elliptic.js +0 -118
- package/src/fahey.js +0 -19
- package/src/foucaut.js +0 -17
- package/src/foucautSinusoidal.js +0 -49
- package/src/gilbert.js +0 -64
- package/src/gingery.js +0 -146
- package/src/ginzburg4.js +0 -9
- package/src/ginzburg5.js +0 -9
- package/src/ginzburg6.js +0 -10
- package/src/ginzburg8.js +0 -33
- package/src/ginzburg9.js +0 -9
- package/src/ginzburgPolyconic.js +0 -56
- package/src/gringorten.js +0 -147
- package/src/guyou.js +0 -53
- package/src/hammer.js +0 -51
- package/src/hammerRetroazimuthal.js +0 -109
- package/src/healpix.js +0 -99
- package/src/hill.js +0 -66
- package/src/homolosine.js +0 -22
- package/src/hufnagel.js +0 -91
- package/src/hyperelliptical.js +0 -73
- package/src/index.js +0 -95
- package/src/integrate.js +0 -91
- package/src/interrupted/boggs.js +0 -17
- package/src/interrupted/homolosine.js +0 -17
- package/src/interrupted/index.js +0 -147
- package/src/interrupted/mollweide.js +0 -17
- package/src/interrupted/mollweideHemispheres.js +0 -16
- package/src/interrupted/quarticAuthalic.js +0 -16
- package/src/interrupted/sinuMollweide.js +0 -19
- package/src/interrupted/sinusoidal.js +0 -18
- package/src/kavrayskiy7.js +0 -15
- package/src/lagrange.js +0 -47
- package/src/larrivee.js +0 -46
- package/src/laskowski.js +0 -37
- package/src/littrow.js +0 -29
- package/src/loximuthal.js +0 -34
- package/src/math.js +0 -64
- package/src/miller.js +0 -15
- package/src/modifiedStereographic.js +0 -122
- package/src/mollweide.js +0 -29
- package/src/mtFlatPolarParabolic.js +0 -26
- package/src/mtFlatPolarQuartic.js +0 -29
- package/src/mtFlatPolarSinusoidal.js +0 -31
- package/src/naturalEarth2.js +0 -29
- package/src/nellHammer.js +0 -26
- package/src/newton.js +0 -64
- package/src/nicolosi.js +0 -64
- package/src/noop.js +0 -1
- package/src/parallel1.js +0 -14
- package/src/patterson.js +0 -41
- package/src/polyconic.js +0 -35
- package/src/polyhedral/butterfly.js +0 -31
- package/src/polyhedral/collignon.js +0 -43
- package/src/polyhedral/cube.js +0 -21
- package/src/polyhedral/index.js +0 -173
- package/src/polyhedral/matrix.js +0 -64
- package/src/polyhedral/octahedron.js +0 -21
- package/src/polyhedral/waterman.js +0 -123
- package/src/project/clockwise.js +0 -8
- package/src/project/contains.js +0 -11
- package/src/project/index.js +0 -136
- package/src/quantize.js +0 -70
- package/src/quincuncial/gringorten.js +0 -7
- package/src/quincuncial/index.js +0 -40
- package/src/quincuncial/peirce.js +0 -7
- package/src/rectangularPolyconic.js +0 -44
- package/src/robinson.js +0 -89
- package/src/satellite.js +0 -71
- package/src/sinuMollweide.js +0 -26
- package/src/sinusoidal.js +0 -15
- package/src/square.js +0 -24
- package/src/stitch.js +0 -215
- package/src/times.js +0 -25
- package/src/twoPoint.js +0 -26
- package/src/twoPointAzimuthal.js +0 -29
- package/src/twoPointEquidistant.js +0 -47
- package/src/vanDerGrinten.js +0 -47
- package/src/vanDerGrinten2.js +0 -34
- package/src/vanDerGrinten3.js +0 -30
- package/src/vanDerGrinten4.js +0 -63
- package/src/wagner.js +0 -98
- package/src/wagner4.js +0 -13
- package/src/wagner6.js +0 -15
- package/src/wagner7.js +0 -28
- package/src/wiechel.js +0 -34
- package/src/winkel3.js +0 -45
package/README.md
CHANGED
|
@@ -4,15 +4,27 @@ Extended geographic projections for [d3-geo](https://github.com/d3/d3-geo). See
|
|
|
4
4
|
|
|
5
5
|
## Installing
|
|
6
6
|
|
|
7
|
-
If you use
|
|
7
|
+
If you use npm, `npm install d3-geo-projection`. You can also download the [latest release on GitHub](https://github.com/d3/d3-geo-projection/releases/latest). For vanilla HTML in modern browsers, import d3-geo-projection from Skypack:
|
|
8
8
|
|
|
9
9
|
```html
|
|
10
|
-
<script
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
<script type="module">
|
|
11
|
+
|
|
12
|
+
import {geoAitoff} from "https://cdn.skypack.dev/d3-geo-projection@4";
|
|
13
|
+
|
|
14
|
+
const projection = geoAitoff();
|
|
15
|
+
|
|
16
|
+
</script>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
For legacy environments, you can load d3-geo-projection’s UMD bundle from an npm-based CDN such as jsDelivr; a `d3` global is exported:
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<script src="https://cdn.jsdelivr.net/npm/d3-array@3"></script>
|
|
23
|
+
<script src="https://cdn.jsdelivr.net/npm/d3-geo@3"></script>
|
|
24
|
+
<script src="https://cdn.jsdelivr.net/npm/d3-geo-projection@4"></script>
|
|
13
25
|
<script>
|
|
14
26
|
|
|
15
|
-
|
|
27
|
+
const projection = d3.geoAitoff();
|
|
16
28
|
|
|
17
29
|
</script>
|
|
18
30
|
```
|
|
@@ -29,34 +41,34 @@ var aitoff = d3.geoAitoff();
|
|
|
29
41
|
|
|
30
42
|
Note: projections tagged \[d3-geo\] are exported by [d3-geo](https://github.com/d3/d3-geo), not d3-geo-projection. These commonly-used projections are also included in the [d3](https://github.com/d3/d3) default bundle.
|
|
31
43
|
|
|
32
|
-
<a href="#geoAiry" name="geoAiry">#</a> d3.<b>geoAiry</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
44
|
+
<a href="#geoAiry" name="geoAiry">#</a> d3.<b>geoAiry</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/airy.js), [Examples](https://observablehq.com/@d3/airys-minimum-error)
|
|
33
45
|
<br><a href="#geoAiryRaw" name="geoAiryRaw">#</a> d3.<b>geoAiryRaw</b>(<i>beta</i>)
|
|
34
46
|
|
|
35
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
47
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/airy.png" width="480" height="250">](https://observablehq.com/@d3/airys-minimum-error)
|
|
36
48
|
|
|
37
49
|
Airy’s minimum-error azimuthal projection.
|
|
38
50
|
|
|
39
|
-
<a href="airy_radius" name="airy_raidus">#</a> <i>airy</i>.<b>radius</b>([<i>radius</i>])
|
|
51
|
+
<a href="#airy_radius" name="airy_raidus">#</a> <i>airy</i>.<b>radius</b>([<i>radius</i>])
|
|
40
52
|
|
|
41
53
|
Defaults to 90°.
|
|
42
54
|
|
|
43
|
-
<a href="#geoAitoff" name="geoAitoff">#</a> d3.<b>geoAitoff</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
55
|
+
<a href="#geoAitoff" name="geoAitoff">#</a> d3.<b>geoAitoff</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/aitoff.js), [Examples](https://observablehq.com/@d3/aitoff)
|
|
44
56
|
<br><a href="#geoAitoffRaw" name="geoAitoffRaw">#</a> d3.<b>geoAitoffRaw</b>
|
|
45
57
|
|
|
46
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
58
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/aitoff.png" width="480" height="250">](https://observablehq.com/@d3/aitoff)
|
|
47
59
|
|
|
48
60
|
The Aitoff projection.
|
|
49
61
|
|
|
50
|
-
<a href="#geoAlbers" name="geoAlbers">#</a> d3.<b>geoAlbers</b>() · [Source](https://github.com/d3/d3-geo/blob/
|
|
62
|
+
<a href="#geoAlbers" name="geoAlbers">#</a> d3.<b>geoAlbers</b>() · [Source](https://github.com/d3/d3-geo/blob/main/src/projection/albers.js) [\[d3-geo\]](https://github.com/d3/d3-geo/blob/main/README.md#geoAlbers)
|
|
51
63
|
|
|
52
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo/
|
|
64
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo/main/img/albers.png" width="480" height="250">](https://observablehq.com/@d3/conic-equal-area)
|
|
53
65
|
|
|
54
66
|
Albers’ [equal-area conic projection](#geoConicEqualArea).
|
|
55
67
|
|
|
56
|
-
<a href="#geoArmadillo" name="geoArmadillo">#</a> d3.<b>geoArmadillo</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
68
|
+
<a href="#geoArmadillo" name="geoArmadillo">#</a> d3.<b>geoArmadillo</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/armadillo.js), [Examples](https://observablehq.com/@d3/armadillo)
|
|
57
69
|
<br><a href="#geoArmadilloRaw" name="geoArmadilloRaw">#</a> d3.<b>geoArmadilloRaw</b>(<i>phi0</i>)
|
|
58
70
|
|
|
59
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
71
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/armadillo.png" width="480" height="250">](https://observablehq.com/@d3/armadillo)
|
|
60
72
|
|
|
61
73
|
The armadillo projection. The default center assumes the default [parallel](#armadillo_parallel) of 20° and should be changed if a different parallel is used. Note: requires clipping to the sphere.
|
|
62
74
|
|
|
@@ -64,63 +76,63 @@ The armadillo projection. The default center assumes the default [parallel](#arm
|
|
|
64
76
|
|
|
65
77
|
Defaults to 20°.
|
|
66
78
|
|
|
67
|
-
<a href="#geoAugust" name="geoAugust">#</a> d3.<b>geoAugust</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
79
|
+
<a href="#geoAugust" name="geoAugust">#</a> d3.<b>geoAugust</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/august.js), [Examples](https://observablehq.com/@d3/august)
|
|
68
80
|
<br><a href="#geoAugustRaw" name="geoAugustRaw">#</a> d3.<b>geoAugustRaw</b>
|
|
69
81
|
|
|
70
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
82
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/august.png" width="480" height="250">](https://observablehq.com/@d3/august)
|
|
71
83
|
|
|
72
84
|
August’s epicycloidal conformal projection.
|
|
73
85
|
|
|
74
|
-
<a href="#geoAzimuthalEqualArea" name="geoAzimuthalEqualArea">#</a> d3.<b>geoAzimuthalEqualArea</b>() · [Source](https://github.com/d3/d3-geo/blob/
|
|
86
|
+
<a href="#geoAzimuthalEqualArea" name="geoAzimuthalEqualArea">#</a> d3.<b>geoAzimuthalEqualArea</b>() · [Source](https://github.com/d3/d3-geo/blob/main/src/projection/azimuthalEqualArea.js) [\[d3-geo\]](https://github.com/d3/d3-geo/blob/main/README.md#geoAzimuthalEqualArea), [Examples](https://observablehq.com/@d3/azimuthal-equal-area)
|
|
75
87
|
<br><a href="#geoAzimuthalEqualAreaRaw" name="geoAzimuthalEqualAreaRaw">#</a> d3.<b>geoAzimuthalEqualAreaRaw</b>
|
|
76
88
|
|
|
77
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo/
|
|
89
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo/main/img/azimuthalEqualArea.png" width="480" height="250">](https://observablehq.com/@d3/azimuthal-equal-area)
|
|
78
90
|
|
|
79
91
|
The Lambert azimuthal equal-area projection.
|
|
80
92
|
|
|
81
|
-
<a href="#geoAzimuthalEquidistant" name="geoAzimuthalEquidistant">#</a> d3.<b>geoAzimuthalEquidistant</b>() · [Source](https://github.com/d3/d3-geo/blob/
|
|
93
|
+
<a href="#geoAzimuthalEquidistant" name="geoAzimuthalEquidistant">#</a> d3.<b>geoAzimuthalEquidistant</b>() · [Source](https://github.com/d3/d3-geo/blob/main/src/projection/azimuthalEquidistant.js) [\[d3-geo\]](https://github.com/d3/d3-geo/blob/main/README.md#geoAzimuthalEquidistant), [Examples](https://observablehq.com/@d3/azimuthal-equidistant)
|
|
82
94
|
<br><a href="#geoAzimuthalEquidistantRaw" name="geoAzimuthalEquidistantRaw">#</a> d3.<b>geoAzimuthalEquidistantRaw</b>
|
|
83
95
|
|
|
84
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo/
|
|
96
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo/main/img/azimuthalEquidistant.png" width="480" height="250">](https://observablehq.com/@d3/azimuthal-equidistant)
|
|
85
97
|
|
|
86
98
|
The azimuthal equidistant projection.
|
|
87
99
|
|
|
88
|
-
<a href="#geoBaker" name="geoBaker">#</a> d3.<b>geoBaker</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
100
|
+
<a href="#geoBaker" name="geoBaker">#</a> d3.<b>geoBaker</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/baker.js), [Examples](https://observablehq.com/@d3/baker-dinomic)
|
|
89
101
|
<br><a href="#geoBakerRaw" name="geoBakerRaw">#</a> d3.<b>geoBakerRaw</b>
|
|
90
102
|
|
|
91
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
103
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/baker.png" width="480" height="250">](https://observablehq.com/@d3/baker-dinomic)
|
|
92
104
|
|
|
93
105
|
The Baker Dinomic projection.
|
|
94
106
|
|
|
95
|
-
<a href="#geoBerghaus" name="geoBerghaus">#</a> d3.<b>geoBerghaus</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
107
|
+
<a href="#geoBerghaus" name="geoBerghaus">#</a> d3.<b>geoBerghaus</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/berghaus.js), [Examples](https://observablehq.com/@d3/berghaus-star)
|
|
96
108
|
<br><a href="#geoBerghausRaw" name="geoBerghausRaw">#</a> d3.<b>geoBerghausRaw</b>(<i>lobes</i>)
|
|
97
109
|
|
|
98
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
110
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/berghaus.png" width="480" height="250">](https://observablehq.com/@d3/berghaus-star)
|
|
99
111
|
|
|
100
112
|
Berghaus’ star projection. The default center assumes the default [lobe number](#berghaus_lobes) of 5 and should be changed if a different number of lobes is used. Note: requires clipping to the sphere.
|
|
101
113
|
|
|
102
|
-
<a href="#berghaus_lobes" name="berghaus_lobes">#</a> <i>berghaus</i>.<b>lobes</b>([<i>lobes</i>]) · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
114
|
+
<a href="#berghaus_lobes" name="berghaus_lobes">#</a> <i>berghaus</i>.<b>lobes</b>([<i>lobes</i>]) · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/berghaus.js)
|
|
103
115
|
|
|
104
116
|
If *lobes* is specified, sets the number of lobes in the resulting star, and returns this projection. If *lobes* is not specified, returns the current lobe number, which defaults to 5.
|
|
105
117
|
|
|
106
|
-
<a href="#geoBertin1953" name="geoBertin1953">#</a> d3.<b>geoBertin1953</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
118
|
+
<a href="#geoBertin1953" name="geoBertin1953">#</a> d3.<b>geoBertin1953</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/bertin.js)
|
|
107
119
|
<br><a href="#geoBertin1953Raw" name="geoBertin1953Raw">#</a> d3.<b>geoBertin1953Raw</b>
|
|
108
120
|
|
|
109
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
121
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/bertin1953.png" width="480" height="250">](https://visionscarto.net/bertin-projection-1953)
|
|
110
122
|
|
|
111
123
|
Jacques Bertin’s 1953 projection.
|
|
112
124
|
|
|
113
|
-
<a href="#geoBoggs" name="geoBoggs">#</a> d3.<b>geoBoggs</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
125
|
+
<a href="#geoBoggs" name="geoBoggs">#</a> d3.<b>geoBoggs</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/boggs.js), [Examples](https://observablehq.com/@d3/boggs-eumorphic)
|
|
114
126
|
<br><a href="#geoBoggsRaw" name="geoBoggsRaw">#</a> d3.<b>geoBoggsRaw</b>
|
|
115
127
|
|
|
116
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
128
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/boggs.png" width="480" height="250">](https://observablehq.com/@d3/boggs-eumorphic)
|
|
117
129
|
|
|
118
130
|
The Boggs eumorphic projection. More commonly used in [interrupted form](#geoInterruptedBoggs).
|
|
119
131
|
|
|
120
|
-
<a href="#geoBonne" name="geoBonne">#</a> d3.<b>geoBonne</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
132
|
+
<a href="#geoBonne" name="geoBonne">#</a> d3.<b>geoBonne</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/bonne.js), [Examples](https://observablehq.com/@d3/bonne)
|
|
121
133
|
<br><a href="#geoBonneRaw" name="geoBonneRaw">#</a> d3.<b>geoBonneRaw</b>(<i>phi0</i>)
|
|
122
134
|
|
|
123
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
135
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/bonne.png" width="480" height="250">](https://observablehq.com/@d3/bonne)
|
|
124
136
|
|
|
125
137
|
The Bonne pseudoconical equal-area projection. The [Werner projection](https://observablehq.com/@d3/werner) is a limiting form of the Bonne projection with a standard parallel at ±90°. The default center assumes the default [parallel](#bonne_parallel) of 45° and should be changed if a different parallel is used.
|
|
126
138
|
|
|
@@ -128,10 +140,10 @@ The Bonne pseudoconical equal-area projection. The [Werner projection](https://o
|
|
|
128
140
|
|
|
129
141
|
Defaults to 45°.
|
|
130
142
|
|
|
131
|
-
<a href="#geoBottomley" name="geoBottomley">#</a> d3.<b>geoBottomley</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
143
|
+
<a href="#geoBottomley" name="geoBottomley">#</a> d3.<b>geoBottomley</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/bottomley.js), [Examples](https://observablehq.com/@d3/bottomley)
|
|
132
144
|
<br><a href="#geoBottomleyRaw" name="geoBottomleyRaw">#</a> d3.<b>geoBottomleyRaw</b>(<i>sinPsi</i>)
|
|
133
145
|
|
|
134
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
146
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/bottomley.png" width="480" height="250">](https://observablehq.com/@d3/bottomley)
|
|
135
147
|
|
|
136
148
|
The [Bottomley projection](https://cybergeo.revues.org/3977) “draws lines of latitude as concentric circular arcs, with arc lengths equal to their lengths on the globe, and placed symmetrically and equally spaced across the vertical central meridian.”
|
|
137
149
|
|
|
@@ -139,56 +151,56 @@ The [Bottomley projection](https://cybergeo.revues.org/3977) “draws lines of l
|
|
|
139
151
|
|
|
140
152
|
Defaults to 0.5, corresponding to a sin(ψ) where ψ = π/6.
|
|
141
153
|
|
|
142
|
-
<a href="#geoBromley" name="geoBromley">#</a> d3.<b>geoBromley</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
154
|
+
<a href="#geoBromley" name="geoBromley">#</a> d3.<b>geoBromley</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/bromley.js), [Examples](https://observablehq.com/@d3/bromley)
|
|
143
155
|
<br><a href="#geoBromleyRaw" name="geoBromleyRaw">#</a> d3.<b>geoBromleyRaw</b>
|
|
144
156
|
|
|
145
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
157
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/bromley.png" width="480" height="250">](https://observablehq.com/@d3/bromley)
|
|
146
158
|
|
|
147
159
|
The Bromley projection is a rescaled [Mollweide projection](#geoMollweide).
|
|
148
160
|
|
|
149
|
-
<a href="#geoChamberlin" name="geoChamberlin">#</a> d3.<b>geoChamberlin</b>(<i>point0</i>, <i>point1</i>, <i>point2</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
161
|
+
<a href="#geoChamberlin" name="geoChamberlin">#</a> d3.<b>geoChamberlin</b>(<i>point0</i>, <i>point1</i>, <i>point2</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/chamberlin.js)
|
|
150
162
|
<br><a href="#geoChamberlinRaw" name="geoChamberlinRaw">#</a> d3.<b>geoChamberlinRaw</b>(<i>p0</i>, <i>p1</i>, <i>p2</i>)
|
|
151
163
|
|
|
152
|
-
The Chamberlin trimetric projection. This method does not support [*projection*.rotate](https://github.com/d3/d3-geo/blob/
|
|
164
|
+
The Chamberlin trimetric projection. This method does not support [*projection*.rotate](https://github.com/d3/d3-geo/blob/main/README.md#projection_rotate): the three reference points implicitly determine a fixed rotation.
|
|
153
165
|
|
|
154
|
-
<a href="#geoChamberlinAfrica" name="geoChamberlinAfrica">#</a> d3.<b>geoChamberlinAfrica</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
166
|
+
<a href="#geoChamberlinAfrica" name="geoChamberlinAfrica">#</a> d3.<b>geoChamberlinAfrica</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/chamberlin.js)
|
|
155
167
|
|
|
156
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
168
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/chamberlinAfrica.png" width="480" height="250">](https://bl.ocks.org/mbostock/5625053)
|
|
157
169
|
|
|
158
170
|
The Chamberlin projection for Africa using points [0°, 22°], [45°, 22°], [22.5°, -22°].
|
|
159
171
|
|
|
160
|
-
<a href="#geoCollignon" name="geoCollignon">#</a> d3.<b>geoCollignon</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
172
|
+
<a href="#geoCollignon" name="geoCollignon">#</a> d3.<b>geoCollignon</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/collignon.js), [Examples](https://observablehq.com/@d3/collignon)
|
|
161
173
|
<br><a href="#geoCollignonRaw" name="geoCollignonRaw">#</a> d3.<b>geoCollignonRaw</b>
|
|
162
174
|
|
|
163
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
175
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/collignon.png" width="480" height="250">](https://observablehq.com/@d3/collignon)
|
|
164
176
|
|
|
165
177
|
The Collignon equal-area pseudocylindrical projection. This projection is used in the polar areas of the [HEALPix projection](#geoHealpix).
|
|
166
178
|
|
|
167
|
-
<a href="#geoConicConformal" name="geoConicConformal">#</a> d3.<b>geoConicConformal</b>() · [Source](https://github.com/d3/d3-geo/blob/
|
|
179
|
+
<a href="#geoConicConformal" name="geoConicConformal">#</a> d3.<b>geoConicConformal</b>() · [Source](https://github.com/d3/d3-geo/blob/main/src/projection/conicConformal.js) [\[d3-geo\]](https://github.com/d3/d3-geo/blob/main/README.md#geoConicConformal), [Examples](https://observablehq.com/@d3/conic-conformal)
|
|
168
180
|
<br><a href="#geoConicConformalRaw" name="geoConicConformalRaw">#</a> d3.<b>geoConicConformalRaw</b>
|
|
169
181
|
|
|
170
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo/
|
|
182
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo/main/img/conicConformal.png" width="480" height="250">](https://observablehq.com/@d3/conic-conformal)
|
|
171
183
|
|
|
172
184
|
The Lambert conformal conic projection.
|
|
173
185
|
|
|
174
|
-
<a href="#geoConicEqualArea" name="geoConicEqualArea">#</a> d3.<b>geoConicEqualArea</b>() · [Source](https://github.com/d3/d3-geo/blob/
|
|
186
|
+
<a href="#geoConicEqualArea" name="geoConicEqualArea">#</a> d3.<b>geoConicEqualArea</b>() · [Source](https://github.com/d3/d3-geo/blob/main/src/projection/conicEqualArea.js) [\[d3-geo\]](https://github.com/d3/d3-geo/blob/main/README.md#geoConicEqualArea), [Examples](https://observablehq.com/@d3/conic-equal-area)
|
|
175
187
|
<br><a href="#geoConicEqualAreaRaw" name="geoConicEqualAreaRaw">#</a> d3.<b>geoConicEqualAreaRaw</b>
|
|
176
188
|
|
|
177
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo/
|
|
189
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo/main/img/conicEqualArea.png" width="480" height="250">](https://observablehq.com/@d3/conic-equal-area)
|
|
178
190
|
|
|
179
191
|
Albers’ conic equal-area projection.
|
|
180
192
|
|
|
181
|
-
<a href="#geoConicEquidistant" name="geoConicEquidistant">#</a> d3.<b>geoConicEquidistant</b>() · [Source](https://github.com/d3/d3-geo/blob/
|
|
193
|
+
<a href="#geoConicEquidistant" name="geoConicEquidistant">#</a> d3.<b>geoConicEquidistant</b>() · [Source](https://github.com/d3/d3-geo/blob/main/src/projection/conicEquidistant.js) [\[d3-geo\]](https://github.com/d3/d3-geo/blob/main/README.md#geoConicEquidistant), [Examples](https://observablehq.com/@d3/conic-equidistant)
|
|
182
194
|
<br><a href="#geoConicEquidistantRaw" name="geoConicEquidistantRaw">#</a> d3.<b>geoConicEquidistantRaw</b>
|
|
183
195
|
|
|
184
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo/
|
|
196
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo/main/img/conicEquidistant.png" width="480" height="250">](https://observablehq.com/@d3/conic-equidistant)
|
|
185
197
|
|
|
186
198
|
The conic equidistant projection.
|
|
187
199
|
|
|
188
|
-
<a href="#geoCraig" name="geoCraig">#</a> d3.<b>geoCraig</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
200
|
+
<a href="#geoCraig" name="geoCraig">#</a> d3.<b>geoCraig</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/craig.js), [Examples](https://observablehq.com/@d3/craig)
|
|
189
201
|
<br><a href="#geoCraigRaw" name="geoCraigRaw">#</a> d3.<b>geoCraigRaw</b>(<i>phi</i>)
|
|
190
202
|
|
|
191
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
203
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/craig.png" width="480" height="250">](https://observablehq.com/@d3/craig)
|
|
192
204
|
|
|
193
205
|
The Craig retroazimuthal projection. Note: this projection tends to [fold over itself](https://bl.ocks.org/mbostock/4459716) if the [standard parallel](#craig_parallel) is non-zero; we have not yet implemented the necessary advanced clipping to avoid overlap.
|
|
194
206
|
|
|
@@ -196,17 +208,17 @@ The Craig retroazimuthal projection. Note: this projection tends to [fold over i
|
|
|
196
208
|
|
|
197
209
|
Defaults to 0°.
|
|
198
210
|
|
|
199
|
-
<a href="#geoCraster" name="geoCraster">#</a> d3.<b>geoCraster</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
211
|
+
<a href="#geoCraster" name="geoCraster">#</a> d3.<b>geoCraster</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/craster.js), [Examples](https://observablehq.com/@d3/craster)
|
|
200
212
|
<br><a href="#geoCrasterRaw" name="geoCrasterRaw">#</a> d3.<b>geoCrasterRaw</b>
|
|
201
213
|
|
|
202
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
214
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/craster.png" width="480" height="250">](https://observablehq.com/@d3/craster)
|
|
203
215
|
|
|
204
216
|
The Craster parabolic projection; also known as Putniņš P4.
|
|
205
217
|
|
|
206
|
-
<a href="#geoCylindricalEqualArea" name="geoCylindricalEqualArea">#</a> d3.<b>geoCylindricalEqualArea</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
218
|
+
<a href="#geoCylindricalEqualArea" name="geoCylindricalEqualArea">#</a> d3.<b>geoCylindricalEqualArea</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/cylindricalEqualArea.js), [Examples](https://observablehq.com/@mbostock/cylindrical-equal-area-projections)
|
|
207
219
|
<br><a href="#geoCylindricalEqualAreaRaw" name="geoCylindricalEqualAreaRaw">#</a> d3.<b>geoCylindricalEqualAreaRaw</b>(<i>phi0</i>)
|
|
208
220
|
|
|
209
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
221
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/cylindricalEqualArea.png" width="480" height="250">](https://observablehq.com/@mbostock/cylindrical-equal-area-projections)
|
|
210
222
|
|
|
211
223
|
The cylindrical equal-area projection. Depending on the chosen [parallel](#cylindricalEqualArea_parallel), this projection is also known as the Lambert cylindrical equal-area (0°), Behrmann (30°), Hobo–Dyer (37.5°), Gall–Peters (45°), Balthasart (50°) and Tobler world-in-a-square (~55.654°).
|
|
212
224
|
|
|
@@ -214,10 +226,10 @@ The cylindrical equal-area projection. Depending on the chosen [parallel](#cylin
|
|
|
214
226
|
|
|
215
227
|
Defaults to approximately 38.58°, fitting the world in a 960×500 rectangle.
|
|
216
228
|
|
|
217
|
-
<a href="#geoCylindricalStereographic" name="geoCylindricalStereographic">#</a> d3.<b>geoCylindricalStereographic</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
229
|
+
<a href="#geoCylindricalStereographic" name="geoCylindricalStereographic">#</a> d3.<b>geoCylindricalStereographic</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/cylindricalStereographic.js), [Examples](https://observablehq.com/@d3/cylindrical-stereographic)
|
|
218
230
|
<br><a href="#geoCylindricalStereographicRaw" name="geoCylindricalStereographicRaw">#</a> d3.<b>geoCylindricalStereographicRaw</b>(<i>phi0</i>)
|
|
219
231
|
|
|
220
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
232
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/cylindricalStereographic.png" width="480" height="250">](https://observablehq.com/@d3/cylindrical-stereographic)
|
|
221
233
|
|
|
222
234
|
The cylindrical stereographic projection. Depending on the chosen [parallel](#cylindricalStereographic_parallel), this projection is also known as Braun’s stereographic (0°) and Gall’s stereographic (45°).
|
|
223
235
|
|
|
@@ -225,80 +237,80 @@ The cylindrical stereographic projection. Depending on the chosen [parallel](#cy
|
|
|
225
237
|
|
|
226
238
|
Defaults to 0°.
|
|
227
239
|
|
|
228
|
-
<a href="#geoEckert1" name="geoEckert1">#</a> d3.<b>geoEckert1</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
240
|
+
<a href="#geoEckert1" name="geoEckert1">#</a> d3.<b>geoEckert1</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/eckert1.js), [Examples](https://observablehq.com/@d3/eckert-i)
|
|
229
241
|
<br><a href="#geoEckert1Raw" name="geoEckert1Raw">#</a> d3.<b>geoEckert1Raw</b>
|
|
230
242
|
|
|
231
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
243
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/eckert1.png" width="480" height="250">](https://observablehq.com/@d3/eckert-i)
|
|
232
244
|
|
|
233
245
|
The Eckert I projection.
|
|
234
246
|
|
|
235
|
-
<a href="#geoEckert2" name="geoEckert2">#</a> d3.<b>geoEckert2</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
247
|
+
<a href="#geoEckert2" name="geoEckert2">#</a> d3.<b>geoEckert2</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/eckert2.js), [Examples](https://observablehq.com/@d3/eckert-ii)
|
|
236
248
|
<br><a href="#geoEckert2Raw" name="geoEckert2Raw">#</a> d3.<b>geoEckert2Raw</b>
|
|
237
249
|
|
|
238
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
250
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/eckert2.png" width="480" height="250">](https://observablehq.com/@d3/eckert-ii)
|
|
239
251
|
|
|
240
252
|
The Eckert II projection.
|
|
241
253
|
|
|
242
|
-
<a href="#geoEckert3" name="geoEckert3">#</a> d3.<b>geoEckert3</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
254
|
+
<a href="#geoEckert3" name="geoEckert3">#</a> d3.<b>geoEckert3</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/eckert3.js), [Examples](https://observablehq.com/@d3/eckert-iii)
|
|
243
255
|
<br><a href="#geoEckert3Raw" name="geoEckert3Raw">#</a> d3.<b>geoEckert3Raw</b>
|
|
244
256
|
|
|
245
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
257
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/eckert3.png" width="480" height="250">](https://observablehq.com/@d3/eckert-iii)
|
|
246
258
|
|
|
247
259
|
The Eckert III projection.
|
|
248
260
|
|
|
249
|
-
<a href="#geoEckert4" name="geoEckert4">#</a> d3.<b>geoEckert4</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
261
|
+
<a href="#geoEckert4" name="geoEckert4">#</a> d3.<b>geoEckert4</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/eckert4.js), [Examples](https://observablehq.com/@d3/eckert-iv)
|
|
250
262
|
<br><a href="#geoEckert4Raw" name="geoEckert4Raw">#</a> d3.<b>geoEckert4Raw</b>
|
|
251
263
|
|
|
252
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
264
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/eckert4.png" width="480" height="250">](https://observablehq.com/@d3/eckert-iv)
|
|
253
265
|
|
|
254
266
|
The Eckert IV projection.
|
|
255
267
|
|
|
256
|
-
<a href="#geoEckert5" name="geoEckert5">#</a> d3.<b>geoEckert5</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
268
|
+
<a href="#geoEckert5" name="geoEckert5">#</a> d3.<b>geoEckert5</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/eckert5.js), [Examples](https://observablehq.com/@d3/eckert-v)
|
|
257
269
|
<br><a href="#geoEckert5Raw" name="geoEckert5Raw">#</a> d3.<b>geoEckert5Raw</b>
|
|
258
270
|
|
|
259
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
271
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/eckert5.png" width="480" height="250">](https://observablehq.com/@d3/eckert-v)
|
|
260
272
|
|
|
261
273
|
The Eckert V projection.
|
|
262
274
|
|
|
263
|
-
<a href="#geoEckert6" name="geoEckert6">#</a> d3.<b>geoEckert6</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
275
|
+
<a href="#geoEckert6" name="geoEckert6">#</a> d3.<b>geoEckert6</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/eckert6.js), [Examples](https://observablehq.com/@d3/eckert-vi)
|
|
264
276
|
<br><a href="#geoEckert6Raw" name="geoEckert6Raw">#</a> d3.<b>geoEckert6Raw</b>
|
|
265
277
|
|
|
266
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
278
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/eckert6.png" width="480" height="250">](https://observablehq.com/@d3/eckert-vi)
|
|
267
279
|
|
|
268
280
|
The Eckert VI projection.
|
|
269
281
|
|
|
270
|
-
<a href="#geoEisenlohr" name="geoEisenlohr">#</a> d3.<b>geoEisenlohr</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
282
|
+
<a href="#geoEisenlohr" name="geoEisenlohr">#</a> d3.<b>geoEisenlohr</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/eisenlohr.js), [Examples](https://observablehq.com/@d3/eisenlohr)
|
|
271
283
|
<br><a href="#geoEisenlohrRaw" name="geoEisenlohrRaw">#</a> d3.<b>geoEisenlohrRaw</b>(<i>lambda</i>, <i>phi</i>)
|
|
272
284
|
|
|
273
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
285
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/eisenlohr.png" width="480" height="250">](https://observablehq.com/@d3/eisenlohr)
|
|
274
286
|
|
|
275
287
|
The Eisenlohr conformal projection.
|
|
276
288
|
|
|
277
|
-
<a href="#geoEquirectangular" name="geoEquirectangular">#</a> d3.<b>geoEquirectangular</b>() · [Source](https://github.com/d3/d3-geo/blob/
|
|
289
|
+
<a href="#geoEquirectangular" name="geoEquirectangular">#</a> d3.<b>geoEquirectangular</b>() · [Source](https://github.com/d3/d3-geo/blob/main/src/projection/equirectangular.js) [\[d3-geo\]](https://github.com/d3/d3-geo/blob/main/README.md#geoEquirectangular), [Examples](https://observablehq.com/@d3/equirectangular)
|
|
278
290
|
<br><a href="#geoEquirectangularRaw" name="geoEquirectangularRaw">#</a> d3.<b>geoEquirectangularRaw</b>
|
|
279
291
|
|
|
280
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo/
|
|
292
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo/main/img/equirectangular.png" width="480" height="250">](https://observablehq.com/@d3/equirectangular)
|
|
281
293
|
|
|
282
294
|
The equirectangular (plate carrée) projection. The [Cassini projection](https://observablehq.com/@d3/cassini) is the transverse aspect of the equirectangular projection.
|
|
283
295
|
|
|
284
|
-
<a href="#geoFahey" name="geoFahey">#</a> d3.<b>geoFahey</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
296
|
+
<a href="#geoFahey" name="geoFahey">#</a> d3.<b>geoFahey</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/fahey.js), [Examples](https://observablehq.com/@d3/fahey)
|
|
285
297
|
<br><a href="#geoFaheyRaw" name="geoFaheyRaw">#</a> d3.<b>geoFaheyRaw</b>
|
|
286
298
|
|
|
287
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
299
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/fahey.png" width="480" height="250">](https://observablehq.com/@d3/fahey)
|
|
288
300
|
|
|
289
301
|
The Fahey pseudocylindrical projection.
|
|
290
302
|
|
|
291
|
-
<a href="#geoFoucaut" name="geoFoucaut">#</a> d3.<b>geoFoucaut</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
303
|
+
<a href="#geoFoucaut" name="geoFoucaut">#</a> d3.<b>geoFoucaut</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/foucaut.js), [Examples](https://observablehq.com/@d3/foucaut)
|
|
292
304
|
<br><a href="#geoFoucautRaw" name="geoFoucautRaw">#</a> d3.<b>geoFoucautRaw</b>
|
|
293
305
|
|
|
294
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
306
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/foucaut.png" width="480" height="250">](https://www.jasondavies.com/maps/foucaut/)
|
|
295
307
|
|
|
296
308
|
Foucaut’s stereographic equivalent projection.
|
|
297
309
|
|
|
298
|
-
<a href="#geoFoucautSinusoidal" name="geoFoucautSinusoidal">#</a> d3.<b>geoFoucautSinusoidal</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
310
|
+
<a href="#geoFoucautSinusoidal" name="geoFoucautSinusoidal">#</a> d3.<b>geoFoucautSinusoidal</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/foucautSinusoidal.js), [Examples](https://observablehq.com/@d3/foucaut-sinusoidal)
|
|
299
311
|
<br><a href="#geoFoucautSinusoidalRaw" name="geoFoucautSinusoidalRaw">#</a> d3.<b>geoFoucautSinusoidalRaw</b>
|
|
300
312
|
|
|
301
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
313
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/foucautSinusoidal.png" width="480" height="250">](https://observablehq.com/@d3/foucaut-sinusoidal)
|
|
302
314
|
|
|
303
315
|
Foucaut’s sinusoidal projection, an equal-area average of the sinusoidal and Lambert’s cylindrical projections.
|
|
304
316
|
|
|
@@ -306,98 +318,98 @@ Foucaut’s sinusoidal projection, an equal-area average of the sinusoidal and L
|
|
|
306
318
|
|
|
307
319
|
Relative weight of the cylindrical projection. Defaults to 0.5.
|
|
308
320
|
|
|
309
|
-
<a href="#geoGilbert" name="geoGilbert">#</a> d3.<b>geoGilbert</b>([<i>type</i>]) · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
321
|
+
<a href="#geoGilbert" name="geoGilbert">#</a> d3.<b>geoGilbert</b>([<i>type</i>]) · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/gilbert.js), [Examples](https://observablehq.com/@d3/gilbert)
|
|
310
322
|
|
|
311
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
323
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/gilbert.png" width="480" height="250">](https://observablehq.com/@d3/gilbert)
|
|
312
324
|
|
|
313
|
-
Gilbert’s two-world perspective projection. Wraps an instance of the specified projection *type*; if not specified, defaults to [d3.geoOrthographic](https://github.com/d3/d3-geo/blob/
|
|
325
|
+
Gilbert’s two-world perspective projection. Wraps an instance of the specified projection *type*; if not specified, defaults to [d3.geoOrthographic](https://github.com/d3/d3-geo/blob/main/README.md#geoOrthographic).
|
|
314
326
|
|
|
315
|
-
<a href="#geoGingery" name="geoGingery">#</a> d3.<b>geoGingery</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
327
|
+
<a href="#geoGingery" name="geoGingery">#</a> d3.<b>geoGingery</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/gingery.js), [Examples](https://observablehq.com/@d3/gingery)
|
|
316
328
|
<br><a href="#geoGingeryRaw" name="geoGingeryRaw">#</a> d3.<b>geoGingeryRaw</b>(<i>rho</i>, <i>lobes</i>)
|
|
317
329
|
|
|
318
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
330
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/gingery.png" width="480" height="250">](https://observablehq.com/@d3/gingery)
|
|
319
331
|
|
|
320
332
|
The U.S.-centric Gingery world projection, as inspired by Cram’s Air Age. Note: requires clipping to the sphere.
|
|
321
333
|
|
|
322
|
-
<a href="#gingery_radius" name="gingery_radius">#</a> <i>gingery</i>.<b>radius</b>([<i>radius</i>]) · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
334
|
+
<a href="#gingery_radius" name="gingery_radius">#</a> <i>gingery</i>.<b>radius</b>([<i>radius</i>]) · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/gingery.js)
|
|
323
335
|
|
|
324
336
|
Defaults to 30°.
|
|
325
337
|
|
|
326
|
-
<a href="#gingery_lobes" name="gingery_lobes">#</a> <i>gingery</i>.<b>lobes</b>([<i>lobes</i>]) · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
338
|
+
<a href="#gingery_lobes" name="gingery_lobes">#</a> <i>gingery</i>.<b>lobes</b>([<i>lobes</i>]) · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/gingery.js)
|
|
327
339
|
|
|
328
340
|
Defaults to 6.
|
|
329
341
|
|
|
330
|
-
<a href="#geoGinzburg4" name="geoGinzburg4">#</a> d3.<b>geoGinzburg4</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
342
|
+
<a href="#geoGinzburg4" name="geoGinzburg4">#</a> d3.<b>geoGinzburg4</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/ginzburg4.js), [Examples](https://observablehq.com/@d3/ginzburg-iv)
|
|
331
343
|
<br><a href="#geoGinzburg4Raw" name="geoGinzburg4Raw">#</a> d3.<b>geoGinzburg4Raw</b>
|
|
332
344
|
|
|
333
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
345
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/ginzburg4.png" width="480" height="250">](https://observablehq.com/@d3/ginzburg-iv)
|
|
334
346
|
|
|
335
347
|
The Ginzburg IV projection.
|
|
336
348
|
|
|
337
|
-
<a href="#geoGinzburg5" name="geoGinzburg5">#</a> d3.<b>geoGinzburg5</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
349
|
+
<a href="#geoGinzburg5" name="geoGinzburg5">#</a> d3.<b>geoGinzburg5</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/ginzburg5.js), [Examples](https://observablehq.com/@d3/ginzburg-v)
|
|
338
350
|
<br><a href="#geoGinzburg5Raw" name="geoGinzburg5Raw">#</a> d3.<b>geoGinzburg5Raw</b>
|
|
339
351
|
|
|
340
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
352
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/ginzburg5.png" width="480" height="250">](https://observablehq.com/@d3/ginzburg-v)
|
|
341
353
|
|
|
342
354
|
The Ginzburg V projection.
|
|
343
355
|
|
|
344
|
-
<a href="#geoGinzburg6" name="geoGinzburg6">#</a> d3.<b>geoGinzburg6</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
356
|
+
<a href="#geoGinzburg6" name="geoGinzburg6">#</a> d3.<b>geoGinzburg6</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/ginzburg6.js), [Examples](https://observablehq.com/@d3/ginzburg-vi)
|
|
345
357
|
<br><a href="#geoGinzburg6Raw" name="geoGinzburg6Raw">#</a> d3.<b>geoGinzburg6Raw</b>
|
|
346
358
|
|
|
347
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
359
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/ginzburg6.png" width="480" height="250">](https://observablehq.com/@d3/ginzburg-vi)
|
|
348
360
|
|
|
349
361
|
The Ginzburg VI projection.
|
|
350
362
|
|
|
351
|
-
<a href="#geoGinzburg8" name="geoGinzburg8">#</a> d3.<b>geoGinzburg8</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
363
|
+
<a href="#geoGinzburg8" name="geoGinzburg8">#</a> d3.<b>geoGinzburg8</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/ginzburg8.js), [Examples](https://observablehq.com/@d3/ginzburg-viii)
|
|
352
364
|
<br><a href="#geoGinzburg8Raw" name="geoGinzburg8Raw">#</a> d3.<b>geoGinzburg8Raw</b>
|
|
353
365
|
|
|
354
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
366
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/ginzburg8.png" width="480" height="250">](https://observablehq.com/@d3/ginzburg-viii)
|
|
355
367
|
|
|
356
368
|
The Ginzburg VIII projection.
|
|
357
369
|
|
|
358
|
-
<a href="#geoGinzburg9" name="geoGinzburg9">#</a> d3.<b>geoGinzburg9</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
370
|
+
<a href="#geoGinzburg9" name="geoGinzburg9">#</a> d3.<b>geoGinzburg9</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/ginzburg9.js), [Examples](https://observablehq.com/@d3/ginzburg-ix)
|
|
359
371
|
<br><a href="#geoGinzburg9Raw" name="geoGinzburg9Raw">#</a> d3.<b>geoGinzburg9Raw</b>
|
|
360
372
|
|
|
361
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
373
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/ginzburg9.png" width="480" height="250">](https://observablehq.com/@d3/ginzburg-ix)
|
|
362
374
|
|
|
363
375
|
The Ginzburg IX projection.
|
|
364
376
|
|
|
365
|
-
<a href="#geoGnomonic" name="geoGnomonic">#</a> d3.<b>geoGnomonic</b>() · [Source](https://github.com/d3/d3-geo/blob/
|
|
377
|
+
<a href="#geoGnomonic" name="geoGnomonic">#</a> d3.<b>geoGnomonic</b>() · [Source](https://github.com/d3/d3-geo/blob/main/src/projection/gnomonic.js) [\[d3-geo\]](https://github.com/d3/d3-geo/blob/main/README.md#geoGnomonic), [Examples](https://observablehq.com/@d3/gnomonic)
|
|
366
378
|
<br><a href="#geoGnomonicRaw" name="geoGnomonicRaw">#</a> d3.<b>geoGnomonicRaw</b>
|
|
367
379
|
|
|
368
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo/
|
|
380
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo/main/img/gnomonic.png" width="480" height="250">](https://observablehq.com/@d3/gnomonic)
|
|
369
381
|
|
|
370
382
|
The gnomonic projection.
|
|
371
383
|
|
|
372
|
-
<a href="#geoGringorten" name="geoGringorten">#</a> d3.<b>geoGringorten</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
384
|
+
<a href="#geoGringorten" name="geoGringorten">#</a> d3.<b>geoGringorten</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/gringorten.js), [Examples](https://observablehq.com/@d3/gringorten)
|
|
373
385
|
<br><a href="#geoGringortenRaw" name="geoGringortenRaw">#</a> d3.<b>geoGringortenRaw</b>
|
|
374
386
|
|
|
375
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
387
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/gringorten.png" width="480" height="250">](https://observablehq.com/@d3/gringorten)
|
|
376
388
|
|
|
377
389
|
The Gringorten square equal-area projection, rearranged to give each hemisphere an entire square.
|
|
378
390
|
|
|
379
|
-
<a href="#geoGuyou" name="geoGuyou">#</a> d3.<b>geoGuyou</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
391
|
+
<a href="#geoGuyou" name="geoGuyou">#</a> d3.<b>geoGuyou</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/guyou.js), [Examples](https://observablehq.com/@d3/guyou)
|
|
380
392
|
<br><a href="#geoGuyouRaw" name="geoGuyouRaw">#</a> d3.<b>geoGuyouRaw</b>
|
|
381
393
|
|
|
382
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
394
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/guyou.png" width="480" height="250">](https://observablehq.com/@d3/guyou)
|
|
383
395
|
|
|
384
396
|
The Guyou hemisphere-in-a-square projection. Peirce is credited with its [quincuncial form](#geoPeirceQuincuncial).
|
|
385
397
|
|
|
386
|
-
<a href="#geoHammer" name="geoHammer">#</a> d3.<b>geoHammer</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
398
|
+
<a href="#geoHammer" name="geoHammer">#</a> d3.<b>geoHammer</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/hammer.js), [Examples](https://observablehq.com/@d3/hammer)
|
|
387
399
|
<br><a href="#geoHammerRaw" name="geoHammerRaw">#</a> d3.<b>geoHammerRaw</b>(<i>A</i>, <i>B</i>)
|
|
388
400
|
|
|
389
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
401
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/hammer.png" width="480" height="250">](https://observablehq.com/@d3/hammer)
|
|
390
402
|
|
|
391
403
|
The Hammer projection. Depending the chosen coefficient and aspect, also known as [Eckert–Greifendorff](https://observablehq.com/@d3/hammer?b=4), [quartic authalic](https://observablehq.com/@d3/hammer?b=Infinity), and [Briesemeister](https://observablehq.com/@d3/briesemeister-projection).
|
|
392
404
|
|
|
393
|
-
<a href="#hammer_coefficient" name="hammer_coefficient">#</a> <i>hammer</i>.<b>coefficient</b>([<i>coefficient</i>]) · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
405
|
+
<a href="#hammer_coefficient" name="hammer_coefficient">#</a> <i>hammer</i>.<b>coefficient</b>([<i>coefficient</i>]) · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/hammer.js)
|
|
394
406
|
|
|
395
407
|
Defaults to 2.
|
|
396
408
|
|
|
397
|
-
<a href="#geoHammerRetroazimuthal" name="geoHammerRetroazimuthal">#</a> d3.<b>geoHammerRetroazimuthal</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
409
|
+
<a href="#geoHammerRetroazimuthal" name="geoHammerRetroazimuthal">#</a> d3.<b>geoHammerRetroazimuthal</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/hammerRetroazimuthal.js), [Examples](https://observablehq.com/@d3/hammer-retroazimuthal)
|
|
398
410
|
<br><a href="#geoHammerRetroazimuthalRaw" name="geoHammerRetroazimuthalRaw">#</a> d3.<b>geoHammerRetroazimuthalRaw</b>(<i>phi0</i>)
|
|
399
411
|
|
|
400
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
412
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/hammerRetroazimuthal.png" width="480" height="250">](https://observablehq.com/@d3/hammer-retroazimuthal)
|
|
401
413
|
|
|
402
414
|
The Hammer retroazimuthal projection. Note: requires clipping to the sphere.
|
|
403
415
|
|
|
@@ -405,10 +417,10 @@ The Hammer retroazimuthal projection. Note: requires clipping to the sphere.
|
|
|
405
417
|
|
|
406
418
|
Defaults to 45°.
|
|
407
419
|
|
|
408
|
-
<a href="#geoHealpix" name="geoHealpix">#</a> d3.<b>geoHealpix</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
420
|
+
<a href="#geoHealpix" name="geoHealpix">#</a> d3.<b>geoHealpix</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/healpix.js), [Examples](https://observablehq.com/@d3/healpix)
|
|
409
421
|
<br><a href="#geoHealpixRaw" name="geoHealpixRaw">#</a> d3.<b>geoHealpixRaw</b>(<i>lobes</i>)
|
|
410
422
|
|
|
411
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
423
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/healpix.png" width="480" height="250">](https://observablehq.com/@d3/healpix)
|
|
412
424
|
|
|
413
425
|
The HEALPix projection: a <b>H</b>ierarchical <b>E</b>qual <b>A</b>rea iso<b>L</b>atitude <b>Pix</b>elisation of a 2-sphere. In this implementation, the parameter *K* is fixed at 3. Note: requires clipping to the sphere.
|
|
414
426
|
|
|
@@ -416,28 +428,28 @@ The HEALPix projection: a <b>H</b>ierarchical <b>E</b>qual <b>A</b>rea iso<b>L</
|
|
|
416
428
|
|
|
417
429
|
If *lobes* is specified, sets the number of lobes (the parameter *H* in the literature) and returns this projection. If *lobes* is not specified, returns the current lobe number, which defaults to 4.
|
|
418
430
|
|
|
419
|
-
<a href="#geoHill" name="geoHill">#</a> d3.<b>geoHill</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
431
|
+
<a href="#geoHill" name="geoHill">#</a> d3.<b>geoHill</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/hill.js), [Examples](https://observablehq.com/@d3/hill-eucyclic)
|
|
420
432
|
<br><a href="#geoHillRaw" name="geoHillRaw">#</a> d3.<b>geoHillRaw</b>(<i>K</i>)
|
|
421
433
|
|
|
422
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
434
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/hill.png" width="480" height="250">](https://observablehq.com/@d3/hill-eucyclic)
|
|
423
435
|
|
|
424
436
|
Hill eucyclic projection is pseudoconic and equal-area.
|
|
425
437
|
|
|
426
|
-
<a href="hill_ratio" name="hill_ratio">#</a> <i>hill</i>.<b>ratio</b>([<i>ratio</i>])
|
|
438
|
+
<a href="#hill_ratio" name="hill_ratio">#</a> <i>hill</i>.<b>ratio</b>([<i>ratio</i>])
|
|
427
439
|
|
|
428
440
|
Defaults to 1. With a ratio of 0, this projection becomes the [Maurer No. 73](https://observablehq.com/@d3/hill-eucyclic?b=0). As it approaches ∞, the projection converges to the [Eckert IV](#geoEckert4).
|
|
429
441
|
|
|
430
|
-
<a href="#geoHomolosine" name="geoHomolosine">#</a> d3.<b>geoHomolosine</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
442
|
+
<a href="#geoHomolosine" name="geoHomolosine">#</a> d3.<b>geoHomolosine</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/homolosine.js), [Examples](https://observablehq.com/@d3/goode-homolosine)
|
|
431
443
|
<br><a href="#geoHomolosineRaw" name="geoHomolosineRaw">#</a> d3.<b>geoHomolosineRaw</b>
|
|
432
444
|
|
|
433
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
445
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/homolosine.png" width="480" height="250">](https://observablehq.com/@d3/goode-homolosine)
|
|
434
446
|
|
|
435
447
|
The pseudocylindrical, equal-area Goode homolosine projection is normally presented in [interrupted form](#geoInterruptedHomolosine).
|
|
436
448
|
|
|
437
|
-
<a href="#geoHufnagel" name="geoHufnagel">#</a> d3.<b>geoHufnagel</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
449
|
+
<a href="#geoHufnagel" name="geoHufnagel">#</a> d3.<b>geoHufnagel</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/hufnagel.js), [Examples](https://observablehq.com/@fil/hufnagel-projection)
|
|
438
450
|
<br><a href="#geoHufnagelRaw" name="geoHufnagelRaw">#</a> d3.<b>geoHufnagelRaw</b>
|
|
439
451
|
|
|
440
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
452
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/hufnagel.png" width="480" height="250">](https://observablehq.com/@fil/hufnagel-projection)
|
|
441
453
|
|
|
442
454
|
A customizable family of pseudocylindrical equal-area projections by Herbert Hufnagel.
|
|
443
455
|
|
|
@@ -449,24 +461,24 @@ A customizable family of pseudocylindrical equal-area projections by Herbert Huf
|
|
|
449
461
|
|
|
450
462
|
<a href="#hufnagel_ratio" name="hufnagel_ratio">#</a> <i>hufnagel</i>.<b>ratio</b>([<i>ratio</i>])
|
|
451
463
|
|
|
452
|
-
<a href="#geoHyperelliptical" name="geoHyperelliptical">#</a> d3.<b>geoHyperelliptical</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
464
|
+
<a href="#geoHyperelliptical" name="geoHyperelliptical">#</a> d3.<b>geoHyperelliptical</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/hyperelliptical.js), [Examples](https://observablehq.com/@fil/toblers-hyperelliptical-projection)
|
|
453
465
|
<br><a href="#geoHyperellipticalRaw" name="geoHyperellipticalRaw">#</a> d3.<b>geoHyperellipticalRaw</b>
|
|
454
466
|
|
|
455
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
467
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/hyperelliptical.png" width="480" height="250">](https://observablehq.com/@fil/toblers-hyperelliptical-projection)
|
|
456
468
|
|
|
457
469
|
Waldo R. Tobler’s hyperelliptical is a family of equal-area pseudocylindrical projections. Parameters include _k_, the exponent of the superellipse (or Lamé curve) that defines the shape of the meridians (default _k_ = 2.5); _alpha_, which governs the weight of the cylindrical projection that is averaged with the superellipse (default _alpha_ = 0); and _gamma_, that shapes the aspect ratio (default: _gamma_ = 1.183136).
|
|
458
470
|
|
|
459
|
-
<a href="#geoKavrayskiy7" name="geoKavrayskiy7">#</a> d3.<b>geoKavrayskiy7</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
471
|
+
<a href="#geoKavrayskiy7" name="geoKavrayskiy7">#</a> d3.<b>geoKavrayskiy7</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/kavrayskiy7.js), [Examples](https://observablehq.com/@d3/kavrayskiy-vii)
|
|
460
472
|
<br><a href="#geoKavrayskiy7Raw" name="geoKavrayskiy7Raw">#</a> d3.<b>geoKavrayskiy7Raw</b>
|
|
461
473
|
|
|
462
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
474
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/kavrayskiy7.png" width="480" height="250">](https://observablehq.com/@d3/kavrayskiy-vii)
|
|
463
475
|
|
|
464
476
|
The Kavrayskiy VII pseudocylindrical projection.
|
|
465
477
|
|
|
466
|
-
<a href="#geoLagrange" name="geoLagrange">#</a> d3.<b>geoLagrange</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
478
|
+
<a href="#geoLagrange" name="geoLagrange">#</a> d3.<b>geoLagrange</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/lagrange.js), [Examples](https://observablehq.com/@d3/lagrange)
|
|
467
479
|
<br><a href="#geoLagrangeRaw" name="geoLagrangeRaw">#</a> d3.<b>geoLagrangeRaw</b>(<i>n</i>)
|
|
468
480
|
|
|
469
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
481
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/lagrange.png" width="480" height="250">](https://observablehq.com/@d3/lagrange)
|
|
470
482
|
|
|
471
483
|
The Lagrange conformal projection.
|
|
472
484
|
|
|
@@ -474,31 +486,31 @@ The Lagrange conformal projection.
|
|
|
474
486
|
|
|
475
487
|
Defaults to 0.5.
|
|
476
488
|
|
|
477
|
-
<a href="#geoLarrivee" name="geoLarrivee">#</a> d3.<b>geoLarrivee</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
489
|
+
<a href="#geoLarrivee" name="geoLarrivee">#</a> d3.<b>geoLarrivee</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/larrivee.js), [Examples](https://observablehq.com/@d3/larrivee)
|
|
478
490
|
<br><a href="#geoLarriveeRaw" name="geoLarriveeRaw">#</a> d3.<b>geoLarriveeRaw</b>
|
|
479
491
|
|
|
480
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
492
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/larrivee.png" width="480" height="250">](https://observablehq.com/@d3/larrivee)
|
|
481
493
|
|
|
482
494
|
The Larrivée projection.
|
|
483
495
|
|
|
484
|
-
<a href="#geoLaskowski" name="geoLaskowski">#</a> d3.<b>geoLaskowski</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
496
|
+
<a href="#geoLaskowski" name="geoLaskowski">#</a> d3.<b>geoLaskowski</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/laskowski.js), [Examples](https://observablehq.com/@d3/laskowski-tri-optimal)
|
|
485
497
|
<br><a href="#geoLaskowskiRaw" name="geoLaskowskiRaw">#</a> d3.<b>geoLaskowskiRaw</b>
|
|
486
498
|
|
|
487
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
499
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/laskowski.png" width="480" height="250">](https://observablehq.com/@d3/laskowski-tri-optimal)
|
|
488
500
|
|
|
489
501
|
The Laskowski tri-optimal projection simultaneously minimizes distance, angular, and areal distortion.
|
|
490
502
|
|
|
491
|
-
<a href="#geoLittrow" name="geoLittrow">#</a> d3.<b>geoLittrow</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
503
|
+
<a href="#geoLittrow" name="geoLittrow">#</a> d3.<b>geoLittrow</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/littrow.js), [Examples](https://observablehq.com/@d3/littrow)
|
|
492
504
|
<br><a href="#geoLittrowRaw" name="geoLittrowRaw">#</a> d3.<b>geoLittrowRaw</b>
|
|
493
505
|
|
|
494
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
506
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/littrow.png" width="480" height="250">](https://observablehq.com/@d3/littrow)
|
|
495
507
|
|
|
496
508
|
The Littrow projection is the only conformal retroazimuthal map projection. Typically clipped to the geographic extent [[-90°, -60°], [90°, 60°]].
|
|
497
509
|
|
|
498
|
-
<a href="#geoLoximuthal" name="geoLoximuthal">#</a> d3.<b>geoLoximuthal</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
510
|
+
<a href="#geoLoximuthal" name="geoLoximuthal">#</a> d3.<b>geoLoximuthal</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/loximuthal.js), [Examples](https://observablehq.com/@d3/loximuthal)
|
|
499
511
|
<br><a href="#geoLoximuthalRaw" name="geoLoximuthalRaw">#</a> d3.<b>geoLoximuthalRaw</b>(<i>phi0</i>)
|
|
500
512
|
|
|
501
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
513
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/loximuthal.png" width="480" height="250">](https://observablehq.com/@d3/loximuthal)
|
|
502
514
|
|
|
503
515
|
The [loximuthal projection](https://en.wikipedia.org/wiki/Loximuthal_projection) is “characterized by the fact that loxodromes (rhumb lines) from one chosen central point (the intersection of the central meridian and central latitude) are shown as straight lines, correct in azimuth from the center, and are ‘true to scale’… It is neither an equal-area projection nor conformal.”
|
|
504
516
|
|
|
@@ -506,136 +518,136 @@ The [loximuthal projection](https://en.wikipedia.org/wiki/Loximuthal_projection)
|
|
|
506
518
|
|
|
507
519
|
Defaults to 40°.
|
|
508
520
|
|
|
509
|
-
<a href="#geoMercator" name="geoMercator">#</a> d3.<b>geoMercator</b>() · [Source](https://github.com/d3/d3-geo/blob/
|
|
521
|
+
<a href="#geoMercator" name="geoMercator">#</a> d3.<b>geoMercator</b>() · [Source](https://github.com/d3/d3-geo/blob/main/src/projection/mercator.js) [\[d3-geo\]](https://github.com/d3/d3-geo/blob/main/README.md#geoMercator), [Examples](https://observablehq.com/@d3/mercator)
|
|
510
522
|
<br><a href="#geoMercatorRaw" name="geoMercatorRaw">#</a> d3.<b>geoMercatorRaw</b>
|
|
511
523
|
|
|
512
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo/
|
|
524
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo/main/img/mercator.png" width="480" height="250">](https://observablehq.com/@d3/mercator)
|
|
513
525
|
|
|
514
526
|
The spherical Mercator projection.
|
|
515
527
|
|
|
516
|
-
<a href="#geoMiller" name="geoMiller">#</a> d3.<b>geoMiller</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
528
|
+
<a href="#geoMiller" name="geoMiller">#</a> d3.<b>geoMiller</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/miller.js), [Examples](https://observablehq.com/@d3/miller)
|
|
517
529
|
<br><a href="#geoMillerRaw" name="geoMillerRaw">#</a> d3.<b>geoMillerRaw</b>
|
|
518
530
|
|
|
519
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
531
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/miller.png" width="480" height="250">](https://observablehq.com/@d3/miller)
|
|
520
532
|
|
|
521
533
|
The Miller cylindrical projection is a modified [Mercator](#geoMercator) projection.
|
|
522
534
|
|
|
523
|
-
<a href="#geoModifiedStereographic" name="geoModifiedStereographic">#</a> d3.<b>geoModifiedStereographic</b>(<i>coefficients</i>, <i>rotate</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
535
|
+
<a href="#geoModifiedStereographic" name="geoModifiedStereographic">#</a> d3.<b>geoModifiedStereographic</b>(<i>coefficients</i>, <i>rotate</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/modifiedStereographic.js)
|
|
524
536
|
<br><a href="#geoModifiedStereographicRaw" name="geoModifiedStereographicRaw">#</a> d3.<b>geoModifiedStereographicRaw</b>(<i>coefficients</i>)
|
|
525
537
|
|
|
526
|
-
The family of [modified stereographic projections](https://www.jasondavies.com/maps/modified-stereographic/). The default [clip angle](https://github.com/d3/d3-geo/blob/
|
|
538
|
+
The family of [modified stereographic projections](https://www.jasondavies.com/maps/modified-stereographic/). The default [clip angle](https://github.com/d3/d3-geo/blob/main/README.md#projection_clipAngle) for these projections is 90°. These projections do not support [*projection*.rotate](https://github.com/d3/d3-geo/blob/main/README.md#projection_rotate): a fixed rotation is applied that is specific to the given *coefficients*.
|
|
527
539
|
|
|
528
|
-
<a href="#geoModifiedStereographicAlaska" name="geoModifiedStereographicAlaska">#</a> d3.<b>geoModifiedStereographicAlaska</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
540
|
+
<a href="#geoModifiedStereographicAlaska" name="geoModifiedStereographicAlaska">#</a> d3.<b>geoModifiedStereographicAlaska</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/modifiedStereographic.js)
|
|
529
541
|
|
|
530
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
542
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/modifiedStereographicAlaska.png" width="480" height="250">](https://www.jasondavies.com/maps/modified-stereographic/alaska/)
|
|
531
543
|
|
|
532
544
|
A [modified stereographic](#geoModifiedStereographic) projection for Alaska.
|
|
533
545
|
|
|
534
|
-
<a href="#geoModifiedStereographicGs48" name="geoModifiedStereographicGs48">#</a> d3.<b>geoModifiedStereographicGs48</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
546
|
+
<a href="#geoModifiedStereographicGs48" name="geoModifiedStereographicGs48">#</a> d3.<b>geoModifiedStereographicGs48</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/modifiedStereographic.js)
|
|
535
547
|
|
|
536
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
548
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/modifiedStereographicGs48.png" width="480" height="250">](https://www.jasondavies.com/maps/modified-stereographic/gs48/)
|
|
537
549
|
|
|
538
550
|
A [modified stereographic](#geoModifiedStereographic) projection for the conterminous United States.
|
|
539
551
|
|
|
540
|
-
<a href="#geoModifiedStereographicGs50" name="geoModifiedStereographicGs50">#</a> d3.<b>geoModifiedStereographicGs50</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
552
|
+
<a href="#geoModifiedStereographicGs50" name="geoModifiedStereographicGs50">#</a> d3.<b>geoModifiedStereographicGs50</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/modifiedStereographic.js)
|
|
541
553
|
|
|
542
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
554
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/modifiedStereographicGs50.png" width="480" height="250">](https://www.jasondavies.com/maps/modified-stereographic/gs50/)
|
|
543
555
|
|
|
544
556
|
A [modified stereographic](#geoModifiedStereographic) projection for the United States including Alaska and Hawaii. Typically clipped to the geographic extent [[-180°, 15°], [-50°, 75°]].
|
|
545
557
|
|
|
546
|
-
<a href="#geoModifiedStereographicMiller" name="geoModifiedStereographicMiller">#</a> d3.<b>geoModifiedStereographicMiller</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
558
|
+
<a href="#geoModifiedStereographicMiller" name="geoModifiedStereographicMiller">#</a> d3.<b>geoModifiedStereographicMiller</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/modifiedStereographic.js), [Examples](https://observablehq.com/@d3/miller-oblated-stereographic)
|
|
547
559
|
|
|
548
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
560
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/modifiedStereographicMiller.png" width="480" height="250">](https://www.jasondavies.com/maps/modified-stereographic/miller/)
|
|
549
561
|
|
|
550
562
|
A [modified stereographic](#geoModifiedStereographic) projection for Europe and Africa. Typically clipped to the geographic extent [[-40°, -40°], [80°, 80°]].
|
|
551
563
|
|
|
552
|
-
<a href="#geoModifiedStereographicLee" name="geoModifiedStereographicLee">#</a> d3.<b>geoModifiedStereographicLee</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
564
|
+
<a href="#geoModifiedStereographicLee" name="geoModifiedStereographicLee">#</a> d3.<b>geoModifiedStereographicLee</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/modifiedStereographic.js), [Examples](https://observablehq.com/@d3/lee-oblated-stereographic)
|
|
553
565
|
|
|
554
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
566
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/modifiedStereographicLee.png" width="480" height="250">](https://www.jasondavies.com/maps/modified-stereographic/lee/)
|
|
555
567
|
|
|
556
568
|
A [modified stereographic](#geoModifiedStereographic) projection for the Pacific ocean.
|
|
557
569
|
|
|
558
|
-
<a href="#geoMollweide" name="geoMollweide">#</a> d3.<b>geoMollweide</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
570
|
+
<a href="#geoMollweide" name="geoMollweide">#</a> d3.<b>geoMollweide</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/mollweide.js), [Examples](https://observablehq.com/@d3/mollweide)
|
|
559
571
|
<br><a href="#geoMollweideRaw" name="geoMollweideRaw">#</a> d3.<b>geoMollweideRaw</b>
|
|
560
572
|
|
|
561
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
573
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/mollweide.png" width="480" height="250">](https://observablehq.com/@d3/mollweide)
|
|
562
574
|
|
|
563
575
|
The equal-area, pseudocylindrical Mollweide projection. The oblique aspect is known as the [Atlantis projection](https://observablehq.com/@d3/atlantis). [Goode’s interrupted Mollweide](#interruptedMollweide) is also widely known.
|
|
564
576
|
|
|
565
|
-
<a href="#geoMtFlatPolarParabolic" name="geoMtFlatPolarParabolic">#</a> d3.<b>geoMtFlatPolarParabolic</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
577
|
+
<a href="#geoMtFlatPolarParabolic" name="geoMtFlatPolarParabolic">#</a> d3.<b>geoMtFlatPolarParabolic</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/mtFlatPolarParabolic.js), [Examples](https://observablehq.com/@d3/flat-polar-parabolic)
|
|
566
578
|
<br><a href="#geoMtFlatPolarParabolicRaw" name="geoMtFlatPolarParabolicRaw">#</a> d3.<b>geoMtFlatPolarParabolicRaw</b>
|
|
567
579
|
|
|
568
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
580
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/mtFlatPolarParabolic.png" width="480" height="250">](https://observablehq.com/@d3/flat-polar-parabolic)
|
|
569
581
|
|
|
570
582
|
The McBryde–Thomas flat-polar parabolic pseudocylindrical equal-area projection.
|
|
571
583
|
|
|
572
|
-
<a href="#geoMtFlatPolarQuartic" name="geoMtFlatPolarQuartic">#</a> d3.<b>geoMtFlatPolarQuartic</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
584
|
+
<a href="#geoMtFlatPolarQuartic" name="geoMtFlatPolarQuartic">#</a> d3.<b>geoMtFlatPolarQuartic</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/mtFlatPolarQuartic.js), [Examples](https://observablehq.com/@d3/flat-polar-quartic)
|
|
573
585
|
<br><a href="#geoMtFlatPolarQuarticRaw" name="geoMtFlatPolarQuarticRaw">#</a> d3.<b>geoMtFlatPolarQuarticRaw</b>
|
|
574
586
|
|
|
575
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
587
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/mtFlatPolarQuartic.png" width="480" height="250">](https://observablehq.com/@d3/flat-polar-quartic)
|
|
576
588
|
|
|
577
589
|
The McBryde–Thomas flat-polar quartic pseudocylindrical equal-area projection.
|
|
578
590
|
|
|
579
|
-
<a href="#geoMtFlatPolarSinusoidal" name="geoMtFlatPolarSinusoidal">#</a> d3.<b>geoMtFlatPolarSinusoidal</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
591
|
+
<a href="#geoMtFlatPolarSinusoidal" name="geoMtFlatPolarSinusoidal">#</a> d3.<b>geoMtFlatPolarSinusoidal</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/mtFlatPolarSinusoidal.js), [Examples](https://observablehq.com/@d3/flat-polar-sinusoidal)
|
|
580
592
|
<br><a href="#geoMtFlatPolarSinusoidalRaw" name="geoMtFlatPolarSinusoidalRaw">#</a> d3.<b>geoMtFlatPolarSinusoidalRaw</b>
|
|
581
593
|
|
|
582
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
594
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/mtFlatPolarSinusoidal.png" width="480" height="250">](https://observablehq.com/@d3/flat-polar-sinusoidal)
|
|
583
595
|
|
|
584
596
|
The McBryde–Thomas flat-polar sinusoidal equal-area projection.
|
|
585
597
|
|
|
586
|
-
<a href="#geoNaturalEarth1" name="geoNaturalEarth1">#</a> d3.<b>geoNaturalEarth1</b>() · [Source](https://github.com/d3/d3-geo/blob/
|
|
598
|
+
<a href="#geoNaturalEarth1" name="geoNaturalEarth1">#</a> d3.<b>geoNaturalEarth1</b>() · [Source](https://github.com/d3/d3-geo/blob/main/src/projection/naturalEarth1.js) [\[d3-geo\]](https://github.com/d3/d3-geo/blob/main/README.md#geoNaturalEarth1), [Examples](https://observablehq.com/@d3/natural-earth)
|
|
587
599
|
<br><a href="#geoNaturalEarth1Raw" name="geoNaturalEarth1Raw">#</a> d3.<b>geoNaturalEarth1Raw</b>
|
|
588
600
|
|
|
589
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo/
|
|
601
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo/main/img/naturalEarth1.png" width="480" height="250">](https://observablehq.com/@d3/natural-earth)
|
|
590
602
|
|
|
591
603
|
The Natural Earth projection.
|
|
592
604
|
|
|
593
|
-
<a href="#geoNaturalEarth2" name="geoNaturalEarth2">#</a> d3.<b>geoNaturalEarth2</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
605
|
+
<a href="#geoNaturalEarth2" name="geoNaturalEarth2">#</a> d3.<b>geoNaturalEarth2</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/naturalEarth2.js), [Examples](https://observablehq.com/@d3/natural-earth-ii)
|
|
594
606
|
<br><a href="#geoNaturalEarth2Raw" name="geoNaturalEarth2Raw">#</a> d3.<b>geoNaturalEarth2Raw</b>
|
|
595
607
|
|
|
596
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
608
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/naturalEarth2.png" width="480" height="250">](https://observablehq.com/@d3/natural-earth-ii)
|
|
597
609
|
|
|
598
610
|
The [Natural Earth II](http://www.shadedrelief.com/NE2_proj/) projection. Compared to [Natural Earth](#geoNaturalEarth), it is slightly taller and rounder.
|
|
599
611
|
|
|
600
|
-
<a href="#geoNellHammer" name="geoNellHammer">#</a> d3.<b>geoNellHammer</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
612
|
+
<a href="#geoNellHammer" name="geoNellHammer">#</a> d3.<b>geoNellHammer</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/nellHammer.js), [Examples](https://observablehq.com/@d3/nell-hammer)
|
|
601
613
|
<br><a href="#geoNellHammerRaw" name="geoNellHammerRaw">#</a> d3.<b>geoNellHammerRaw</b>
|
|
602
614
|
|
|
603
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
615
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/nellHammer.png" width="480" height="250">](https://observablehq.com/@d3/nell-hammer)
|
|
604
616
|
|
|
605
617
|
The Nell–Hammer projection.
|
|
606
618
|
|
|
607
|
-
<a href="#geoNicolosi" name="geoNicolosi">#</a> d3.<b>geoNicolosi</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
619
|
+
<a href="#geoNicolosi" name="geoNicolosi">#</a> d3.<b>geoNicolosi</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/nicolosi.js), [Examples](https://observablehq.com/@toja/nicolosi-globular-projection)
|
|
608
620
|
<br><a href="#geoNicolosiRaw" name="geoNicolosiRaw">#</a> d3.<b>geoNicolosiRaw</b>
|
|
609
621
|
|
|
610
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
622
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/nicolosi.png" width="480" height="250">](https://observablehq.com/@toja/nicolosi-globular-projection)
|
|
611
623
|
|
|
612
624
|
The Nicolosi globular projection.
|
|
613
625
|
|
|
614
|
-
<a href="#geoOrthographic" name="geoOrthographic">#</a> d3.<b>geoOrthographic</b>() · [Source](https://github.com/d3/d3-geo/blob/
|
|
626
|
+
<a href="#geoOrthographic" name="geoOrthographic">#</a> d3.<b>geoOrthographic</b>() · [Source](https://github.com/d3/d3-geo/blob/main/src/projection/orthographic.js) [\[d3-geo\]](https://github.com/d3/d3-geo/blob/main/README.md#geoOrthographic), [Examples](https://observablehq.com/@d3/orthographic)
|
|
615
627
|
<br><a href="#geoOrthographicRaw" name="geoOrthographicRaw">#</a> d3.<b>geoOrthographicRaw</b>
|
|
616
628
|
|
|
617
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo/
|
|
629
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo/main/img/orthographic.png" width="480" height="250">](https://observablehq.com/@d3/orthographic)
|
|
618
630
|
|
|
619
631
|
The orthographic projection.
|
|
620
632
|
|
|
621
|
-
<a href="#geoPatterson" name="geoPatterson">#</a> d3.<b>geoPatterson</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
633
|
+
<a href="#geoPatterson" name="geoPatterson">#</a> d3.<b>geoPatterson</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/patterson.js), [Examples](https://observablehq.com/@d3/patterson-cylindrical)
|
|
622
634
|
<br><a href="#geoPattersonRaw" name="geoPattersonRaw">#</a> d3.<b>geoPattersonRaw</b>
|
|
623
635
|
|
|
624
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
636
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/patterson.png" width="480" height="250">](https://observablehq.com/@d3/patterson-cylindrical)
|
|
625
637
|
|
|
626
638
|
The Patterson cylindrical projection.
|
|
627
639
|
|
|
628
|
-
<a href="#geoPolyconic" name="geoPolyconic">#</a> d3.<b>geoPolyconic</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
640
|
+
<a href="#geoPolyconic" name="geoPolyconic">#</a> d3.<b>geoPolyconic</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/polyconic.js), [Examples](https://observablehq.com/@d3/polyconic)
|
|
629
641
|
<br><a href="#geoPolyconicRaw" name="geoPolyconicRaw">#</a> d3.<b>geoPolyconicRaw</b>
|
|
630
642
|
|
|
631
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
643
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/polyconic.png" width="480" height="250">](https://observablehq.com/@d3/polyconic)
|
|
632
644
|
|
|
633
645
|
The American polyconic projection.
|
|
634
646
|
|
|
635
|
-
<a href="#geoRectangularPolyconic" name="geoRectangularPolyconic">#</a> d3.<b>geoRectangularPolyconic</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
647
|
+
<a href="#geoRectangularPolyconic" name="geoRectangularPolyconic">#</a> d3.<b>geoRectangularPolyconic</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/rectangularPolyconic.js), [Examples](https://observablehq.com/@d3/rectangular-polyconic)
|
|
636
648
|
<br><a href="#geoRectangularPolyconicRaw" name="geoRectangularPolyconicRaw">#</a> d3.<b>geoRectangularPolyconicRaw</b>(<i>phi0</i>)
|
|
637
649
|
|
|
638
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
650
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/rectangularPolyconic.png" width="480" height="250">](https://observablehq.com/@d3/rectangular-polyconic)
|
|
639
651
|
|
|
640
652
|
The rectangular (War Office) polyconic projection.
|
|
641
653
|
|
|
@@ -643,17 +655,17 @@ The rectangular (War Office) polyconic projection.
|
|
|
643
655
|
|
|
644
656
|
Defaults to 0°.
|
|
645
657
|
|
|
646
|
-
<a href="#geoRobinson" name="geoRobinson">#</a> d3.<b>geoRobinson</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
658
|
+
<a href="#geoRobinson" name="geoRobinson">#</a> d3.<b>geoRobinson</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/robinson.js), [Examples](https://observablehq.com/@d3/robinson)
|
|
647
659
|
<br><a href="#geoRobinsonRaw" name="geoRobinsonRaw">#</a> d3.<b>geoRobinsonRaw</b>
|
|
648
660
|
|
|
649
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
661
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/robinson.png" width="480" height="250">](https://observablehq.com/@d3/robinson)
|
|
650
662
|
|
|
651
663
|
The Robinson projection.
|
|
652
664
|
|
|
653
|
-
<a href="#geoSatellite" name="geoSatellite">#</a> d3.<b>geoSatellite</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
665
|
+
<a href="#geoSatellite" name="geoSatellite">#</a> d3.<b>geoSatellite</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/satellite.js), [Examples](https://observablehq.com/@d3/satellite)
|
|
654
666
|
<br><a href="#geoSatelliteRaw" name="geoSatelliteRaw">#</a> d3.<b>geoSatelliteRaw</b>(<i>P</i>, <i>omega</i>)
|
|
655
667
|
|
|
656
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
668
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/satellite.png" width="480" height="250">](https://observablehq.com/@d3/satellite)
|
|
657
669
|
|
|
658
670
|
The satellite (tilted perspective) projection.
|
|
659
671
|
|
|
@@ -663,97 +675,97 @@ Defaults to 0°.
|
|
|
663
675
|
|
|
664
676
|
<a href="#satellite_distance" name="satellite_distance">#</a> <i>satellite</i>.<b>distance</b>([<i>distance</i>])
|
|
665
677
|
|
|
666
|
-
Distance from the center of the sphere to the point of view, as a proportion of the sphere’s radius; defaults to 2.0. The recommended maximum [clip angle](https://github.com/d3/d3-geo/blob/
|
|
678
|
+
Distance from the center of the sphere to the point of view, as a proportion of the sphere’s radius; defaults to 2.0. The recommended maximum [clip angle](https://github.com/d3/d3-geo/blob/main/README.md#projection_clipAngle) for a given *distance* is acos(1 / *distance*) converted to degrees. If [tilt](#satellite_tilt) is also applied, then more conservative clipping may be necessary. For exact clipping, the in-development geographic projection pipeline is needed; see the [satellite explorer](https://observablehq.com/@d3/satellite-explorer).
|
|
667
679
|
|
|
668
|
-
<a href="#geoSinusoidal" name="geoSinusoidal">#</a> d3.<b>geoSinusoidal</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
680
|
+
<a href="#geoSinusoidal" name="geoSinusoidal">#</a> d3.<b>geoSinusoidal</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/sinusoidal.js), [Examples](https://observablehq.com/@d3/sinusoidal)
|
|
669
681
|
<br><a href="#geoSinusoidalRaw" name="geoSinusoidalRaw">#</a> d3.<b>geoSinusoidalRaw</b>
|
|
670
682
|
|
|
671
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
683
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/sinusoidal.png" width="480" height="250">](https://observablehq.com/@d3/sinusoidal)
|
|
672
684
|
|
|
673
685
|
The sinusoidal projection.
|
|
674
686
|
|
|
675
|
-
<a href="#geoSinuMollweide" name="geoSinuMollweide">#</a> d3.<b>geoSinuMollweide</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
687
|
+
<a href="#geoSinuMollweide" name="geoSinuMollweide">#</a> d3.<b>geoSinuMollweide</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/sinuMollweide.js), [Examples](https://observablehq.com/@d3/sinu-mollweide)
|
|
676
688
|
<br><a href="#geoSinuMollweideRaw" name="geoSinuMollweideRaw">#</a> d3.<b>geoSinuMollweideRaw</b>
|
|
677
689
|
|
|
678
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
690
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/sinuMollweide.png" width="480" height="250">](https://observablehq.com/@d3/sinu-mollweide)
|
|
679
691
|
|
|
680
692
|
Allen K. Philbrick’s Sinu-Mollweide projection. See also the [interrupted form](#interruptedSinuMollweide).
|
|
681
693
|
|
|
682
|
-
<a href="#geoStereographic" name="geoStereographic">#</a> d3.<b>geoStereographic</b>() · [Source](https://github.com/d3/d3-geo/blob/
|
|
694
|
+
<a href="#geoStereographic" name="geoStereographic">#</a> d3.<b>geoStereographic</b>() · [Source](https://github.com/d3/d3-geo/blob/main/src/projection/stereographic.js) [\[d3-geo\]](https://github.com/d3/d3-geo/blob/main/README.md#geoStereographic), [Examples](https://observablehq.com/@d3/stereographic)
|
|
683
695
|
<br><a href="#geoStereographicRaw" name="geoStereographicRaw">#</a> d3.<b>geoStereographicRaw</b>
|
|
684
696
|
|
|
685
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo/
|
|
697
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo/main/img/stereographic.png" width="480" height="250">](https://observablehq.com/@d3/stereographic)
|
|
686
698
|
|
|
687
699
|
The stereographic projection.
|
|
688
700
|
|
|
689
|
-
<a href="#geoTimes" name="geoTimes">#</a> d3.<b>geoTimes</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
701
|
+
<a href="#geoTimes" name="geoTimes">#</a> d3.<b>geoTimes</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/times.js), [Examples](https://observablehq.com/@d3/times)
|
|
690
702
|
<br><a href="#geoTimesRaw" name="geoTimesRaw">#</a> d3.<b>geoTimesRaw</b>
|
|
691
703
|
|
|
692
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
704
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/times.png" width="480" height="250">](https://observablehq.com/@d3/times)
|
|
693
705
|
|
|
694
706
|
John Muir’s Times projection.
|
|
695
707
|
|
|
696
|
-
<a href="#geoTransverseMercator" name="geoTransverseMercator">#</a> d3.<b>geoTransverseMercator</b>() · [Source](https://github.com/d3/d3-geo/blob/
|
|
708
|
+
<a href="#geoTransverseMercator" name="geoTransverseMercator">#</a> d3.<b>geoTransverseMercator</b>() · [Source](https://github.com/d3/d3-geo/blob/main/src/projection/transverseMercator.js) [\[d3-geo\]](https://github.com/d3/d3-geo/blob/main/README.md#geoTransverseMercator), [Examples](https://observablehq.com/@d3/transverse-mercator)
|
|
697
709
|
<br><a href="#geoTransverseMercatorRaw" name="geoTransverseMercatorRaw">#</a> d3.<b>geoTransverseMercatorRaw</b>
|
|
698
710
|
|
|
699
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo/
|
|
711
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo/main/img/transverseMercator.png" width="480" height="250">](https://observablehq.com/@d3/transverse-mercator)
|
|
700
712
|
|
|
701
713
|
The transverse spherical Mercator projection.
|
|
702
714
|
|
|
703
|
-
<a href="#geoTwoPointAzimuthal" name="geoTwoPointAzimuthal">#</a> d3.<b>geoTwoPointAzimuthal</b>(<i>point0</i>, <i>point1</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
715
|
+
<a href="#geoTwoPointAzimuthal" name="geoTwoPointAzimuthal">#</a> d3.<b>geoTwoPointAzimuthal</b>(<i>point0</i>, <i>point1</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/twoPointAzimuthal.js)
|
|
704
716
|
<br><a href="#geoTwoPointAzimuthalRaw" name="geoTwoPointAzimuthalRaw">#</a> d3.<b>geoTwoPointAzimuthalRaw</b>(<i>d</i>)
|
|
705
717
|
|
|
706
|
-
The two-point azimuthal projection “shows correct azimuths (but not distances) from either of two points to any other point. [It can] be used to locate a ship at sea, given the exact location of two radio transmitters and the direction of the ship to the transmitters.” This projection does not support [*projection*.rotate](https://github.com/d3/d3-geo/blob/
|
|
718
|
+
The two-point azimuthal projection “shows correct azimuths (but not distances) from either of two points to any other point. [It can] be used to locate a ship at sea, given the exact location of two radio transmitters and the direction of the ship to the transmitters.” This projection does not support [*projection*.rotate](https://github.com/d3/d3-geo/blob/main/README.md#projection_rotate), as the rotation is fixed by the two given points.
|
|
707
719
|
|
|
708
|
-
<a href="#geoTwoPointAzimuthalUsa" name="geoTwoPointAzimuthalUsa">#</a> d3.<b>geoTwoPointAzimuthalUsa</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
720
|
+
<a href="#geoTwoPointAzimuthalUsa" name="geoTwoPointAzimuthalUsa">#</a> d3.<b>geoTwoPointAzimuthalUsa</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/twoPointAzimuthal.js)
|
|
709
721
|
|
|
710
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
722
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/twoPointAzimuthalUsa.png" width="480" height="250">](https://www.jasondavies.com/maps/two-point-azimuthal/)
|
|
711
723
|
|
|
712
724
|
The two-point azimuthal projection with points [-158°, 21.5°] and [-77°, 39°], approximately representing Honolulu, HI and Washington, D.C.
|
|
713
725
|
|
|
714
|
-
<a href="#geoTwoPointEquidistant" name="geoTwoPointEquidistant">#</a> d3.<b>geoTwoPointEquidistant</b>(<i>point0</i>, <i>point1</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
726
|
+
<a href="#geoTwoPointEquidistant" name="geoTwoPointEquidistant">#</a> d3.<b>geoTwoPointEquidistant</b>(<i>point0</i>, <i>point1</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/twoPointEquidistant.js)
|
|
715
727
|
<br><a href="#geoTwoPointEquidistantRaw" name="geoTwoPointEquidistantRaw">#</a> d3.<b>geoTwoPointEquidistantRaw</b>(<i>z0</i>)
|
|
716
728
|
|
|
717
|
-
The two-point equidistant projection. This projection does not support [*projection*.rotate](https://github.com/d3/d3-geo/blob/
|
|
729
|
+
The two-point equidistant projection. This projection does not support [*projection*.rotate](https://github.com/d3/d3-geo/blob/main/README.md#projection_rotate), as the rotation is fixed by the two given points. Note: to show the whole Earth, this projection requires clipping to spherical polygons ([example](https://observablehq.com/@d3/two-point-equidistant)).
|
|
718
730
|
|
|
719
|
-
<a href="#geoTwoPointEquidistantUsa" name="geoTwoPointEquidistantUsa">#</a> d3.<b>geoTwoPointEquidistantUsa</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
731
|
+
<a href="#geoTwoPointEquidistantUsa" name="geoTwoPointEquidistantUsa">#</a> d3.<b>geoTwoPointEquidistantUsa</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/twoPointEquidistant.js)
|
|
720
732
|
|
|
721
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
733
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/twoPointEquidistantUsa.png" width="480" height="250">](https://www.jasondavies.com/maps/two-point-equidistant/)
|
|
722
734
|
|
|
723
735
|
The two-point equidistant projection with points [-158°, 21.5°] and [-77°, 39°], approximately representing Honolulu, HI and Washington, D.C.
|
|
724
736
|
|
|
725
|
-
<a href="#geoVanDerGrinten" name="geoVanDerGrinten">#</a> d3.<b>geoVanDerGrinten</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
737
|
+
<a href="#geoVanDerGrinten" name="geoVanDerGrinten">#</a> d3.<b>geoVanDerGrinten</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/vanDerGrinten.js), [Examples](https://observablehq.com/@d3/van-der-grinten-i)
|
|
726
738
|
<br><a href="#geoVanDerGrintenRaw" name="geoVanDerGrintenRaw">#</a> d3.<b>geoVanDerGrintenRaw</b>
|
|
727
739
|
|
|
728
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
740
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/vanDerGrinten.png" width="480" height="250">](https://observablehq.com/@d3/van-der-grinten-i)
|
|
729
741
|
|
|
730
742
|
The Van der Grinten projection.
|
|
731
743
|
|
|
732
|
-
<a href="#geoVanDerGrinten2" name="geoVanDerGrinten2">#</a> d3.<b>geoVanDerGrinten2</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
744
|
+
<a href="#geoVanDerGrinten2" name="geoVanDerGrinten2">#</a> d3.<b>geoVanDerGrinten2</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/vanDerGrinten2.js), [Examples](https://observablehq.com/@d3/van-der-grinten-ii)
|
|
733
745
|
<br><a href="#geoVanDerGrinten2Raw" name="geoVanDerGrinten2Raw">#</a> d3.<b>geoVanDerGrinten2Raw</b>
|
|
734
746
|
|
|
735
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
747
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/vanDerGrinten2.png" width="480" height="250">](https://observablehq.com/@d3/van-der-grinten-ii)
|
|
736
748
|
|
|
737
749
|
The Van der Grinten II projection.
|
|
738
750
|
|
|
739
|
-
<a href="#geoVanDerGrinten3" name="geoVanDerGrinten3">#</a> d3.<b>geoVanDerGrinten3</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
751
|
+
<a href="#geoVanDerGrinten3" name="geoVanDerGrinten3">#</a> d3.<b>geoVanDerGrinten3</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/vanDerGrinten3.js), [Examples](https://observablehq.com/@d3/van-der-grinten-iii)
|
|
740
752
|
<br><a href="#geoVanDerGrinten3Raw" name="geoVanDerGrinten3Raw">#</a> d3.<b>geoVanDerGrinten3Raw</b>
|
|
741
753
|
|
|
742
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
754
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/vanDerGrinten3.png" width="480" height="250">](https://observablehq.com/@d3/van-der-grinten-iii)
|
|
743
755
|
|
|
744
756
|
The Van der Grinten III projection.
|
|
745
757
|
|
|
746
|
-
<a href="#geoVanDerGrinten4" name="geoVanDerGrinten4">#</a> d3.<b>geoVanDerGrinten4</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
758
|
+
<a href="#geoVanDerGrinten4" name="geoVanDerGrinten4">#</a> d3.<b>geoVanDerGrinten4</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/vanDerGrinten4.js), [Examples](https://observablehq.com/@d3/van-der-grinten-iv)
|
|
747
759
|
<br><a href="#geoVanDerGrinten4Raw" name="geoVanDerGrinten4Raw">#</a> d3.<b>geoVanDerGrinten4Raw</b>
|
|
748
760
|
|
|
749
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
761
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/vanDerGrinten4.png" width="480" height="250">](https://observablehq.com/@d3/van-der-grinten-iv)
|
|
750
762
|
|
|
751
763
|
The Van der Grinten IV projection.
|
|
752
764
|
|
|
753
|
-
<a href="#geoWagner" name="geoWagner">#</a> d3.<b>geoWagner</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
765
|
+
<a href="#geoWagner" name="geoWagner">#</a> d3.<b>geoWagner</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/wagner.js), [Examples](https://observablehq.com/@fil/wagner-customizable-projection)
|
|
754
766
|
<br><a href="#geoWagnerRaw" name="geoWagnerRaw">#</a> d3.<b>geoWagnerRaw</b>
|
|
755
767
|
|
|
756
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
768
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/wagner.png" width="480" height="250">](https://map-projections.net/d3-customizable-wagner/)
|
|
757
769
|
|
|
758
770
|
The Wagner projection is customizable: default values produce the Wagner VIII projection.
|
|
759
771
|
|
|
@@ -773,43 +785,43 @@ Defaults to 20.
|
|
|
773
785
|
|
|
774
786
|
Defaults to 200.
|
|
775
787
|
|
|
776
|
-
<a href="#geoWagner4" name="geoWagner4">#</a> d3.<b>geoWagner4</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
788
|
+
<a href="#geoWagner4" name="geoWagner4">#</a> d3.<b>geoWagner4</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/wagner4.js), [Examples](https://observablehq.com/@d3/wagner-iv)
|
|
777
789
|
<br><a href="#geoWagner4Raw" name="geoWagner4Raw">#</a> d3.<b>geoWagner4Raw</b>
|
|
778
790
|
|
|
779
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
791
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/wagner4.png" width="480" height="250">](https://observablehq.com/@d3/wagner-iv)
|
|
780
792
|
|
|
781
793
|
The Wagner IV projection, also known as Putniṇš P2´.
|
|
782
794
|
|
|
783
|
-
<a href="#geoWagner6" name="geoWagner6">#</a> d3.<b>geoWagner6</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
795
|
+
<a href="#geoWagner6" name="geoWagner6">#</a> d3.<b>geoWagner6</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/wagner6.js), [Examples](https://observablehq.com/@d3/wagner-vi)
|
|
784
796
|
<br><a href="#geoWagner6Raw" name="geoWagner6Raw">#</a> d3.<b>geoWagner6Raw</b>
|
|
785
797
|
|
|
786
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
798
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/wagner6.png" width="480" height="250">](https://observablehq.com/@d3/wagner-vi)
|
|
787
799
|
|
|
788
800
|
The Wagner VI projection.
|
|
789
801
|
|
|
790
|
-
<a href="#geoWagner7" name="geoWagner7">#</a> d3.<b>geoWagner7</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
802
|
+
<a href="#geoWagner7" name="geoWagner7">#</a> d3.<b>geoWagner7</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/wagner7.js), [Examples](ttps://observablehq.com/@d3/wagner-vii)
|
|
791
803
|
|
|
792
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
804
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/wagner7.png" width="480" height="250">](https://observablehq.com/@d3/wagner-vii)
|
|
793
805
|
|
|
794
806
|
The Wagner VII projection.
|
|
795
807
|
|
|
796
|
-
<a href="#geoWiechel" name="geoWiechel">#</a> d3.<b>geoWiechel</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
808
|
+
<a href="#geoWiechel" name="geoWiechel">#</a> d3.<b>geoWiechel</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/wiechel.js), [Examples](https://observablehq.com/@d3/wiechel)
|
|
797
809
|
<br><a href="#geoWiechelRaw" name="geoWiechelRaw">#</a> d3.<b>geoWiechelRaw</b>
|
|
798
810
|
|
|
799
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
811
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/wiechel.png" width="480" height="250">](https://observablehq.com/@d3/wiechel)
|
|
800
812
|
|
|
801
813
|
The Wiechel projection.
|
|
802
814
|
|
|
803
|
-
<a href="#geoWinkel3" name="geoWinkel3">#</a> d3.<b>geoWinkel3</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
815
|
+
<a href="#geoWinkel3" name="geoWinkel3">#</a> d3.<b>geoWinkel3</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/winkel3.js), [Examples](https://observablehq.com/@d3/winkel-tripel)
|
|
804
816
|
<br><a href="#geoWinkel3Raw" name="geoWinkel3Raw">#</a> d3.<b>geoWinkel3Raw</b>
|
|
805
817
|
|
|
806
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
818
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/winkel3.png" width="480" height="250">](https://observablehq.com/@d3/winkel-tripel)
|
|
807
819
|
|
|
808
820
|
The Winkel tripel projection.
|
|
809
821
|
|
|
810
822
|
### Interrupted Projections
|
|
811
823
|
|
|
812
|
-
<a href="#geoInterrupt" name="geoInterrupt">#</a> d3.<b>geoInterrupt</b>(<i>project</i>, <i>lobes</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
824
|
+
<a href="#geoInterrupt" name="geoInterrupt">#</a> d3.<b>geoInterrupt</b>(<i>project</i>, <i>lobes</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/interrupted/index.js), [Examples](https://observablehq.com/@d3/interrupted-sinusoidal)
|
|
813
825
|
|
|
814
826
|
Defines a new interrupted projection for the specified [raw projection](#raw-projections) function *project* and the specified array of *lobes*. The array *lobes* contains two elements representing the hemilobes for the northern hemisphere and the southern hemisphere, respectively. Each hemilobe is an array of triangles, with each triangle represented as three points (in degrees): the start, midpoint, and end. For example, the lobes in [Goode’s interrupted homolosine](#geoInterruptedHomolosine) projection are defined as:
|
|
815
827
|
|
|
@@ -830,109 +842,109 @@ Defines a new interrupted projection for the specified [raw projection](#raw-pro
|
|
|
830
842
|
|
|
831
843
|
Note: interrupted projections typically require clipping to the sphere.
|
|
832
844
|
|
|
833
|
-
<a href="#interrupted_lobes" name="interrupted_lobes">#</a> <i>interrupted</i>.<b>lobes</b>([<i>lobes</i>]) · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
845
|
+
<a href="#interrupted_lobes" name="interrupted_lobes">#</a> <i>interrupted</i>.<b>lobes</b>([<i>lobes</i>]) · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/interrupted/index.js)
|
|
834
846
|
|
|
835
847
|
If *lobes* is specified, sets the new array of hemilobes and returns this projection; see [d3.geoInterrupt](#geoInterrupt) for details on the format of the hemilobes array. If *lobes* is not specified, returns the current array of hemilobes.
|
|
836
848
|
|
|
837
|
-
<a href="#geoInterruptedHomolosine" name="geoInterruptedHomolosine">#</a> d3.<b>geoInterruptedHomolosine</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
849
|
+
<a href="#geoInterruptedHomolosine" name="geoInterruptedHomolosine">#</a> d3.<b>geoInterruptedHomolosine</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/interrupted/homolosine.js), [Examples](https://observablehq.com/@d3/interrupted-goode-homolosine)
|
|
838
850
|
|
|
839
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
851
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/interruptedHomolosine.png" width="480" height="250">](https://observablehq.com/@d3/interrupted-goode-homolosine)
|
|
840
852
|
|
|
841
853
|
Goode’s interrupted [homolosine projection](#geoHomolosine). Its [ocean-centric aspect](https://observablehq.com/@d3/interrupted-homolosine-oceans) is also well-known.
|
|
842
854
|
|
|
843
|
-
<a href="#geoInterruptedSinusoidal" name="geoInterruptedSinusoidal">#</a> d3.<b>geoInterruptedSinusoidal</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
855
|
+
<a href="#geoInterruptedSinusoidal" name="geoInterruptedSinusoidal">#</a> d3.<b>geoInterruptedSinusoidal</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/interrupted/sinusoidal.js), [Examples](https://observablehq.com/@d3/interrupted-sinusoidal)
|
|
844
856
|
|
|
845
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
857
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/interruptedSinusoidal.png" width="480" height="250">](https://observablehq.com/@d3/interrupted-sinusoidal)
|
|
846
858
|
|
|
847
859
|
An interrupted [sinusoidal projection](#geoSinusoidal) with asymmetrical lobe boundaries that emphasize land masses over oceans, after the Swedish <i>Nordisk Världs Atlas</i> as reproduced by [C.A. Furuti](https://web.archive.org/web/20150928042327/http://www.progonos.com/furuti/MapProj/Normal/ProjInt/projInt.html#InterruptedSansonFlamsteed).
|
|
848
860
|
|
|
849
|
-
<a href="#geoInterruptedBoggs" name="geoInterruptedBoggs">#</a> d3.<b>geoInterruptedBoggs</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
861
|
+
<a href="#geoInterruptedBoggs" name="geoInterruptedBoggs">#</a> d3.<b>geoInterruptedBoggs</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/interrupted/boggs.js), [Examples](https://observablehq.com/@d3/interrupted-boggs-eumorphic)
|
|
850
862
|
|
|
851
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
863
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/interruptedBoggs.png" width="480" height="250">](https://observablehq.com/@d3/interrupted-boggs-eumorphic)
|
|
852
864
|
|
|
853
865
|
Bogg’s interrupted [eumorphic projection](#geoBoggs).
|
|
854
866
|
|
|
855
|
-
<a href="#geoInterruptedSinuMollweide" name="geoInterruptedSinuMollweide">#</a> d3.<b>geoInterruptedSinuMollweide</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
867
|
+
<a href="#geoInterruptedSinuMollweide" name="geoInterruptedSinuMollweide">#</a> d3.<b>geoInterruptedSinuMollweide</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/interrupted/sinuMollweide.js), [Examples](https://observablehq.com/@d3/interrupted-sinu-mollweide)
|
|
856
868
|
|
|
857
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
869
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/interruptedSinuMollweide.png" width="480" height="250">](https://observablehq.com/@d3/interrupted-sinu-mollweide)
|
|
858
870
|
|
|
859
871
|
Alan K. Philbrick’s interrupted [sinu-Mollweide projection](#geoSinuMollweide).
|
|
860
872
|
|
|
861
|
-
<a href="#geoInterruptedMollweide" name="geoInterruptedMollweide">#</a> d3.<b>geoInterruptedMollweide</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
873
|
+
<a href="#geoInterruptedMollweide" name="geoInterruptedMollweide">#</a> d3.<b>geoInterruptedMollweide</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/interrupted/mollweide.js), [Examples](https://observablehq.com/@d3/interrupted-mollweide)
|
|
862
874
|
|
|
863
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
875
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/interruptedMollweide.png" width="480" height="250">](https://observablehq.com/@d3/interrupted-mollweide)
|
|
864
876
|
|
|
865
877
|
Goode’s interrupted [Mollweide projection](#geoMollweide).
|
|
866
878
|
|
|
867
|
-
<a href="#geoInterruptedMollweideHemispheres" name="geoInterruptedMollweideHemispheres">#</a> d3.<b>geoInterruptedMollweideHemispheres</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
879
|
+
<a href="#geoInterruptedMollweideHemispheres" name="geoInterruptedMollweideHemispheres">#</a> d3.<b>geoInterruptedMollweideHemispheres</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/interrupted/mollweideHemispheres.js), [Examples](https://observablehq.com/@d3/mollweide-hemispheres)
|
|
868
880
|
|
|
869
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
881
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/interruptedMollweideHemispheres.png" width="480" height="250">](https://observablehq.com/@d3/mollweide-hemispheres)
|
|
870
882
|
|
|
871
883
|
The [Mollweide projection](#geoMollweide) interrupted into two (equal-area) hemispheres.
|
|
872
884
|
|
|
873
|
-
<a href="#geoInterruptedQuarticAuthalic" name="geoInterruptedQuarticAuthalic">#</a> d3.<b>geoInterruptedQuarticAuthalic</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
885
|
+
<a href="#geoInterruptedQuarticAuthalic" name="geoInterruptedQuarticAuthalic">#</a> d3.<b>geoInterruptedQuarticAuthalic</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/quarticAuthalic.js), [Examples](https://observablehq.com/@piwodlaiwo/interrupted-quartic-authalic-projection)
|
|
874
886
|
|
|
875
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
887
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/interruptedQuarticAuthalic.png" width="480" height="250">](https://observablehq.com/@piwodlaiwo/interrupted-quartic-authalic-projection)
|
|
876
888
|
|
|
877
889
|
The [quartic authalic projection](https://observablehq.com/@d3/hammer?b=Infinity) interrupted into two hemispheres.
|
|
878
890
|
|
|
879
891
|
### Polyhedral Projections
|
|
880
892
|
|
|
881
|
-
<a href="#geoPolyhedral" name="geoPolyhedral">#</a> d3.<b>geoPolyhedral</b>(<i>root</i>, <i>face</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
893
|
+
<a href="#geoPolyhedral" name="geoPolyhedral">#</a> d3.<b>geoPolyhedral</b>(<i>root</i>, <i>face</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/polyhedral/index.js)
|
|
882
894
|
|
|
883
|
-
Defines a new polyhedral projection. The *root* is a spanning tree of polygon face nodes; each *node* is assigned a *node*.transform matrix. The *face* function returns the appropriate *node* for a given *lambda* and *phi* in radians. Use [*projection*.angle](https://github.com/d3/d3-geo/blob/
|
|
895
|
+
Defines a new polyhedral projection. The *root* is a spanning tree of polygon face nodes; each *node* is assigned a *node*.transform matrix. The *face* function returns the appropriate *node* for a given *lambda* and *phi* in radians. Use [*projection*.angle](https://github.com/d3/d3-geo/blob/main/README.md#projection_angle) to set the orientation of the map (the default *angle*, -30°, might change in the next major version).
|
|
884
896
|
|
|
885
|
-
<a href="#geoPolyhedralButterfly" name="geoPolyhedralButterfly">#</a> d3.<b>geoPolyhedralButterfly</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
897
|
+
<a href="#geoPolyhedralButterfly" name="geoPolyhedralButterfly">#</a> d3.<b>geoPolyhedralButterfly</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/polyhedral/butterfly.js), [Examples](https://observablehq.com/@d3/polyhedral-gnomonic)
|
|
886
898
|
|
|
887
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
899
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/polyhedralButterfly.png" width="480" height="250">](https://observablehq.com/@d3/polyhedral-gnomonic)
|
|
888
900
|
|
|
889
901
|
The gnomonic butterfly projection.
|
|
890
902
|
|
|
891
|
-
<a href="#geoPolyhedralCollignon" name="geoPolyhedralCollignon">#</a> d3.<b>geoPolyhedralCollignon</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
903
|
+
<a href="#geoPolyhedralCollignon" name="geoPolyhedralCollignon">#</a> d3.<b>geoPolyhedralCollignon</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/polyhedral/collignon.js), [Examples](https://observablehq.com/@d3/polyhedral-collignon)
|
|
892
904
|
|
|
893
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
905
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/polyhedralCollignon.png" width="480" height="250">](https://www.jasondavies.com/maps/collignon-butterfly/)
|
|
894
906
|
|
|
895
907
|
The Collignon butterfly projection.
|
|
896
908
|
|
|
897
|
-
<a href="#geoPolyhedralWaterman" name="geoPolyhedralWaterman">#</a> d3.<b>geoPolyhedralWaterman</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
909
|
+
<a href="#geoPolyhedralWaterman" name="geoPolyhedralWaterman">#</a> d3.<b>geoPolyhedralWaterman</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/polyhedral/waterman.js), [Examples](https://observablehq.com/@d3/watermans-butterfly)
|
|
898
910
|
|
|
899
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
911
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/polyhedralWaterman.png" width="480" height="250">](https://www.jasondavies.com/maps/waterman-butterfly/)
|
|
900
912
|
|
|
901
913
|
Steve Waterman’s butterfly projection.
|
|
902
914
|
|
|
903
915
|
### Quincuncial Projections
|
|
904
916
|
|
|
905
|
-
<a href="#geoQuincuncial" name="geoQuincuncial">#</a> d3.<b>geoQuincuncial</b>(<i>project</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
917
|
+
<a href="#geoQuincuncial" name="geoQuincuncial">#</a> d3.<b>geoQuincuncial</b>(<i>project</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/quincuncial/index.js)
|
|
906
918
|
|
|
907
919
|
Defines a new quincuncial projection for the specified [raw projection](#raw-projections) function *project*. The default rotation is [-90°, -90°, 45°] and the default clip angle is 180° - ε.
|
|
908
920
|
|
|
909
|
-
<a href="#geoGringortenQuincuncial" name="geoGringortenQuincuncial">#</a> d3.<b>geoGringortenQuincuncial</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
921
|
+
<a href="#geoGringortenQuincuncial" name="geoGringortenQuincuncial">#</a> d3.<b>geoGringortenQuincuncial</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/quincuncial/gringorten.js), [Examples](https://observablehq.com/@d3/gringorten-quincuncial)
|
|
910
922
|
|
|
911
|
-
<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
923
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/gringortenQuincuncial.png" width="480" height="250">](https://observablehq.com/@d3/gringorten-quincuncial)
|
|
912
924
|
|
|
913
925
|
The Gringorten square equal-area projection.
|
|
914
926
|
|
|
915
|
-
<a href="#geoPeirceQuincuncial" name="geoPeirceQuincuncial">#</a> d3.<b>geoPeirceQuincuncial</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
927
|
+
<a href="#geoPeirceQuincuncial" name="geoPeirceQuincuncial">#</a> d3.<b>geoPeirceQuincuncial</b>() · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/quincuncial/peirce.js)
|
|
916
928
|
|
|
917
|
-
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/
|
|
929
|
+
[<img src="https://raw.githubusercontent.com/d3/d3-geo-projection/main/img/peirceQuincuncial.png" width="480" height="250">](https://observablehq.com/@d3/peirce-quincuncial)
|
|
918
930
|
|
|
919
931
|
The Peirce quincuncial projection is the quincuncial form of the [Guyou projection](#geoGuyou).
|
|
920
932
|
|
|
921
933
|
### Transformations
|
|
922
934
|
|
|
923
|
-
<a href="#geoProject" name="geoProject">#</a> d3.<b>geoProject</b>(<i>object</i>, <i>projection</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
935
|
+
<a href="#geoProject" name="geoProject">#</a> d3.<b>geoProject</b>(<i>object</i>, <i>projection</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/project/index.js)
|
|
924
936
|
|
|
925
|
-
Projects the specified GeoJSON *object* using the specified *projection*, returning a shallow copy of the specified GeoJSON *object* with projected coordinates. Typically, the input coordinates are spherical and the output coordinates are planar, but the *projection* can also be an [arbitrary geometric transformation](https://github.com/d3/d3-geo/blob/
|
|
937
|
+
Projects the specified GeoJSON *object* using the specified *projection*, returning a shallow copy of the specified GeoJSON *object* with projected coordinates. Typically, the input coordinates are spherical and the output coordinates are planar, but the *projection* can also be an [arbitrary geometric transformation](https://github.com/d3/d3-geo/blob/main/README.md#transforms).
|
|
926
938
|
|
|
927
|
-
See also [geoproject](#geoproject).
|
|
939
|
+
See also [geoproject](#geoproject-bin).
|
|
928
940
|
|
|
929
|
-
<a href="#geoStitch" name="geoStitch">#</a> d3.<b>geoStitch</b>(<i>object</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
941
|
+
<a href="#geoStitch" name="geoStitch">#</a> d3.<b>geoStitch</b>(<i>object</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/stitch.js)
|
|
930
942
|
|
|
931
943
|
Returns a shallow copy of the specified GeoJSON *object*, removing antimeridian and polar cuts, and replacing straight Cartesian line segments with geodesic segments. The input *object* must have coordinates in longitude and latitude in decimal degrees per [RFC 7946](https://tools.ietf.org/html/rfc7946). [Antimeridian cutting](https://bl.ocks.org/mbostock/3788999), if needed, can then be re-applied after rotating to the desired projection aspect.
|
|
932
944
|
|
|
933
|
-
See also [geostitch](#geostitch).
|
|
945
|
+
See also [geostitch](#geostitch-bin).
|
|
934
946
|
|
|
935
|
-
<a href="#geoQuantize" name="geoQuantize">#</a> d3.<b>geoQuantize</b>(<i>object</i>, <i>digits</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
947
|
+
<a href="#geoQuantize" name="geoQuantize">#</a> d3.<b>geoQuantize</b>(<i>object</i>, <i>digits</i>) · [Source](https://github.com/d3/d3-geo-projection/blob/main/src/quantize.js)
|
|
936
948
|
|
|
937
949
|
Returns a shallow copy of the specified GeoJSON *object*, rounding *x* and *y* coordinates according to [*number*.toFixed](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed). Typically this is done *after* [projecting](#geoProject).
|
|
938
950
|
|
|
@@ -942,11 +954,11 @@ See also [geoproject --precision](#geoproject_precision) and [geo2svg --precisio
|
|
|
942
954
|
|
|
943
955
|
### geo2svg
|
|
944
956
|
|
|
945
|
-
<a href="#geo2svg" name="geo2svg">#</a> <b>geo2svg</b> [<i>options…</i>] [<i>file</i>] · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
957
|
+
<a href="#geo2svg" name="geo2svg">#</a> <b>geo2svg</b> [<i>options…</i>] [<i>file</i>] · [Source](https://github.com/d3/d3-geo-projection/blob/main/bin/geo2svg)
|
|
946
958
|
|
|
947
959
|
Converts the specified GeoJSON *file* to SVG. With [--newline-delimited](#geo2svg_newline_delimited), each input feature is rendered as a separate [path element](https://www.w3.org/TR/SVG/paths.html); otherwise, a single path element is generated.
|
|
948
960
|
|
|
949
|
-
By default, the SVG’s [fill](#geo2svg_fill) is set to none and the [stroke](#geo2svg_stroke) is set to black. The default [point radius](https://github.com/d3/d3-geo/blob/
|
|
961
|
+
By default, the SVG’s [fill](#geo2svg_fill) is set to none and the [stroke](#geo2svg_stroke) is set to black. The default [point radius](https://github.com/d3/d3-geo/blob/main/README.md#path_pointRadius) is 4.5. To override these values on a per-feature basis, the following [GeoJSON feature](http://geojson.org/geojson-spec.html#feature-objects) properties will be propagated to attributes:
|
|
950
962
|
|
|
951
963
|
* fill
|
|
952
964
|
* fill-rule (or fillRule)
|
|
@@ -963,7 +975,7 @@ By default, the SVG’s [fill](#geo2svg_fill) is set to none and the [stroke](#g
|
|
|
963
975
|
|
|
964
976
|
If the feature has an id, the path element will have a corresponding id attribute. If the feature has a *title* property, the path element will have a title element with the corresponding value. For an example of per-feature attributes, see this [California population density map](https://bl.ocks.org/mbostock/fb6c1e5ff700f9713a9dc2f0fd392c35).
|
|
965
977
|
|
|
966
|
-
Note: per-feature attributes are most useful in conjunction with [newline-delimited](#geo2svg_newline_delimited) input, as otherwise the generated SVG only has a single path element. To set these properties dynamically, pass the input through [ndjson-map](https://github.com/mbostock/ndjson-cli/blob/
|
|
978
|
+
Note: per-feature attributes are most useful in conjunction with [newline-delimited](#geo2svg_newline_delimited) input, as otherwise the generated SVG only has a single path element. To set these properties dynamically, pass the input through [ndjson-map](https://github.com/mbostock/ndjson-cli/blob/main/README.md#map).
|
|
967
979
|
|
|
968
980
|
<a name="geo2svg_help" href="#geo2svg_help">#</a> geo2svg <b>-h</b>
|
|
969
981
|
<br><a href="#geo2svg_help">#</a> geo2svg <b>--help</b>
|
|
@@ -1015,9 +1027,9 @@ Accept [newline-delimited JSON](http://ndjson.org/) as input, with one feature p
|
|
|
1015
1027
|
|
|
1016
1028
|
### geograticule
|
|
1017
1029
|
|
|
1018
|
-
<a href="#geograticule" name="geograticule">#</a> <b>geograticule</b> [<i>options</i>…] · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
1030
|
+
<a href="#geograticule" name="geograticule">#</a> <b>geograticule</b> [<i>options</i>…] · [Source](https://github.com/d3/d3-geo-projection/blob/main/bin/geograticule)
|
|
1019
1031
|
|
|
1020
|
-
Generates a GeoJSON graticule. See also [d3.geoGraticule](https://github.com/d3/d3-geo/blob/
|
|
1032
|
+
Generates a GeoJSON graticule. See also [d3.geoGraticule](https://github.com/d3/d3-geo/blob/main/README.md#geoGraticule).
|
|
1021
1033
|
|
|
1022
1034
|
<a name="geograticule_help" href="#geograticule_help">#</a> geograticule <b>-h</b>
|
|
1023
1035
|
<br><a href="#geograticule_help">#</a> geograticule <b>--help</b>
|
|
@@ -1036,44 +1048,44 @@ Specify the output file name. Defaults to “-” for stdout.
|
|
|
1036
1048
|
|
|
1037
1049
|
<a name="geograticule_extent" href="#geograticule_extent">#</a> geograticule <b>--extent</b> <i>value</i>
|
|
1038
1050
|
|
|
1039
|
-
Sets the graticule’s [extent](https://github.com/d3/d3-geo/blob/
|
|
1051
|
+
Sets the graticule’s [extent](https://github.com/d3/d3-geo/blob/main/README.md#graticule_extent).
|
|
1040
1052
|
|
|
1041
1053
|
<a name="geograticule_extent_minor" href="#geograticule_extent_minor">#</a> geograticule <b>--extent-minor</b> <i>value</i>
|
|
1042
1054
|
|
|
1043
|
-
Sets the graticule’s [minor extent](https://github.com/d3/d3-geo/blob/
|
|
1055
|
+
Sets the graticule’s [minor extent](https://github.com/d3/d3-geo/blob/main/README.md#graticule_extentMinor).
|
|
1044
1056
|
|
|
1045
1057
|
<a name="geograticule_extent_major" href="#geograticule_extent_major">#</a> geograticule <b>--extent-major</b> <i>value</i>
|
|
1046
1058
|
|
|
1047
|
-
Sets the graticule’s [major extent](https://github.com/d3/d3-geo/blob/
|
|
1059
|
+
Sets the graticule’s [major extent](https://github.com/d3/d3-geo/blob/main/README.md#graticule_extentMajor).
|
|
1048
1060
|
|
|
1049
1061
|
<a name="geograticule_step" href="#geograticule_step">#</a> geograticule <b>--step</b> <i>value</i>
|
|
1050
1062
|
|
|
1051
|
-
Sets the graticule’s [step](https://github.com/d3/d3-geo/blob/
|
|
1063
|
+
Sets the graticule’s [step](https://github.com/d3/d3-geo/blob/main/README.md#graticule_step).
|
|
1052
1064
|
|
|
1053
1065
|
<a name="geograticule_step_minor" href="#geograticule_step_minor">#</a> geograticule <b>--step-minor</b> <i>value</i>
|
|
1054
1066
|
|
|
1055
|
-
Sets the graticule’s [minor step](https://github.com/d3/d3-geo/blob/
|
|
1067
|
+
Sets the graticule’s [minor step](https://github.com/d3/d3-geo/blob/main/README.md#graticule_stepMinor).
|
|
1056
1068
|
|
|
1057
1069
|
<a name="geograticule_step_major" href="#geograticule_step_major">#</a> geograticule <b>--step-major</b> <i>value</i>
|
|
1058
1070
|
|
|
1059
|
-
Sets the graticule’s [major setp](https://github.com/d3/d3-geo/blob/
|
|
1071
|
+
Sets the graticule’s [major setp](https://github.com/d3/d3-geo/blob/main/README.md#graticule_stepMajor).
|
|
1060
1072
|
|
|
1061
1073
|
<a name="geograticule_precision" href="#geograticule_precision">#</a> geograticule <b>--precision</b> <i>value</i>
|
|
1062
1074
|
|
|
1063
|
-
Sets the graticule’s [precision](https://github.com/d3/d3-geo/blob/
|
|
1075
|
+
Sets the graticule’s [precision](https://github.com/d3/d3-geo/blob/main/README.md#graticule_precision).
|
|
1064
1076
|
|
|
1065
1077
|
### geoproject
|
|
1066
1078
|
|
|
1067
|
-
<a href="#geoproject" name="geoproject">#</a> <b>geoproject</b> [<i>options</i>…] <i>projection</i> [<i>file</i>] · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
1079
|
+
<a href="#geoproject-bin" name="geoproject-bin">#</a> <b>geoproject</b> [<i>options</i>…] <i>projection</i> [<i>file</i>] · [Source](https://github.com/d3/d3-geo-projection/blob/main/bin/geoproject)
|
|
1068
1080
|
|
|
1069
|
-
Projects the GeoJSON object in the specified input *file* using the specified *projection*, outputting a new GeoJSON *object* with projected coordinates. For example, to project standard [WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System#A_new_World_Geodetic_System:_WGS_84) input using [d3.geoAlbersUsa](https://github.com/d3/d3-geo/blob/
|
|
1081
|
+
Projects the GeoJSON object in the specified input *file* using the specified *projection*, outputting a new GeoJSON *object* with projected coordinates. For example, to project standard [WGS 84](https://en.wikipedia.org/wiki/World_Geodetic_System#A_new_World_Geodetic_System:_WGS_84) input using [d3.geoAlbersUsa](https://github.com/d3/d3-geo/blob/main/README.md#geoAlbersUsa):
|
|
1070
1082
|
|
|
1071
1083
|
```bash
|
|
1072
1084
|
geoproject 'd3.geoAlbersUsa()' us.json \
|
|
1073
1085
|
> us-albers.json
|
|
1074
1086
|
```
|
|
1075
1087
|
|
|
1076
|
-
For geometry that crosses the antimeridian or surrounds a pole, you will want to pass input through [geostitch](#geostitch) first:
|
|
1088
|
+
For geometry that crosses the antimeridian or surrounds a pole, you will want to pass input through [geostitch](#geostitch-bin) first:
|
|
1077
1089
|
|
|
1078
1090
|
```bash
|
|
1079
1091
|
geostitch world.json \
|
|
@@ -1081,7 +1093,7 @@ geostitch world.json \
|
|
|
1081
1093
|
> world-mercator.json
|
|
1082
1094
|
```
|
|
1083
1095
|
|
|
1084
|
-
Typically, the input coordinates are spherical and the output coordinates are planar, but the *projection* can also be an [arbitrary geometric transformation](https://github.com/d3/d3-geo/blob/
|
|
1096
|
+
Typically, the input coordinates are spherical and the output coordinates are planar, but the *projection* can also be an [arbitrary geometric transformation](https://github.com/d3/d3-geo/blob/main/README.md#transforms). For example, to invert the *y*-axis of a standard [spatial reference system](https://en.wikipedia.org/wiki/Spatial_reference_system) such as [California Albers (EPSG:3310)](http://spatialreference.org/ref/epsg/nad83-california-albers/) and fit it to a 960×500 viewport:
|
|
1085
1097
|
|
|
1086
1098
|
```bash
|
|
1087
1099
|
shp2json planar.shp \
|
|
@@ -1089,7 +1101,7 @@ shp2json planar.shp \
|
|
|
1089
1101
|
> planar.json
|
|
1090
1102
|
```
|
|
1091
1103
|
|
|
1092
|
-
See also [d3.geoProject](#geoProject) and [d3.geoIdentity](https://github.com/d3/d3-geo/blob/
|
|
1104
|
+
See also [d3.geoProject](#geoProject) and [d3.geoIdentity](https://github.com/d3/d3-geo/blob/main/README.md#geoIdentity).
|
|
1093
1105
|
|
|
1094
1106
|
<a name="geoproject_help" href="#geoproject_help">#</a> geoproject <b>-h</b>
|
|
1095
1107
|
<br><a href="#geoproject_help">#</a> geoproject <b>--help</b>
|
|
@@ -1119,7 +1131,7 @@ Accept [newline-delimited JSON](http://ndjson.org/) as input, with one feature p
|
|
|
1119
1131
|
<a name="geoproject_require" href="#geoproject_require">#</a> geoproject <b>-r</b> <i>[name=]value</i>
|
|
1120
1132
|
<br><a href="#geoproject_require">#</a> geoproject <b>--require</b> <i>[name=]value</i>
|
|
1121
1133
|
|
|
1122
|
-
Requires the specified *module*, making it available for use in any expressions used by this command. The loaded module is available as the symbol *name*. If *name* is not specified, it defaults to *module*. (If *module* is not a valid identifier, you must specify a *name*.) For example, to reproject the world on the [Airocean projection](https://github.com/d3/d3-geo-polygon/blob/
|
|
1134
|
+
Requires the specified *module*, making it available for use in any expressions used by this command. The loaded module is available as the symbol *name*. If *name* is not specified, it defaults to *module*. (If *module* is not a valid identifier, you must specify a *name*.) For example, to reproject the world on the [Airocean projection](https://github.com/d3/d3-geo-polygon/blob/main/README.md#geoAirocean):
|
|
1123
1135
|
|
|
1124
1136
|
```bash
|
|
1125
1137
|
geoproject --require d3=d3-geo-polygon 'd3.geoAirocean()' world.geojson
|
|
@@ -1131,7 +1143,7 @@ Multiple modules can be required by repeating this option.
|
|
|
1131
1143
|
|
|
1132
1144
|
### geoquantize
|
|
1133
1145
|
|
|
1134
|
-
<a href="#geoquantize" name="geoquantize">#</a> <b>geoquantize</b> [<i>options</i>…] [<i>file</i>] · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
1146
|
+
<a href="#geoquantize" name="geoquantize">#</a> <b>geoquantize</b> [<i>options</i>…] [<i>file</i>] · [Source](https://github.com/d3/d3-geo-projection/blob/main/bin/geoquantize)
|
|
1135
1147
|
|
|
1136
1148
|
Reads the GeoJSON object from the specified input *file* and outputs a new GeoJSON *object* with coordinates reduced to *precision*. Same options as [geoproject](#geoproject).
|
|
1137
1149
|
|
|
@@ -1142,7 +1154,7 @@ geoquantize us.json --precision 3 \
|
|
|
1142
1154
|
|
|
1143
1155
|
### geostitch
|
|
1144
1156
|
|
|
1145
|
-
<a href="#geostitch" name="geostitch">#</a> <b>geostitch</b> [<i>options</i>…] [<i>file</i>] · [Source](https://github.com/d3/d3-geo-projection/blob/
|
|
1157
|
+
<a href="#geostitch-bin" name="geostitch-bin">#</a> <b>geostitch</b> [<i>options</i>…] [<i>file</i>] · [Source](https://github.com/d3/d3-geo-projection/blob/main/bin/geostitch)
|
|
1146
1158
|
|
|
1147
1159
|
Stitches the GeoJSON object in the specified input *file*, removing antimeridian and polar cuts, and replacing straight Cartesian line segments with geodesic segments. The input *object* must have coordinates in longitude and latitude in decimal degrees per [RFC 7946](https://tools.ietf.org/html/rfc7946). [Antimeridian cutting](https://bl.ocks.org/mbostock/3788999), if needed, can then be re-applied after rotating to the desired projection aspect.
|
|
1148
1160
|
|