Selaa lähdekoodia

Add the Suez Canal

master
Fen Dweller 5 vuotta sitten
vanhempi
commit
b2b1716b81
4 muutettua tiedostoa jossa 41 lisäystä ja 0 poistoa
  1. +11
    -0
      media/attribution.js
  2. +10
    -0
      media/naturals/canals/Suez Canal.svg
  3. +9
    -0
      presets/naturals.js
  4. +11
    -0
      scripts/mapshaper/canals-egypt.json

+ 11
- 0
media/attribution.js Näytä tiedosto

@@ -15502,6 +15502,13 @@ const attributionData = {
"naturalearth" "naturalearth"
] ]
}, },
{
prefix: "./media/naturals/straits/",
all: "https://www.diva-gis.org/gdata",
authors: [
"diva-gis"
]
},
{ {
prefix: "./media/food/plants/", prefix: "./media/food/plants/",
files: [ files: [
@@ -20842,6 +20849,10 @@ const attributionData = {
"name": "Bailey Burrows", "name": "Bailey Burrows",
"url": "https://twitter.com/itsybatsy" "url": "https://twitter.com/itsybatsy"
}, },
"diva-gis": {
"name": "DIVA-GIS",
"url": "https://www.diva-gis.org"
},
} }
} }




+ 10
- 0
media/naturals/canals/Suez Canal.svg Näytä tiedosto

@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="222" height="1000" viewBox="0 0 222 1000" stroke-linecap="round" stroke-linejoin="round">
<g id="temp">
<path d="M 36.0523 96.4822 37.9781 233.7212 39.7579 317.5714 50.8731 364.6213 58.9529 401.0443 42.9834 478.6606 32.1422 498.6587 29.9126 520.5355 52.6713 548.3415 61.3534 594.6928 68.8082 603.1833 71.719 627.3786 69.5444 627.7544 66.6318 629.9612 59.3143 630.8681 60.7426 625.4742 46.3749 548.9201 26.1981 522.4098 0.5 505.0138 4.7151 494.7015 29.0185 491.4781 37.0026 476.9405 53.1345 397.9981 40.1846 375.1107 33.5775 340.6648 32.0547 241.8235 25.629 0.5 34.0877 2.0791 36.0523 96.4822 Z" stroke-width="1"/>
<path d="M 143.9539 740.8058 143.8218 750.0401 140.0576 765.2186 126.0117 773.2645 111.5722 765.7432 107.9772 750.0716 79.3728 733.0701 57.2857 731.6047 24.9014 681.7177 31.2102 640.3639 59.3143 630.8681 66.6318 629.9612 69.5444 627.7544 71.719 627.3786 82.3982 628.3822 102.1445 663.8814 115.7993 676.0854 132.9117 734.7642 143.9539 740.8058 Z" stroke-width="1"/>
<path d="M 208.592 813.0216 205.3047 812.5482 177.4154 784.5295 169.2139 764.3557 143.8218 750.0401 143.9539 740.8058 183.0749 746.2428 204.0399 773.317 208.592 813.0216 Z" stroke-width="1"/>
<path d="M 208.592 813.0216 211.0108 905.9496 219.1057 951.1119 217.5512 953.0221 214.9783 953.0256 206.1925 907.7982 205.3047 812.5482 208.592 813.0216 Z" stroke-width="1"/>
<path d="M 214.5709 999.5 218.8913 973.2017 214.9783 953.0256 217.5512 953.0221 221.2448 976.2971 214.5709 999.5 Z" stroke-width="1"/>
</g>
</svg>

+ 9
- 0
presets/naturals.js Näytä tiedosto

@@ -897,6 +897,7 @@ const globalCityData = [
const straitData = [["Strait of Dover", 31174983454.928658, 222577.01735751258], ["Strait of Gibraltar", 4012438156.156927, 55658.19643643095], ["Strait of Hormuz", 25574748008.534893, 122431.35146918982], ["Strait of Messina", 97316549.67370307, 11131.941670965367], ["Strait of Otranto", 30353100830.64735, 189202.32829987607], ["Strait of Juan de Fuca", 36469939347.95791, 178049.49203886717], ["Bering Strait", 49612154086.2841, 211274.1384794921], ["Bass Strait", 278145181872.9597, 477687.07599560975], ["Palk Strait", 36632925592.65483, 166948.86982564948], ["Hudson Strait", 235671965415.1174, 353978.9165560771], ["Cook Strait", 14519643084.23072, 133569.43807438243], ["Sunda Strait", 2465200363.833765, 44527.260899000394], ["Taiwan Strait", 166569712655.73682, 411498.3631607854], ["Dardanelles Strait", 11897169147.76046, 100178.63730052409]] const straitData = [["Strait of Dover", 31174983454.928658, 222577.01735751258], ["Strait of Gibraltar", 4012438156.156927, 55658.19643643095], ["Strait of Hormuz", 25574748008.534893, 122431.35146918982], ["Strait of Messina", 97316549.67370307, 11131.941670965367], ["Strait of Otranto", 30353100830.64735, 189202.32829987607], ["Strait of Juan de Fuca", 36469939347.95791, 178049.49203886717], ["Bering Strait", 49612154086.2841, 211274.1384794921], ["Bass Strait", 278145181872.9597, 477687.07599560975], ["Palk Strait", 36632925592.65483, 166948.86982564948], ["Hudson Strait", 235671965415.1174, 353978.9165560771], ["Cook Strait", 14519643084.23072, 133569.43807438243], ["Sunda Strait", 2465200363.833765, 44527.260899000394], ["Taiwan Strait", 166569712655.73682, 411498.3631607854], ["Dardanelles Strait", 11897169147.76046, 100178.63730052409]]
const usInterstateData = [['I-4', 133860.30238806643], ['I-5', 1841743.6685230015], ['I-8', 34419.884328052016], ['I-10', 662879.3942106421], ['I-12', 19601.661536140884], ['I-15', 1816556.2052351916], ['I-16', 88682.21453954442], ['I-17', 196173.201019035], ['I-19', 96426.05795676696], ['I-20', 347517.6947013905], ['I-24', 422558.98468291573], ['I-27', 617402.3082503016], ['I-29', 1111036.612182809], ['I-30', 231405.98002341753], ['I-35', 2158534.7689142646], ['I-37', 184231.0220610815], ['I-39', 489892.86533484043], ['I-40', 284554.8659969368], ['I-43', 228844.0768209733], ['I-44', 529117.6640772996], ['I-45', 394580.1764593749], ['I-49', 251521.75720683142], ['I-55', 1320388.2525614214], ['I-57', 544229.4386494028], ['I-59', 524278.150028191], ['I-64', 211843.6849640966], ['I-65', 1231049.0138181376], ['I-66', 24025.370784500737], ['I-66', 24025.370784500737], ['I-68', 15236.945179002872], ['I-69', 919351.2585854017], ['I-70', 277234.499188129], ['I-71', 361487.36346668913], ['I-72', 51460.97992201334], ['I-73', 97266.49617697322], ['I-74', 787056.102051467], ['I-75', 2278563.590324183], ['I-76', 118573.83898121146], ['I-76', 118573.83898121146], ['I-77', 850346.766475037], ['I-78', 34308.43505956534], ['I-79', 419586.7946081714], ['I-80', 335341.92972237605], ['I-81', 928130.9026841171], ['I-82', 132340.54932080585], ['I-83', 114410.28676654567], ['I-84', 709596.756786839], ['I-84', 709596.756786839], ['I-85', 546086.7051157606], ['I-86', 136716.7078032001], ['I-86', 136716.7078032001], ['I-87', 472844.76602409093], ['I-87', 472844.76602409093], ['I-88', 140816.2124300237], ['I-88', 140816.2124300237], ['I-89', 207356.9330399862], ['I-90', 930313.3415125563], ['I-91', 416438.4476691138], ['I-93', 250192.56712266232], ['I-94', 632131.6607593653], ['I-95', 2284530.2371507674], ['I-96', 96262.96337466157], ['I-97', 27501.47734637078], ['I-99', 96624.23888346303]] const usInterstateData = [['I-4', 133860.30238806643], ['I-5', 1841743.6685230015], ['I-8', 34419.884328052016], ['I-10', 662879.3942106421], ['I-12', 19601.661536140884], ['I-15', 1816556.2052351916], ['I-16', 88682.21453954442], ['I-17', 196173.201019035], ['I-19', 96426.05795676696], ['I-20', 347517.6947013905], ['I-24', 422558.98468291573], ['I-27', 617402.3082503016], ['I-29', 1111036.612182809], ['I-30', 231405.98002341753], ['I-35', 2158534.7689142646], ['I-37', 184231.0220610815], ['I-39', 489892.86533484043], ['I-40', 284554.8659969368], ['I-43', 228844.0768209733], ['I-44', 529117.6640772996], ['I-45', 394580.1764593749], ['I-49', 251521.75720683142], ['I-55', 1320388.2525614214], ['I-57', 544229.4386494028], ['I-59', 524278.150028191], ['I-64', 211843.6849640966], ['I-65', 1231049.0138181376], ['I-66', 24025.370784500737], ['I-66', 24025.370784500737], ['I-68', 15236.945179002872], ['I-69', 919351.2585854017], ['I-70', 277234.499188129], ['I-71', 361487.36346668913], ['I-72', 51460.97992201334], ['I-73', 97266.49617697322], ['I-74', 787056.102051467], ['I-75', 2278563.590324183], ['I-76', 118573.83898121146], ['I-76', 118573.83898121146], ['I-77', 850346.766475037], ['I-78', 34308.43505956534], ['I-79', 419586.7946081714], ['I-80', 335341.92972237605], ['I-81', 928130.9026841171], ['I-82', 132340.54932080585], ['I-83', 114410.28676654567], ['I-84', 709596.756786839], ['I-84', 709596.756786839], ['I-85', 546086.7051157606], ['I-86', 136716.7078032001], ['I-86', 136716.7078032001], ['I-87', 472844.76602409093], ['I-87', 472844.76602409093], ['I-88', 140816.2124300237], ['I-88', 140816.2124300237], ['I-89', 207356.9330399862], ['I-90', 930313.3415125563], ['I-91', 416438.4476691138], ['I-93', 250192.56712266232], ['I-94', 632131.6607593653], ['I-95', 2284530.2371507674], ['I-96', 96262.96337466157], ['I-97', 27501.47734637078], ['I-99', 96624.23888346303]]
const riverData = [['Rio Grande', 1343726.718946372], ['Amazon', 321654.3749335119], ['Mississippi', 2077320.423469436], ['Missouri', 1061247.347409356], ['Ohio', 417303.9821675314], ['Alabama', 402093.77536960616], ['Brazos', 527028.5171901184], ['Niger', 1407309.825626704], ['Danube', 598931.4337621646], ['Rhine', 593713.8890593982], ['Seine', 225832.28095087496], ['Thames', 51519.0292274607], ['Volga', 1388250.6642362578], ['Nile', 1625123.3465649856], ['Ganges', 997881.3863786167], ['Indus', 1324928.6616848952], ['Yellow', 833504.3887224646], ['Yangtze', 407730.1167946202], ['Tiber', 227457.74069036526]] const riverData = [['Rio Grande', 1343726.718946372], ['Amazon', 321654.3749335119], ['Mississippi', 2077320.423469436], ['Missouri', 1061247.347409356], ['Ohio', 417303.9821675314], ['Alabama', 402093.77536960616], ['Brazos', 527028.5171901184], ['Niger', 1407309.825626704], ['Danube', 598931.4337621646], ['Rhine', 593713.8890593982], ['Seine', 225832.28095087496], ['Thames', 51519.0292274607], ['Volga', 1388250.6642362578], ['Nile', 1625123.3465649856], ['Ganges', 997881.3863786167], ['Indus', 1324928.6616848952], ['Yellow', 833504.3887224646], ['Yangtze', 407730.1167946202], ['Tiber', 227457.74069036526]]
const canalData = [['Suez Canal', 142645.14813263412]]


function makePlanet(name, diameter, mass, image) { function makePlanet(name, diameter, mass, image) {
return { return {
@@ -1145,6 +1146,14 @@ function makeNaturals() {
false false
)); ));


results.push(makeGIS(
canalData.sort((c1, c2) => {
return c1[0].localeCompare(c2[0])
}),
"Canals",
false
));

results.sort((b1, b2) => { results.sort((b1, b2) => {
e1 = b1.constructor(); e1 = b1.constructor();
e2 = b2.constructor(); e2 = b2.constructor();


+ 11
- 0
scripts/mapshaper/canals-egypt.json Näytä tiedosto

@@ -0,0 +1,11 @@
{
"name": "Rivers",
"directory": "/media/naturals/canals/",
"shapefile": "E:/macrovision/mapshaper/canals/egypt/EGY_water_areas_dcw.shp",
"mode": "filter",
"base-filter": "true",
"stroke-width": 1,
"items": [
{"name": "Suez Canal", "filter": "this.properties.NAME == 'SUEZ CANAL' || this.properties.NAME == 'GREAT BITTER LAKE' || this.properties.NAME == 'LITTLE BITTER LAKE'"}
]
}

Loading…
Peruuta
Tallenna