d3-geo-projection 4.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 +1 -1
- package/README.md +258 -258
- package/bin/geo2svg.js +5 -5
- package/bin/geograticule.js +3 -3
- package/bin/geoproject.js +6 -6
- package/bin/geoquantize.js +5 -5
- package/bin/geostitch.js +4 -4
- package/bin/read.js +2 -2
- package/bin/write.js +1 -1
- package/dist/d3-geo-projection.js +8 -14
- 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 +27 -19
- 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 -88
- 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
|
@@ -41,34 +41,34 @@ const projection = d3.geoAitoff();
|
|
|
41
41
|
|
|
42
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.
|
|
43
43
|
|
|
44
|
-
<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)
|
|
45
45
|
<br><a href="#geoAiryRaw" name="geoAiryRaw">#</a> d3.<b>geoAiryRaw</b>(<i>beta</i>)
|
|
46
46
|
|
|
47
|
-
[<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)
|
|
48
48
|
|
|
49
49
|
Airy’s minimum-error azimuthal projection.
|
|
50
50
|
|
|
51
|
-
<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>])
|
|
52
52
|
|
|
53
53
|
Defaults to 90°.
|
|
54
54
|
|
|
55
|
-
<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)
|
|
56
56
|
<br><a href="#geoAitoffRaw" name="geoAitoffRaw">#</a> d3.<b>geoAitoffRaw</b>
|
|
57
57
|
|
|
58
|
-
[<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)
|
|
59
59
|
|
|
60
60
|
The Aitoff projection.
|
|
61
61
|
|
|
62
|
-
<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)
|
|
63
63
|
|
|
64
|
-
[<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)
|
|
65
65
|
|
|
66
66
|
Albers’ [equal-area conic projection](#geoConicEqualArea).
|
|
67
67
|
|
|
68
|
-
<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)
|
|
69
69
|
<br><a href="#geoArmadilloRaw" name="geoArmadilloRaw">#</a> d3.<b>geoArmadilloRaw</b>(<i>phi0</i>)
|
|
70
70
|
|
|
71
|
-
[<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)
|
|
72
72
|
|
|
73
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.
|
|
74
74
|
|
|
@@ -76,63 +76,63 @@ The armadillo projection. The default center assumes the default [parallel](#arm
|
|
|
76
76
|
|
|
77
77
|
Defaults to 20°.
|
|
78
78
|
|
|
79
|
-
<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)
|
|
80
80
|
<br><a href="#geoAugustRaw" name="geoAugustRaw">#</a> d3.<b>geoAugustRaw</b>
|
|
81
81
|
|
|
82
|
-
[<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)
|
|
83
83
|
|
|
84
84
|
August’s epicycloidal conformal projection.
|
|
85
85
|
|
|
86
|
-
<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)
|
|
87
87
|
<br><a href="#geoAzimuthalEqualAreaRaw" name="geoAzimuthalEqualAreaRaw">#</a> d3.<b>geoAzimuthalEqualAreaRaw</b>
|
|
88
88
|
|
|
89
|
-
[<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)
|
|
90
90
|
|
|
91
91
|
The Lambert azimuthal equal-area projection.
|
|
92
92
|
|
|
93
|
-
<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)
|
|
94
94
|
<br><a href="#geoAzimuthalEquidistantRaw" name="geoAzimuthalEquidistantRaw">#</a> d3.<b>geoAzimuthalEquidistantRaw</b>
|
|
95
95
|
|
|
96
|
-
[<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)
|
|
97
97
|
|
|
98
98
|
The azimuthal equidistant projection.
|
|
99
99
|
|
|
100
|
-
<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)
|
|
101
101
|
<br><a href="#geoBakerRaw" name="geoBakerRaw">#</a> d3.<b>geoBakerRaw</b>
|
|
102
102
|
|
|
103
|
-
[<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)
|
|
104
104
|
|
|
105
105
|
The Baker Dinomic projection.
|
|
106
106
|
|
|
107
|
-
<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)
|
|
108
108
|
<br><a href="#geoBerghausRaw" name="geoBerghausRaw">#</a> d3.<b>geoBerghausRaw</b>(<i>lobes</i>)
|
|
109
109
|
|
|
110
|
-
[<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)
|
|
111
111
|
|
|
112
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.
|
|
113
113
|
|
|
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/
|
|
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)
|
|
115
115
|
|
|
116
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.
|
|
117
117
|
|
|
118
|
-
<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)
|
|
119
119
|
<br><a href="#geoBertin1953Raw" name="geoBertin1953Raw">#</a> d3.<b>geoBertin1953Raw</b>
|
|
120
120
|
|
|
121
|
-
[<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)
|
|
122
122
|
|
|
123
123
|
Jacques Bertin’s 1953 projection.
|
|
124
124
|
|
|
125
|
-
<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)
|
|
126
126
|
<br><a href="#geoBoggsRaw" name="geoBoggsRaw">#</a> d3.<b>geoBoggsRaw</b>
|
|
127
127
|
|
|
128
|
-
[<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)
|
|
129
129
|
|
|
130
130
|
The Boggs eumorphic projection. More commonly used in [interrupted form](#geoInterruptedBoggs).
|
|
131
131
|
|
|
132
|
-
<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)
|
|
133
133
|
<br><a href="#geoBonneRaw" name="geoBonneRaw">#</a> d3.<b>geoBonneRaw</b>(<i>phi0</i>)
|
|
134
134
|
|
|
135
|
-
[<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)
|
|
136
136
|
|
|
137
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.
|
|
138
138
|
|
|
@@ -140,10 +140,10 @@ The Bonne pseudoconical equal-area projection. The [Werner projection](https://o
|
|
|
140
140
|
|
|
141
141
|
Defaults to 45°.
|
|
142
142
|
|
|
143
|
-
<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)
|
|
144
144
|
<br><a href="#geoBottomleyRaw" name="geoBottomleyRaw">#</a> d3.<b>geoBottomleyRaw</b>(<i>sinPsi</i>)
|
|
145
145
|
|
|
146
|
-
[<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)
|
|
147
147
|
|
|
148
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.”
|
|
149
149
|
|
|
@@ -151,56 +151,56 @@ The [Bottomley projection](https://cybergeo.revues.org/3977) “draws lines of l
|
|
|
151
151
|
|
|
152
152
|
Defaults to 0.5, corresponding to a sin(ψ) where ψ = π/6.
|
|
153
153
|
|
|
154
|
-
<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)
|
|
155
155
|
<br><a href="#geoBromleyRaw" name="geoBromleyRaw">#</a> d3.<b>geoBromleyRaw</b>
|
|
156
156
|
|
|
157
|
-
[<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)
|
|
158
158
|
|
|
159
159
|
The Bromley projection is a rescaled [Mollweide projection](#geoMollweide).
|
|
160
160
|
|
|
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/
|
|
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)
|
|
162
162
|
<br><a href="#geoChamberlinRaw" name="geoChamberlinRaw">#</a> d3.<b>geoChamberlinRaw</b>(<i>p0</i>, <i>p1</i>, <i>p2</i>)
|
|
163
163
|
|
|
164
|
-
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.
|
|
165
165
|
|
|
166
|
-
<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)
|
|
167
167
|
|
|
168
|
-
[<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)
|
|
169
169
|
|
|
170
170
|
The Chamberlin projection for Africa using points [0°, 22°], [45°, 22°], [22.5°, -22°].
|
|
171
171
|
|
|
172
|
-
<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)
|
|
173
173
|
<br><a href="#geoCollignonRaw" name="geoCollignonRaw">#</a> d3.<b>geoCollignonRaw</b>
|
|
174
174
|
|
|
175
|
-
[<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)
|
|
176
176
|
|
|
177
177
|
The Collignon equal-area pseudocylindrical projection. This projection is used in the polar areas of the [HEALPix projection](#geoHealpix).
|
|
178
178
|
|
|
179
|
-
<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)
|
|
180
180
|
<br><a href="#geoConicConformalRaw" name="geoConicConformalRaw">#</a> d3.<b>geoConicConformalRaw</b>
|
|
181
181
|
|
|
182
|
-
[<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)
|
|
183
183
|
|
|
184
184
|
The Lambert conformal conic projection.
|
|
185
185
|
|
|
186
|
-
<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)
|
|
187
187
|
<br><a href="#geoConicEqualAreaRaw" name="geoConicEqualAreaRaw">#</a> d3.<b>geoConicEqualAreaRaw</b>
|
|
188
188
|
|
|
189
|
-
[<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)
|
|
190
190
|
|
|
191
191
|
Albers’ conic equal-area projection.
|
|
192
192
|
|
|
193
|
-
<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)
|
|
194
194
|
<br><a href="#geoConicEquidistantRaw" name="geoConicEquidistantRaw">#</a> d3.<b>geoConicEquidistantRaw</b>
|
|
195
195
|
|
|
196
|
-
[<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)
|
|
197
197
|
|
|
198
198
|
The conic equidistant projection.
|
|
199
199
|
|
|
200
|
-
<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)
|
|
201
201
|
<br><a href="#geoCraigRaw" name="geoCraigRaw">#</a> d3.<b>geoCraigRaw</b>(<i>phi</i>)
|
|
202
202
|
|
|
203
|
-
[<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)
|
|
204
204
|
|
|
205
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.
|
|
206
206
|
|
|
@@ -208,17 +208,17 @@ The Craig retroazimuthal projection. Note: this projection tends to [fold over i
|
|
|
208
208
|
|
|
209
209
|
Defaults to 0°.
|
|
210
210
|
|
|
211
|
-
<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)
|
|
212
212
|
<br><a href="#geoCrasterRaw" name="geoCrasterRaw">#</a> d3.<b>geoCrasterRaw</b>
|
|
213
213
|
|
|
214
|
-
[<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)
|
|
215
215
|
|
|
216
216
|
The Craster parabolic projection; also known as Putniņš P4.
|
|
217
217
|
|
|
218
|
-
<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)
|
|
219
219
|
<br><a href="#geoCylindricalEqualAreaRaw" name="geoCylindricalEqualAreaRaw">#</a> d3.<b>geoCylindricalEqualAreaRaw</b>(<i>phi0</i>)
|
|
220
220
|
|
|
221
|
-
[<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)
|
|
222
222
|
|
|
223
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°).
|
|
224
224
|
|
|
@@ -226,10 +226,10 @@ The cylindrical equal-area projection. Depending on the chosen [parallel](#cylin
|
|
|
226
226
|
|
|
227
227
|
Defaults to approximately 38.58°, fitting the world in a 960×500 rectangle.
|
|
228
228
|
|
|
229
|
-
<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)
|
|
230
230
|
<br><a href="#geoCylindricalStereographicRaw" name="geoCylindricalStereographicRaw">#</a> d3.<b>geoCylindricalStereographicRaw</b>(<i>phi0</i>)
|
|
231
231
|
|
|
232
|
-
[<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)
|
|
233
233
|
|
|
234
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°).
|
|
235
235
|
|
|
@@ -237,80 +237,80 @@ The cylindrical stereographic projection. Depending on the chosen [parallel](#cy
|
|
|
237
237
|
|
|
238
238
|
Defaults to 0°.
|
|
239
239
|
|
|
240
|
-
<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)
|
|
241
241
|
<br><a href="#geoEckert1Raw" name="geoEckert1Raw">#</a> d3.<b>geoEckert1Raw</b>
|
|
242
242
|
|
|
243
|
-
[<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)
|
|
244
244
|
|
|
245
245
|
The Eckert I projection.
|
|
246
246
|
|
|
247
|
-
<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)
|
|
248
248
|
<br><a href="#geoEckert2Raw" name="geoEckert2Raw">#</a> d3.<b>geoEckert2Raw</b>
|
|
249
249
|
|
|
250
|
-
[<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)
|
|
251
251
|
|
|
252
252
|
The Eckert II projection.
|
|
253
253
|
|
|
254
|
-
<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)
|
|
255
255
|
<br><a href="#geoEckert3Raw" name="geoEckert3Raw">#</a> d3.<b>geoEckert3Raw</b>
|
|
256
256
|
|
|
257
|
-
[<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)
|
|
258
258
|
|
|
259
259
|
The Eckert III projection.
|
|
260
260
|
|
|
261
|
-
<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)
|
|
262
262
|
<br><a href="#geoEckert4Raw" name="geoEckert4Raw">#</a> d3.<b>geoEckert4Raw</b>
|
|
263
263
|
|
|
264
|
-
[<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)
|
|
265
265
|
|
|
266
266
|
The Eckert IV projection.
|
|
267
267
|
|
|
268
|
-
<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)
|
|
269
269
|
<br><a href="#geoEckert5Raw" name="geoEckert5Raw">#</a> d3.<b>geoEckert5Raw</b>
|
|
270
270
|
|
|
271
|
-
[<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)
|
|
272
272
|
|
|
273
273
|
The Eckert V projection.
|
|
274
274
|
|
|
275
|
-
<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)
|
|
276
276
|
<br><a href="#geoEckert6Raw" name="geoEckert6Raw">#</a> d3.<b>geoEckert6Raw</b>
|
|
277
277
|
|
|
278
|
-
[<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)
|
|
279
279
|
|
|
280
280
|
The Eckert VI projection.
|
|
281
281
|
|
|
282
|
-
<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)
|
|
283
283
|
<br><a href="#geoEisenlohrRaw" name="geoEisenlohrRaw">#</a> d3.<b>geoEisenlohrRaw</b>(<i>lambda</i>, <i>phi</i>)
|
|
284
284
|
|
|
285
|
-
[<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)
|
|
286
286
|
|
|
287
287
|
The Eisenlohr conformal projection.
|
|
288
288
|
|
|
289
|
-
<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)
|
|
290
290
|
<br><a href="#geoEquirectangularRaw" name="geoEquirectangularRaw">#</a> d3.<b>geoEquirectangularRaw</b>
|
|
291
291
|
|
|
292
|
-
[<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)
|
|
293
293
|
|
|
294
294
|
The equirectangular (plate carrée) projection. The [Cassini projection](https://observablehq.com/@d3/cassini) is the transverse aspect of the equirectangular projection.
|
|
295
295
|
|
|
296
|
-
<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)
|
|
297
297
|
<br><a href="#geoFaheyRaw" name="geoFaheyRaw">#</a> d3.<b>geoFaheyRaw</b>
|
|
298
298
|
|
|
299
|
-
[<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)
|
|
300
300
|
|
|
301
301
|
The Fahey pseudocylindrical projection.
|
|
302
302
|
|
|
303
|
-
<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)
|
|
304
304
|
<br><a href="#geoFoucautRaw" name="geoFoucautRaw">#</a> d3.<b>geoFoucautRaw</b>
|
|
305
305
|
|
|
306
|
-
[<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/)
|
|
307
307
|
|
|
308
308
|
Foucaut’s stereographic equivalent projection.
|
|
309
309
|
|
|
310
|
-
<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)
|
|
311
311
|
<br><a href="#geoFoucautSinusoidalRaw" name="geoFoucautSinusoidalRaw">#</a> d3.<b>geoFoucautSinusoidalRaw</b>
|
|
312
312
|
|
|
313
|
-
[<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)
|
|
314
314
|
|
|
315
315
|
Foucaut’s sinusoidal projection, an equal-area average of the sinusoidal and Lambert’s cylindrical projections.
|
|
316
316
|
|
|
@@ -318,98 +318,98 @@ Foucaut’s sinusoidal projection, an equal-area average of the sinusoidal and L
|
|
|
318
318
|
|
|
319
319
|
Relative weight of the cylindrical projection. Defaults to 0.5.
|
|
320
320
|
|
|
321
|
-
<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)
|
|
322
322
|
|
|
323
|
-
[<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)
|
|
324
324
|
|
|
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/
|
|
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).
|
|
326
326
|
|
|
327
|
-
<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)
|
|
328
328
|
<br><a href="#geoGingeryRaw" name="geoGingeryRaw">#</a> d3.<b>geoGingeryRaw</b>(<i>rho</i>, <i>lobes</i>)
|
|
329
329
|
|
|
330
|
-
[<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)
|
|
331
331
|
|
|
332
332
|
The U.S.-centric Gingery world projection, as inspired by Cram’s Air Age. Note: requires clipping to the sphere.
|
|
333
333
|
|
|
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/
|
|
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)
|
|
335
335
|
|
|
336
336
|
Defaults to 30°.
|
|
337
337
|
|
|
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/
|
|
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)
|
|
339
339
|
|
|
340
340
|
Defaults to 6.
|
|
341
341
|
|
|
342
|
-
<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)
|
|
343
343
|
<br><a href="#geoGinzburg4Raw" name="geoGinzburg4Raw">#</a> d3.<b>geoGinzburg4Raw</b>
|
|
344
344
|
|
|
345
|
-
[<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)
|
|
346
346
|
|
|
347
347
|
The Ginzburg IV projection.
|
|
348
348
|
|
|
349
|
-
<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)
|
|
350
350
|
<br><a href="#geoGinzburg5Raw" name="geoGinzburg5Raw">#</a> d3.<b>geoGinzburg5Raw</b>
|
|
351
351
|
|
|
352
|
-
[<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)
|
|
353
353
|
|
|
354
354
|
The Ginzburg V projection.
|
|
355
355
|
|
|
356
|
-
<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)
|
|
357
357
|
<br><a href="#geoGinzburg6Raw" name="geoGinzburg6Raw">#</a> d3.<b>geoGinzburg6Raw</b>
|
|
358
358
|
|
|
359
|
-
[<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)
|
|
360
360
|
|
|
361
361
|
The Ginzburg VI projection.
|
|
362
362
|
|
|
363
|
-
<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)
|
|
364
364
|
<br><a href="#geoGinzburg8Raw" name="geoGinzburg8Raw">#</a> d3.<b>geoGinzburg8Raw</b>
|
|
365
365
|
|
|
366
|
-
[<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)
|
|
367
367
|
|
|
368
368
|
The Ginzburg VIII projection.
|
|
369
369
|
|
|
370
|
-
<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)
|
|
371
371
|
<br><a href="#geoGinzburg9Raw" name="geoGinzburg9Raw">#</a> d3.<b>geoGinzburg9Raw</b>
|
|
372
372
|
|
|
373
|
-
[<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)
|
|
374
374
|
|
|
375
375
|
The Ginzburg IX projection.
|
|
376
376
|
|
|
377
|
-
<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)
|
|
378
378
|
<br><a href="#geoGnomonicRaw" name="geoGnomonicRaw">#</a> d3.<b>geoGnomonicRaw</b>
|
|
379
379
|
|
|
380
|
-
[<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)
|
|
381
381
|
|
|
382
382
|
The gnomonic projection.
|
|
383
383
|
|
|
384
|
-
<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)
|
|
385
385
|
<br><a href="#geoGringortenRaw" name="geoGringortenRaw">#</a> d3.<b>geoGringortenRaw</b>
|
|
386
386
|
|
|
387
|
-
[<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)
|
|
388
388
|
|
|
389
389
|
The Gringorten square equal-area projection, rearranged to give each hemisphere an entire square.
|
|
390
390
|
|
|
391
|
-
<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)
|
|
392
392
|
<br><a href="#geoGuyouRaw" name="geoGuyouRaw">#</a> d3.<b>geoGuyouRaw</b>
|
|
393
393
|
|
|
394
|
-
[<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)
|
|
395
395
|
|
|
396
396
|
The Guyou hemisphere-in-a-square projection. Peirce is credited with its [quincuncial form](#geoPeirceQuincuncial).
|
|
397
397
|
|
|
398
|
-
<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)
|
|
399
399
|
<br><a href="#geoHammerRaw" name="geoHammerRaw">#</a> d3.<b>geoHammerRaw</b>(<i>A</i>, <i>B</i>)
|
|
400
400
|
|
|
401
|
-
[<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)
|
|
402
402
|
|
|
403
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).
|
|
404
404
|
|
|
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/
|
|
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)
|
|
406
406
|
|
|
407
407
|
Defaults to 2.
|
|
408
408
|
|
|
409
|
-
<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)
|
|
410
410
|
<br><a href="#geoHammerRetroazimuthalRaw" name="geoHammerRetroazimuthalRaw">#</a> d3.<b>geoHammerRetroazimuthalRaw</b>(<i>phi0</i>)
|
|
411
411
|
|
|
412
|
-
[<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)
|
|
413
413
|
|
|
414
414
|
The Hammer retroazimuthal projection. Note: requires clipping to the sphere.
|
|
415
415
|
|
|
@@ -417,10 +417,10 @@ The Hammer retroazimuthal projection. Note: requires clipping to the sphere.
|
|
|
417
417
|
|
|
418
418
|
Defaults to 45°.
|
|
419
419
|
|
|
420
|
-
<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)
|
|
421
421
|
<br><a href="#geoHealpixRaw" name="geoHealpixRaw">#</a> d3.<b>geoHealpixRaw</b>(<i>lobes</i>)
|
|
422
422
|
|
|
423
|
-
[<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)
|
|
424
424
|
|
|
425
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.
|
|
426
426
|
|
|
@@ -428,28 +428,28 @@ The HEALPix projection: a <b>H</b>ierarchical <b>E</b>qual <b>A</b>rea iso<b>L</
|
|
|
428
428
|
|
|
429
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.
|
|
430
430
|
|
|
431
|
-
<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)
|
|
432
432
|
<br><a href="#geoHillRaw" name="geoHillRaw">#</a> d3.<b>geoHillRaw</b>(<i>K</i>)
|
|
433
433
|
|
|
434
|
-
[<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)
|
|
435
435
|
|
|
436
436
|
Hill eucyclic projection is pseudoconic and equal-area.
|
|
437
437
|
|
|
438
|
-
<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>])
|
|
439
439
|
|
|
440
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).
|
|
441
441
|
|
|
442
|
-
<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)
|
|
443
443
|
<br><a href="#geoHomolosineRaw" name="geoHomolosineRaw">#</a> d3.<b>geoHomolosineRaw</b>
|
|
444
444
|
|
|
445
|
-
[<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)
|
|
446
446
|
|
|
447
447
|
The pseudocylindrical, equal-area Goode homolosine projection is normally presented in [interrupted form](#geoInterruptedHomolosine).
|
|
448
448
|
|
|
449
|
-
<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)
|
|
450
450
|
<br><a href="#geoHufnagelRaw" name="geoHufnagelRaw">#</a> d3.<b>geoHufnagelRaw</b>
|
|
451
451
|
|
|
452
|
-
[<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)
|
|
453
453
|
|
|
454
454
|
A customizable family of pseudocylindrical equal-area projections by Herbert Hufnagel.
|
|
455
455
|
|
|
@@ -461,24 +461,24 @@ A customizable family of pseudocylindrical equal-area projections by Herbert Huf
|
|
|
461
461
|
|
|
462
462
|
<a href="#hufnagel_ratio" name="hufnagel_ratio">#</a> <i>hufnagel</i>.<b>ratio</b>([<i>ratio</i>])
|
|
463
463
|
|
|
464
|
-
<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)
|
|
465
465
|
<br><a href="#geoHyperellipticalRaw" name="geoHyperellipticalRaw">#</a> d3.<b>geoHyperellipticalRaw</b>
|
|
466
466
|
|
|
467
|
-
[<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)
|
|
468
468
|
|
|
469
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).
|
|
470
470
|
|
|
471
|
-
<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)
|
|
472
472
|
<br><a href="#geoKavrayskiy7Raw" name="geoKavrayskiy7Raw">#</a> d3.<b>geoKavrayskiy7Raw</b>
|
|
473
473
|
|
|
474
|
-
[<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)
|
|
475
475
|
|
|
476
476
|
The Kavrayskiy VII pseudocylindrical projection.
|
|
477
477
|
|
|
478
|
-
<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)
|
|
479
479
|
<br><a href="#geoLagrangeRaw" name="geoLagrangeRaw">#</a> d3.<b>geoLagrangeRaw</b>(<i>n</i>)
|
|
480
480
|
|
|
481
|
-
[<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)
|
|
482
482
|
|
|
483
483
|
The Lagrange conformal projection.
|
|
484
484
|
|
|
@@ -486,31 +486,31 @@ The Lagrange conformal projection.
|
|
|
486
486
|
|
|
487
487
|
Defaults to 0.5.
|
|
488
488
|
|
|
489
|
-
<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)
|
|
490
490
|
<br><a href="#geoLarriveeRaw" name="geoLarriveeRaw">#</a> d3.<b>geoLarriveeRaw</b>
|
|
491
491
|
|
|
492
|
-
[<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)
|
|
493
493
|
|
|
494
494
|
The Larrivée projection.
|
|
495
495
|
|
|
496
|
-
<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)
|
|
497
497
|
<br><a href="#geoLaskowskiRaw" name="geoLaskowskiRaw">#</a> d3.<b>geoLaskowskiRaw</b>
|
|
498
498
|
|
|
499
|
-
[<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)
|
|
500
500
|
|
|
501
501
|
The Laskowski tri-optimal projection simultaneously minimizes distance, angular, and areal distortion.
|
|
502
502
|
|
|
503
|
-
<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)
|
|
504
504
|
<br><a href="#geoLittrowRaw" name="geoLittrowRaw">#</a> d3.<b>geoLittrowRaw</b>
|
|
505
505
|
|
|
506
|
-
[<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)
|
|
507
507
|
|
|
508
508
|
The Littrow projection is the only conformal retroazimuthal map projection. Typically clipped to the geographic extent [[-90°, -60°], [90°, 60°]].
|
|
509
509
|
|
|
510
|
-
<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)
|
|
511
511
|
<br><a href="#geoLoximuthalRaw" name="geoLoximuthalRaw">#</a> d3.<b>geoLoximuthalRaw</b>(<i>phi0</i>)
|
|
512
512
|
|
|
513
|
-
[<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)
|
|
514
514
|
|
|
515
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.”
|
|
516
516
|
|
|
@@ -518,136 +518,136 @@ The [loximuthal projection](https://en.wikipedia.org/wiki/Loximuthal_projection)
|
|
|
518
518
|
|
|
519
519
|
Defaults to 40°.
|
|
520
520
|
|
|
521
|
-
<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)
|
|
522
522
|
<br><a href="#geoMercatorRaw" name="geoMercatorRaw">#</a> d3.<b>geoMercatorRaw</b>
|
|
523
523
|
|
|
524
|
-
[<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)
|
|
525
525
|
|
|
526
526
|
The spherical Mercator projection.
|
|
527
527
|
|
|
528
|
-
<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)
|
|
529
529
|
<br><a href="#geoMillerRaw" name="geoMillerRaw">#</a> d3.<b>geoMillerRaw</b>
|
|
530
530
|
|
|
531
|
-
[<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)
|
|
532
532
|
|
|
533
533
|
The Miller cylindrical projection is a modified [Mercator](#geoMercator) projection.
|
|
534
534
|
|
|
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/
|
|
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)
|
|
536
536
|
<br><a href="#geoModifiedStereographicRaw" name="geoModifiedStereographicRaw">#</a> d3.<b>geoModifiedStereographicRaw</b>(<i>coefficients</i>)
|
|
537
537
|
|
|
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/
|
|
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*.
|
|
539
539
|
|
|
540
|
-
<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)
|
|
541
541
|
|
|
542
|
-
[<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/)
|
|
543
543
|
|
|
544
544
|
A [modified stereographic](#geoModifiedStereographic) projection for Alaska.
|
|
545
545
|
|
|
546
|
-
<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)
|
|
547
547
|
|
|
548
|
-
[<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/)
|
|
549
549
|
|
|
550
550
|
A [modified stereographic](#geoModifiedStereographic) projection for the conterminous United States.
|
|
551
551
|
|
|
552
|
-
<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)
|
|
553
553
|
|
|
554
|
-
[<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/)
|
|
555
555
|
|
|
556
556
|
A [modified stereographic](#geoModifiedStereographic) projection for the United States including Alaska and Hawaii. Typically clipped to the geographic extent [[-180°, 15°], [-50°, 75°]].
|
|
557
557
|
|
|
558
|
-
<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)
|
|
559
559
|
|
|
560
|
-
[<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/)
|
|
561
561
|
|
|
562
562
|
A [modified stereographic](#geoModifiedStereographic) projection for Europe and Africa. Typically clipped to the geographic extent [[-40°, -40°], [80°, 80°]].
|
|
563
563
|
|
|
564
|
-
<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)
|
|
565
565
|
|
|
566
|
-
[<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/)
|
|
567
567
|
|
|
568
568
|
A [modified stereographic](#geoModifiedStereographic) projection for the Pacific ocean.
|
|
569
569
|
|
|
570
|
-
<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)
|
|
571
571
|
<br><a href="#geoMollweideRaw" name="geoMollweideRaw">#</a> d3.<b>geoMollweideRaw</b>
|
|
572
572
|
|
|
573
|
-
[<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)
|
|
574
574
|
|
|
575
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.
|
|
576
576
|
|
|
577
|
-
<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)
|
|
578
578
|
<br><a href="#geoMtFlatPolarParabolicRaw" name="geoMtFlatPolarParabolicRaw">#</a> d3.<b>geoMtFlatPolarParabolicRaw</b>
|
|
579
579
|
|
|
580
|
-
[<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)
|
|
581
581
|
|
|
582
582
|
The McBryde–Thomas flat-polar parabolic pseudocylindrical equal-area projection.
|
|
583
583
|
|
|
584
|
-
<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)
|
|
585
585
|
<br><a href="#geoMtFlatPolarQuarticRaw" name="geoMtFlatPolarQuarticRaw">#</a> d3.<b>geoMtFlatPolarQuarticRaw</b>
|
|
586
586
|
|
|
587
|
-
[<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)
|
|
588
588
|
|
|
589
589
|
The McBryde–Thomas flat-polar quartic pseudocylindrical equal-area projection.
|
|
590
590
|
|
|
591
|
-
<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)
|
|
592
592
|
<br><a href="#geoMtFlatPolarSinusoidalRaw" name="geoMtFlatPolarSinusoidalRaw">#</a> d3.<b>geoMtFlatPolarSinusoidalRaw</b>
|
|
593
593
|
|
|
594
|
-
[<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)
|
|
595
595
|
|
|
596
596
|
The McBryde–Thomas flat-polar sinusoidal equal-area projection.
|
|
597
597
|
|
|
598
|
-
<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)
|
|
599
599
|
<br><a href="#geoNaturalEarth1Raw" name="geoNaturalEarth1Raw">#</a> d3.<b>geoNaturalEarth1Raw</b>
|
|
600
600
|
|
|
601
|
-
[<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)
|
|
602
602
|
|
|
603
603
|
The Natural Earth projection.
|
|
604
604
|
|
|
605
|
-
<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)
|
|
606
606
|
<br><a href="#geoNaturalEarth2Raw" name="geoNaturalEarth2Raw">#</a> d3.<b>geoNaturalEarth2Raw</b>
|
|
607
607
|
|
|
608
|
-
[<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)
|
|
609
609
|
|
|
610
610
|
The [Natural Earth II](http://www.shadedrelief.com/NE2_proj/) projection. Compared to [Natural Earth](#geoNaturalEarth), it is slightly taller and rounder.
|
|
611
611
|
|
|
612
|
-
<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)
|
|
613
613
|
<br><a href="#geoNellHammerRaw" name="geoNellHammerRaw">#</a> d3.<b>geoNellHammerRaw</b>
|
|
614
614
|
|
|
615
|
-
[<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)
|
|
616
616
|
|
|
617
617
|
The Nell–Hammer projection.
|
|
618
618
|
|
|
619
|
-
<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)
|
|
620
620
|
<br><a href="#geoNicolosiRaw" name="geoNicolosiRaw">#</a> d3.<b>geoNicolosiRaw</b>
|
|
621
621
|
|
|
622
|
-
[<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)
|
|
623
623
|
|
|
624
624
|
The Nicolosi globular projection.
|
|
625
625
|
|
|
626
|
-
<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)
|
|
627
627
|
<br><a href="#geoOrthographicRaw" name="geoOrthographicRaw">#</a> d3.<b>geoOrthographicRaw</b>
|
|
628
628
|
|
|
629
|
-
[<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)
|
|
630
630
|
|
|
631
631
|
The orthographic projection.
|
|
632
632
|
|
|
633
|
-
<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)
|
|
634
634
|
<br><a href="#geoPattersonRaw" name="geoPattersonRaw">#</a> d3.<b>geoPattersonRaw</b>
|
|
635
635
|
|
|
636
|
-
[<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)
|
|
637
637
|
|
|
638
638
|
The Patterson cylindrical projection.
|
|
639
639
|
|
|
640
|
-
<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)
|
|
641
641
|
<br><a href="#geoPolyconicRaw" name="geoPolyconicRaw">#</a> d3.<b>geoPolyconicRaw</b>
|
|
642
642
|
|
|
643
|
-
[<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)
|
|
644
644
|
|
|
645
645
|
The American polyconic projection.
|
|
646
646
|
|
|
647
|
-
<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)
|
|
648
648
|
<br><a href="#geoRectangularPolyconicRaw" name="geoRectangularPolyconicRaw">#</a> d3.<b>geoRectangularPolyconicRaw</b>(<i>phi0</i>)
|
|
649
649
|
|
|
650
|
-
[<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)
|
|
651
651
|
|
|
652
652
|
The rectangular (War Office) polyconic projection.
|
|
653
653
|
|
|
@@ -655,17 +655,17 @@ The rectangular (War Office) polyconic projection.
|
|
|
655
655
|
|
|
656
656
|
Defaults to 0°.
|
|
657
657
|
|
|
658
|
-
<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)
|
|
659
659
|
<br><a href="#geoRobinsonRaw" name="geoRobinsonRaw">#</a> d3.<b>geoRobinsonRaw</b>
|
|
660
660
|
|
|
661
|
-
[<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)
|
|
662
662
|
|
|
663
663
|
The Robinson projection.
|
|
664
664
|
|
|
665
|
-
<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)
|
|
666
666
|
<br><a href="#geoSatelliteRaw" name="geoSatelliteRaw">#</a> d3.<b>geoSatelliteRaw</b>(<i>P</i>, <i>omega</i>)
|
|
667
667
|
|
|
668
|
-
[<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)
|
|
669
669
|
|
|
670
670
|
The satellite (tilted perspective) projection.
|
|
671
671
|
|
|
@@ -675,97 +675,97 @@ Defaults to 0°.
|
|
|
675
675
|
|
|
676
676
|
<a href="#satellite_distance" name="satellite_distance">#</a> <i>satellite</i>.<b>distance</b>([<i>distance</i>])
|
|
677
677
|
|
|
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/
|
|
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).
|
|
679
679
|
|
|
680
|
-
<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)
|
|
681
681
|
<br><a href="#geoSinusoidalRaw" name="geoSinusoidalRaw">#</a> d3.<b>geoSinusoidalRaw</b>
|
|
682
682
|
|
|
683
|
-
[<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)
|
|
684
684
|
|
|
685
685
|
The sinusoidal projection.
|
|
686
686
|
|
|
687
|
-
<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)
|
|
688
688
|
<br><a href="#geoSinuMollweideRaw" name="geoSinuMollweideRaw">#</a> d3.<b>geoSinuMollweideRaw</b>
|
|
689
689
|
|
|
690
|
-
[<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)
|
|
691
691
|
|
|
692
692
|
Allen K. Philbrick’s Sinu-Mollweide projection. See also the [interrupted form](#interruptedSinuMollweide).
|
|
693
693
|
|
|
694
|
-
<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)
|
|
695
695
|
<br><a href="#geoStereographicRaw" name="geoStereographicRaw">#</a> d3.<b>geoStereographicRaw</b>
|
|
696
696
|
|
|
697
|
-
[<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)
|
|
698
698
|
|
|
699
699
|
The stereographic projection.
|
|
700
700
|
|
|
701
|
-
<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)
|
|
702
702
|
<br><a href="#geoTimesRaw" name="geoTimesRaw">#</a> d3.<b>geoTimesRaw</b>
|
|
703
703
|
|
|
704
|
-
[<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)
|
|
705
705
|
|
|
706
706
|
John Muir’s Times projection.
|
|
707
707
|
|
|
708
|
-
<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)
|
|
709
709
|
<br><a href="#geoTransverseMercatorRaw" name="geoTransverseMercatorRaw">#</a> d3.<b>geoTransverseMercatorRaw</b>
|
|
710
710
|
|
|
711
|
-
[<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)
|
|
712
712
|
|
|
713
713
|
The transverse spherical Mercator projection.
|
|
714
714
|
|
|
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/
|
|
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)
|
|
716
716
|
<br><a href="#geoTwoPointAzimuthalRaw" name="geoTwoPointAzimuthalRaw">#</a> d3.<b>geoTwoPointAzimuthalRaw</b>(<i>d</i>)
|
|
717
717
|
|
|
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/
|
|
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.
|
|
719
719
|
|
|
720
|
-
<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)
|
|
721
721
|
|
|
722
|
-
[<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/)
|
|
723
723
|
|
|
724
724
|
The two-point azimuthal projection with points [-158°, 21.5°] and [-77°, 39°], approximately representing Honolulu, HI and Washington, D.C.
|
|
725
725
|
|
|
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/
|
|
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)
|
|
727
727
|
<br><a href="#geoTwoPointEquidistantRaw" name="geoTwoPointEquidistantRaw">#</a> d3.<b>geoTwoPointEquidistantRaw</b>(<i>z0</i>)
|
|
728
728
|
|
|
729
|
-
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)).
|
|
730
730
|
|
|
731
|
-
<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)
|
|
732
732
|
|
|
733
|
-
[<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/)
|
|
734
734
|
|
|
735
735
|
The two-point equidistant projection with points [-158°, 21.5°] and [-77°, 39°], approximately representing Honolulu, HI and Washington, D.C.
|
|
736
736
|
|
|
737
|
-
<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)
|
|
738
738
|
<br><a href="#geoVanDerGrintenRaw" name="geoVanDerGrintenRaw">#</a> d3.<b>geoVanDerGrintenRaw</b>
|
|
739
739
|
|
|
740
|
-
[<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)
|
|
741
741
|
|
|
742
742
|
The Van der Grinten projection.
|
|
743
743
|
|
|
744
|
-
<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)
|
|
745
745
|
<br><a href="#geoVanDerGrinten2Raw" name="geoVanDerGrinten2Raw">#</a> d3.<b>geoVanDerGrinten2Raw</b>
|
|
746
746
|
|
|
747
|
-
[<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)
|
|
748
748
|
|
|
749
749
|
The Van der Grinten II projection.
|
|
750
750
|
|
|
751
|
-
<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)
|
|
752
752
|
<br><a href="#geoVanDerGrinten3Raw" name="geoVanDerGrinten3Raw">#</a> d3.<b>geoVanDerGrinten3Raw</b>
|
|
753
753
|
|
|
754
|
-
[<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)
|
|
755
755
|
|
|
756
756
|
The Van der Grinten III projection.
|
|
757
757
|
|
|
758
|
-
<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)
|
|
759
759
|
<br><a href="#geoVanDerGrinten4Raw" name="geoVanDerGrinten4Raw">#</a> d3.<b>geoVanDerGrinten4Raw</b>
|
|
760
760
|
|
|
761
|
-
[<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)
|
|
762
762
|
|
|
763
763
|
The Van der Grinten IV projection.
|
|
764
764
|
|
|
765
|
-
<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)
|
|
766
766
|
<br><a href="#geoWagnerRaw" name="geoWagnerRaw">#</a> d3.<b>geoWagnerRaw</b>
|
|
767
767
|
|
|
768
|
-
[<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/)
|
|
769
769
|
|
|
770
770
|
The Wagner projection is customizable: default values produce the Wagner VIII projection.
|
|
771
771
|
|
|
@@ -785,43 +785,43 @@ Defaults to 20.
|
|
|
785
785
|
|
|
786
786
|
Defaults to 200.
|
|
787
787
|
|
|
788
|
-
<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)
|
|
789
789
|
<br><a href="#geoWagner4Raw" name="geoWagner4Raw">#</a> d3.<b>geoWagner4Raw</b>
|
|
790
790
|
|
|
791
|
-
[<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)
|
|
792
792
|
|
|
793
793
|
The Wagner IV projection, also known as Putniṇš P2´.
|
|
794
794
|
|
|
795
|
-
<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)
|
|
796
796
|
<br><a href="#geoWagner6Raw" name="geoWagner6Raw">#</a> d3.<b>geoWagner6Raw</b>
|
|
797
797
|
|
|
798
|
-
[<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)
|
|
799
799
|
|
|
800
800
|
The Wagner VI projection.
|
|
801
801
|
|
|
802
|
-
<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)
|
|
803
803
|
|
|
804
|
-
[<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)
|
|
805
805
|
|
|
806
806
|
The Wagner VII projection.
|
|
807
807
|
|
|
808
|
-
<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)
|
|
809
809
|
<br><a href="#geoWiechelRaw" name="geoWiechelRaw">#</a> d3.<b>geoWiechelRaw</b>
|
|
810
810
|
|
|
811
|
-
[<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)
|
|
812
812
|
|
|
813
813
|
The Wiechel projection.
|
|
814
814
|
|
|
815
|
-
<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)
|
|
816
816
|
<br><a href="#geoWinkel3Raw" name="geoWinkel3Raw">#</a> d3.<b>geoWinkel3Raw</b>
|
|
817
817
|
|
|
818
|
-
[<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)
|
|
819
819
|
|
|
820
820
|
The Winkel tripel projection.
|
|
821
821
|
|
|
822
822
|
### Interrupted Projections
|
|
823
823
|
|
|
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/
|
|
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)
|
|
825
825
|
|
|
826
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:
|
|
827
827
|
|
|
@@ -842,109 +842,109 @@ Defines a new interrupted projection for the specified [raw projection](#raw-pro
|
|
|
842
842
|
|
|
843
843
|
Note: interrupted projections typically require clipping to the sphere.
|
|
844
844
|
|
|
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/
|
|
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)
|
|
846
846
|
|
|
847
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.
|
|
848
848
|
|
|
849
|
-
<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)
|
|
850
850
|
|
|
851
|
-
[<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)
|
|
852
852
|
|
|
853
853
|
Goode’s interrupted [homolosine projection](#geoHomolosine). Its [ocean-centric aspect](https://observablehq.com/@d3/interrupted-homolosine-oceans) is also well-known.
|
|
854
854
|
|
|
855
|
-
<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)
|
|
856
856
|
|
|
857
|
-
[<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)
|
|
858
858
|
|
|
859
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).
|
|
860
860
|
|
|
861
|
-
<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)
|
|
862
862
|
|
|
863
|
-
[<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)
|
|
864
864
|
|
|
865
865
|
Bogg’s interrupted [eumorphic projection](#geoBoggs).
|
|
866
866
|
|
|
867
|
-
<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)
|
|
868
868
|
|
|
869
|
-
[<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)
|
|
870
870
|
|
|
871
871
|
Alan K. Philbrick’s interrupted [sinu-Mollweide projection](#geoSinuMollweide).
|
|
872
872
|
|
|
873
|
-
<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)
|
|
874
874
|
|
|
875
|
-
[<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)
|
|
876
876
|
|
|
877
877
|
Goode’s interrupted [Mollweide projection](#geoMollweide).
|
|
878
878
|
|
|
879
|
-
<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)
|
|
880
880
|
|
|
881
|
-
[<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)
|
|
882
882
|
|
|
883
883
|
The [Mollweide projection](#geoMollweide) interrupted into two (equal-area) hemispheres.
|
|
884
884
|
|
|
885
|
-
<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)
|
|
886
886
|
|
|
887
|
-
[<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)
|
|
888
888
|
|
|
889
889
|
The [quartic authalic projection](https://observablehq.com/@d3/hammer?b=Infinity) interrupted into two hemispheres.
|
|
890
890
|
|
|
891
891
|
### Polyhedral Projections
|
|
892
892
|
|
|
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/
|
|
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)
|
|
894
894
|
|
|
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/
|
|
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).
|
|
896
896
|
|
|
897
|
-
<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)
|
|
898
898
|
|
|
899
|
-
[<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)
|
|
900
900
|
|
|
901
901
|
The gnomonic butterfly projection.
|
|
902
902
|
|
|
903
|
-
<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)
|
|
904
904
|
|
|
905
|
-
[<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/)
|
|
906
906
|
|
|
907
907
|
The Collignon butterfly projection.
|
|
908
908
|
|
|
909
|
-
<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)
|
|
910
910
|
|
|
911
|
-
[<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/)
|
|
912
912
|
|
|
913
913
|
Steve Waterman’s butterfly projection.
|
|
914
914
|
|
|
915
915
|
### Quincuncial Projections
|
|
916
916
|
|
|
917
|
-
<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)
|
|
918
918
|
|
|
919
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° - ε.
|
|
920
920
|
|
|
921
|
-
<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)
|
|
922
922
|
|
|
923
|
-
<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)
|
|
924
924
|
|
|
925
925
|
The Gringorten square equal-area projection.
|
|
926
926
|
|
|
927
|
-
<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)
|
|
928
928
|
|
|
929
|
-
[<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)
|
|
930
930
|
|
|
931
931
|
The Peirce quincuncial projection is the quincuncial form of the [Guyou projection](#geoGuyou).
|
|
932
932
|
|
|
933
933
|
### Transformations
|
|
934
934
|
|
|
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/
|
|
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)
|
|
936
936
|
|
|
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/
|
|
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).
|
|
938
938
|
|
|
939
939
|
See also [geoproject](#geoproject-bin).
|
|
940
940
|
|
|
941
|
-
<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)
|
|
942
942
|
|
|
943
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.
|
|
944
944
|
|
|
945
945
|
See also [geostitch](#geostitch-bin).
|
|
946
946
|
|
|
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/
|
|
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)
|
|
948
948
|
|
|
949
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).
|
|
950
950
|
|
|
@@ -954,11 +954,11 @@ See also [geoproject --precision](#geoproject_precision) and [geo2svg --precisio
|
|
|
954
954
|
|
|
955
955
|
### geo2svg
|
|
956
956
|
|
|
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/
|
|
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)
|
|
958
958
|
|
|
959
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.
|
|
960
960
|
|
|
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/
|
|
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:
|
|
962
962
|
|
|
963
963
|
* fill
|
|
964
964
|
* fill-rule (or fillRule)
|
|
@@ -975,7 +975,7 @@ By default, the SVG’s [fill](#geo2svg_fill) is set to none and the [stroke](#g
|
|
|
975
975
|
|
|
976
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).
|
|
977
977
|
|
|
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/
|
|
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).
|
|
979
979
|
|
|
980
980
|
<a name="geo2svg_help" href="#geo2svg_help">#</a> geo2svg <b>-h</b>
|
|
981
981
|
<br><a href="#geo2svg_help">#</a> geo2svg <b>--help</b>
|
|
@@ -1027,9 +1027,9 @@ Accept [newline-delimited JSON](http://ndjson.org/) as input, with one feature p
|
|
|
1027
1027
|
|
|
1028
1028
|
### geograticule
|
|
1029
1029
|
|
|
1030
|
-
<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)
|
|
1031
1031
|
|
|
1032
|
-
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).
|
|
1033
1033
|
|
|
1034
1034
|
<a name="geograticule_help" href="#geograticule_help">#</a> geograticule <b>-h</b>
|
|
1035
1035
|
<br><a href="#geograticule_help">#</a> geograticule <b>--help</b>
|
|
@@ -1048,37 +1048,37 @@ Specify the output file name. Defaults to “-” for stdout.
|
|
|
1048
1048
|
|
|
1049
1049
|
<a name="geograticule_extent" href="#geograticule_extent">#</a> geograticule <b>--extent</b> <i>value</i>
|
|
1050
1050
|
|
|
1051
|
-
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).
|
|
1052
1052
|
|
|
1053
1053
|
<a name="geograticule_extent_minor" href="#geograticule_extent_minor">#</a> geograticule <b>--extent-minor</b> <i>value</i>
|
|
1054
1054
|
|
|
1055
|
-
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).
|
|
1056
1056
|
|
|
1057
1057
|
<a name="geograticule_extent_major" href="#geograticule_extent_major">#</a> geograticule <b>--extent-major</b> <i>value</i>
|
|
1058
1058
|
|
|
1059
|
-
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).
|
|
1060
1060
|
|
|
1061
1061
|
<a name="geograticule_step" href="#geograticule_step">#</a> geograticule <b>--step</b> <i>value</i>
|
|
1062
1062
|
|
|
1063
|
-
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).
|
|
1064
1064
|
|
|
1065
1065
|
<a name="geograticule_step_minor" href="#geograticule_step_minor">#</a> geograticule <b>--step-minor</b> <i>value</i>
|
|
1066
1066
|
|
|
1067
|
-
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).
|
|
1068
1068
|
|
|
1069
1069
|
<a name="geograticule_step_major" href="#geograticule_step_major">#</a> geograticule <b>--step-major</b> <i>value</i>
|
|
1070
1070
|
|
|
1071
|
-
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).
|
|
1072
1072
|
|
|
1073
1073
|
<a name="geograticule_precision" href="#geograticule_precision">#</a> geograticule <b>--precision</b> <i>value</i>
|
|
1074
1074
|
|
|
1075
|
-
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).
|
|
1076
1076
|
|
|
1077
1077
|
### geoproject
|
|
1078
1078
|
|
|
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/
|
|
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)
|
|
1080
1080
|
|
|
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/
|
|
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):
|
|
1082
1082
|
|
|
1083
1083
|
```bash
|
|
1084
1084
|
geoproject 'd3.geoAlbersUsa()' us.json \
|
|
@@ -1093,7 +1093,7 @@ geostitch world.json \
|
|
|
1093
1093
|
> world-mercator.json
|
|
1094
1094
|
```
|
|
1095
1095
|
|
|
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/
|
|
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:
|
|
1097
1097
|
|
|
1098
1098
|
```bash
|
|
1099
1099
|
shp2json planar.shp \
|
|
@@ -1101,7 +1101,7 @@ shp2json planar.shp \
|
|
|
1101
1101
|
> planar.json
|
|
1102
1102
|
```
|
|
1103
1103
|
|
|
1104
|
-
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).
|
|
1105
1105
|
|
|
1106
1106
|
<a name="geoproject_help" href="#geoproject_help">#</a> geoproject <b>-h</b>
|
|
1107
1107
|
<br><a href="#geoproject_help">#</a> geoproject <b>--help</b>
|
|
@@ -1131,7 +1131,7 @@ Accept [newline-delimited JSON](http://ndjson.org/) as input, with one feature p
|
|
|
1131
1131
|
<a name="geoproject_require" href="#geoproject_require">#</a> geoproject <b>-r</b> <i>[name=]value</i>
|
|
1132
1132
|
<br><a href="#geoproject_require">#</a> geoproject <b>--require</b> <i>[name=]value</i>
|
|
1133
1133
|
|
|
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/
|
|
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):
|
|
1135
1135
|
|
|
1136
1136
|
```bash
|
|
1137
1137
|
geoproject --require d3=d3-geo-polygon 'd3.geoAirocean()' world.geojson
|
|
@@ -1143,7 +1143,7 @@ Multiple modules can be required by repeating this option.
|
|
|
1143
1143
|
|
|
1144
1144
|
### geoquantize
|
|
1145
1145
|
|
|
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/
|
|
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)
|
|
1147
1147
|
|
|
1148
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).
|
|
1149
1149
|
|
|
@@ -1154,7 +1154,7 @@ geoquantize us.json --precision 3 \
|
|
|
1154
1154
|
|
|
1155
1155
|
### geostitch
|
|
1156
1156
|
|
|
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/
|
|
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)
|
|
1158
1158
|
|
|
1159
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.
|
|
1160
1160
|
|