Skip to content

Commit 5fd3428

Browse files
committed
sort geo projection types
1 parent bf839d3 commit 5fd3428

File tree

2 files changed

+67
-72
lines changed

2 files changed

+67
-72
lines changed

src/plots/geo/constants.js

Lines changed: 41 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -2,125 +2,120 @@
22

33
// projection names to d3 function name
44
exports.projNames = {
5-
'equirectangular': 'equirectangular',
6-
'mercator': 'mercator',
7-
'orthographic': 'orthographic',
8-
'natural earth': 'naturalEarth',
9-
'kavrayskiy7': 'kavrayskiy7',
10-
'miller': 'miller',
11-
'robinson': 'robinson',
12-
'eckert4': 'eckert4',
13-
'azimuthal equal area': 'azimuthalEqualArea',
14-
'azimuthal equidistant': 'azimuthalEquidistant',
15-
'conic equal area': 'conicEqualArea',
16-
'conic conformal': 'conicConformal',
17-
'conic equidistant': 'conicEquidistant',
18-
'gnomonic': 'gnomonic',
19-
'stereographic': 'stereographic',
20-
'mollweide': 'mollweide',
21-
'hammer': 'hammer',
22-
'transverse mercator': 'transverseMercator',
23-
'albers usa': 'albersUsa',
24-
'winkel tripel': 'winkel3',
25-
'aitoff': 'aitoff',
26-
'sinusoidal': 'sinusoidal',
27-
285
'airy': 'airy',
6+
'aitoff': 'aitoff',
7+
'albers usa': 'albersUsa',
298
'albers': 'albers',
309
// 'armadillo': 'armadillo',
3110
'august': 'august',
11+
'azimuthal equal area': 'azimuthalEqualArea',
12+
'azimuthal equidistant': 'azimuthalEquidistant',
3213
'baker': 'baker',
3314
// 'berghaus': 'berghaus',
3415
'bertin1953': 'bertin1953',
3516
'boggs': 'boggs',
3617
'bonne': 'bonne',
3718
'bottomley': 'bottomley',
3819
'bromley': 'bromley',
39-
// 'chamberlin': 'chamberlin',
4020
// 'chamberlin africa': 'chamberlinAfrica',
21+
// 'chamberlin': 'chamberlin',
4122
'collignon': 'collignon',
23+
'conic conformal': 'conicConformal',
24+
'conic equal area': 'conicEqualArea',
25+
'conic equidistant': 'conicEquidistant',
4226
'craig': 'craig',
4327
'craster': 'craster',
4428
'cylindrical equal area': 'cylindricalEqualArea',
4529
'cylindrical stereographic': 'cylindricalStereographic',
4630
'eckert1': 'eckert1',
4731
'eckert2': 'eckert2',
4832
'eckert3': 'eckert3',
33+
'eckert4': 'eckert4',
4934
'eckert5': 'eckert5',
5035
'eckert6': 'eckert6',
5136
'eisenlohr': 'eisenlohr',
37+
'equirectangular': 'equirectangular',
5238
'fahey': 'fahey',
53-
'foucaut': 'foucaut',
5439
'foucaut sinusoidal': 'foucautSinusoidal',
40+
'foucaut': 'foucaut',
5541
// 'gilbert': 'gilbert',
5642
// 'gingery': 'gingery',
5743
'ginzburg4': 'ginzburg4',
5844
'ginzburg5': 'ginzburg5',
5945
'ginzburg6': 'ginzburg6',
6046
'ginzburg8': 'ginzburg8',
6147
'ginzburg9': 'ginzburg9',
48+
'gnomonic': 'gnomonic',
49+
'gringorten quincuncial': 'gringortenQuincuncial',
6250
'gringorten': 'gringorten',
6351
'guyou': 'guyou',
6452
// 'hammer retroazimuthal': 'hammerRetroazimuthal',
53+
'hammer': 'hammer',
6554
// 'healpix': 'healpix',
6655
'hill': 'hill',
6756
'homolosine': 'homolosine',
6857
'hufnagel': 'hufnagel',
6958
'hyperelliptical': 'hyperelliptical',
59+
// 'interrupted boggs': 'interruptedBoggs',
60+
// 'interrupted homolosine': 'interruptedHomolosine',
61+
// 'interrupted mollweide hemispheres': 'interruptedMollweideHemispheres',
62+
// 'interrupted mollweide': 'interruptedMollweide',
63+
// 'interrupted quartic authalic': 'interruptedQuarticAuthalic',
64+
// 'interrupted sinu mollweide': 'interruptedSinuMollweide',
65+
// 'interrupted sinusoidal': 'interruptedSinusoidal',
66+
'kavrayskiy7': 'kavrayskiy7',
7067
'lagrange': 'lagrange',
7168
'larrivee': 'larrivee',
7269
'laskowski': 'laskowski',
7370
// 'littrow': 'littrow',
7471
'loximuthal': 'loximuthal',
75-
// 'modified stereographic': 'modifiedStereographic',
72+
'mercator': 'mercator',
73+
'miller': 'miller',
7674
// 'modified stereographic alaska': 'modifiedStereographicAlaska',
7775
// 'modified stereographic gs48': 'modifiedStereographicGs48',
7876
// 'modified stereographic gs50': 'modifiedStereographicGs50',
79-
// 'modified stereographic miller': 'modifiedStereographicMiller',
8077
// 'modified stereographic lee': 'modifiedStereographicLee',
78+
// 'modified stereographic miller': 'modifiedStereographicMiller',
79+
// 'modified stereographic': 'modifiedStereographic',
80+
'mollweide': 'mollweide',
8181
'mt flat polar parabolic': 'mtFlatPolarParabolic',
8282
'mt flat polar quartic': 'mtFlatPolarQuartic',
8383
'mt flat polar sinusoidal': 'mtFlatPolarSinusoidal',
84+
'natural earth': 'naturalEarth',
8485
'natural earth1': 'naturalEarth1',
8586
'natural earth2': 'naturalEarth2',
8687
'nell hammer': 'nellHammer',
8788
'nicolosi': 'nicolosi',
89+
'orthographic': 'orthographic',
8890
'patterson': 'patterson',
91+
'peirce quincuncial': 'peirceQuincuncial',
8992
'polyconic': 'polyconic',
93+
// 'polyhedral butterfly': 'polyhedralButterfly',
94+
// 'polyhedral collignon': 'polyhedralCollignon',
95+
// 'polyhedral waterman': 'polyhedralWaterman',
9096
'rectangular polyconic': 'rectangularPolyconic',
97+
'robinson': 'robinson',
9198
'satellite': 'satellite',
9299
'sinu mollweide': 'sinuMollweide',
100+
'sinusoidal': 'sinusoidal',
101+
'stereographic': 'stereographic',
93102
'times': 'times',
94-
// 'two point azimuthal': 'twoPointAzimuthal',
103+
'transverse mercator': 'transverseMercator',
95104
// 'two point azimuthalUsa': 'twoPointAzimuthalUsa',
96-
// 'two point equidistant': 'twoPointEquidistant',
105+
// 'two point azimuthal': 'twoPointAzimuthal',
97106
// 'two point equidistantUsa': 'twoPointEquidistantUsa',
107+
// 'two point equidistant': 'twoPointEquidistant',
98108
'van der grinten': 'vanDerGrinten',
99109
'van der grinten2': 'vanDerGrinten2',
100110
'van der grinten3': 'vanDerGrinten3',
101111
'van der grinten4': 'vanDerGrinten4',
102-
// 'wagner': 'wagner',
103112
'wagner4': 'wagner4',
104113
'wagner6': 'wagner6',
105114
// 'wagner7': 'wagner7',
115+
// 'wagner': 'wagner',
106116
'wiechel': 'wiechel',
117+
'winkel tripel': 'winkel3',
107118
'winkel3': 'winkel3',
108-
109-
// 'interrupt': 'interrupt',
110-
// 'interrupted homolosine': 'interruptedHomolosine',
111-
// 'interrupted sinusoidal': 'interruptedSinusoidal',
112-
// 'interrupted boggs': 'interruptedBoggs',
113-
// 'interrupted sinu mollweide': 'interruptedSinuMollweide',
114-
// 'interrupted mollweide': 'interruptedMollweide',
115-
// 'interrupted mollweide hemispheres': 'interruptedMollweideHemispheres',
116-
// 'interrupted quartic authalic': 'interruptedQuarticAuthalic',
117-
118-
// 'polyhedral butterfly': 'polyhedralButterfly',
119-
// 'polyhedral collignon': 'polyhedralCollignon',
120-
// 'polyhedral waterman': 'polyhedralWaterman',
121-
122-
'gringorten quincuncial': 'gringortenQuincuncial',
123-
'peirce quincuncial': 'peirceQuincuncial',
124119
};
125120

126121
// name of the axes

test/plot-schema.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,89 +2066,89 @@
20662066
"editType": "plot",
20672067
"valType": "enumerated",
20682068
"values": [
2069-
"equirectangular",
2070-
"mercator",
2071-
"orthographic",
2072-
"natural earth",
2073-
"kavrayskiy7",
2074-
"miller",
2075-
"robinson",
2076-
"eckert4",
2077-
"azimuthal equal area",
2078-
"azimuthal equidistant",
2079-
"conic equal area",
2080-
"conic conformal",
2081-
"conic equidistant",
2082-
"gnomonic",
2083-
"stereographic",
2084-
"mollweide",
2085-
"hammer",
2086-
"transverse mercator",
2087-
"albers usa",
2088-
"winkel tripel",
2089-
"aitoff",
2090-
"sinusoidal",
20912069
"airy",
2070+
"aitoff",
2071+
"albers usa",
20922072
"albers",
20932073
"august",
2074+
"azimuthal equal area",
2075+
"azimuthal equidistant",
20942076
"baker",
20952077
"bertin1953",
20962078
"boggs",
20972079
"bonne",
20982080
"bottomley",
20992081
"bromley",
21002082
"collignon",
2083+
"conic conformal",
2084+
"conic equal area",
2085+
"conic equidistant",
21012086
"craig",
21022087
"craster",
21032088
"cylindrical equal area",
21042089
"cylindrical stereographic",
21052090
"eckert1",
21062091
"eckert2",
21072092
"eckert3",
2093+
"eckert4",
21082094
"eckert5",
21092095
"eckert6",
21102096
"eisenlohr",
2097+
"equirectangular",
21112098
"fahey",
2112-
"foucaut",
21132099
"foucaut sinusoidal",
2100+
"foucaut",
21142101
"ginzburg4",
21152102
"ginzburg5",
21162103
"ginzburg6",
21172104
"ginzburg8",
21182105
"ginzburg9",
2106+
"gnomonic",
2107+
"gringorten quincuncial",
21192108
"gringorten",
21202109
"guyou",
2110+
"hammer",
21212111
"hill",
21222112
"homolosine",
21232113
"hufnagel",
21242114
"hyperelliptical",
2115+
"kavrayskiy7",
21252116
"lagrange",
21262117
"larrivee",
21272118
"laskowski",
21282119
"loximuthal",
2120+
"mercator",
2121+
"miller",
2122+
"mollweide",
21292123
"mt flat polar parabolic",
21302124
"mt flat polar quartic",
21312125
"mt flat polar sinusoidal",
2126+
"natural earth",
21322127
"natural earth1",
21332128
"natural earth2",
21342129
"nell hammer",
21352130
"nicolosi",
2131+
"orthographic",
21362132
"patterson",
2133+
"peirce quincuncial",
21372134
"polyconic",
21382135
"rectangular polyconic",
2136+
"robinson",
21392137
"satellite",
21402138
"sinu mollweide",
2139+
"sinusoidal",
2140+
"stereographic",
21412141
"times",
2142+
"transverse mercator",
21422143
"van der grinten",
21432144
"van der grinten2",
21442145
"van der grinten3",
21452146
"van der grinten4",
21462147
"wagner4",
21472148
"wagner6",
21482149
"wiechel",
2149-
"winkel3",
2150-
"gringorten quincuncial",
2151-
"peirce quincuncial"
2150+
"winkel tripel",
2151+
"winkel3"
21522152
]
21532153
}
21542154
},

0 commit comments

Comments
 (0)