瀏覽代碼

Add some straits (under Naturals)

Also adds the scripts used to generate them.
master
Fen Dweller 4 年之前
父節點
當前提交
3293df2b80
共有 10 個文件被更改,包括 155 次插入0 次删除
  1. +7
    -0
      media/attribution.js
  2. +7
    -0
      media/naturals/straits/Strait of Dover.svg
  3. +6
    -0
      media/naturals/straits/Strait of Gibraltar.svg
  4. +8
    -0
      media/naturals/straits/Strait of Hormuz.svg
  5. +11
    -0
      media/naturals/straits/Strait of Juan de Fuca.svg
  6. +7
    -0
      media/naturals/straits/Strait of Messina.svg
  7. +7
    -0
      media/naturals/straits/Strait of Otranto.svg
  8. +11
    -0
      presets/naturals.js
  9. +49
    -0
      scripts/mapshaper/straits.json
  10. +42
    -0
      scripts/mapshaper/straits.py

+ 7
- 0
media/attribution.js 查看文件

@@ -15294,6 +15294,13 @@ const attributionData = {
"openstreetmap"
]
},
{
prefix: "./media/naturals/straits",
all: "https://www.naturalearthdata.com/downloads/10m-physical-vectors/",
authors: [
"naturalearth"
]
},
{
prefix: "./media/food/plants/",
files: [


+ 7
- 0
media/naturals/straits/Strait of Dover.svg 查看文件

@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="800" height="1256" viewBox="0 0 800 1256" stroke-linecap="round" stroke-linejoin="round">
<g id="ne_10m_land">
<path d="M 497.4894 1255.2055 501.6907 1250.4893 553.8818 1207.9145 574.9423 1181.466 579.6215 1177.465 583.0827 1172.0959 591.8148 1138.9363 605.3845 1120.3046 619.1253 1118.2938 658.9266 1137.4454 662.8374 1137.1046 666.1985 1133.6616 666.1602 1129.3839 661.9242 1129.7026 659.242 1128.7337 657.1323 1126.0787 654.8746 1121.3367 663.0885 1121.2632 663.0475 1116.6289 655.2898 1116.5456 647.1852 1113.9421 640.9533 1109.029 638.2902 1102.0226 634.3829 1094.0329 617.1917 1085.789 613.3128 1080.6739 613.8182 1060.5773 616.9887 1036.1055 625.0522 1019.3881 634.2278 1021.1996 640.378 1022.397 640.3462 1018.5007 618.1926 1001.2314 618.161 996.9785 625.3022 975.7595 625.3678 946.3426 627.1787 920.8082 639.4698 911.3103 628.594 894.7924 626.359 886.0994 624.4184 856.722 620.0804 830.0114 619.7887 817.0745 621.6717 805.9292 629.8284 781.1072 634.2653 771.8762 636.3585 759.9384 633.7308 745.6194 627.1762 722.5948 626.1752 713.8914 626.0537 710.7084 635.5708 702.9648 638.9654 701.4848 647.1858 700.651 654.6806 697.7581 661.2696 690.8215 672.5226 674.746 684.5455 663.1669 759.6775 629.2367 766.748 630.5994 780.1063 622.4786 790.5312 621.0138 799 1252.6252 497.4894 1255.2055 Z M 559.3544 3.1283 533.5749 32.017 529.2447 39.0393 524.9195 40.7903 498.6056 6.9309 487.806 3.445 559.3544 3.1283 Z M 471.9641 3.4909 479.3221 8.8261 497.0276 12.9196 501.0822 14.9675 502.7871 17.7874 502.5431 27.8708 501.2352 30.6509 493.412 28.6923 488.8627 29.3184 480.6469 32.0425 476.0652 32.6157 471.2271 31.3301 460.4433 24.1507 451.8767 24.7795 433.1485 31.1237 423.3559 32.7131 433.5337 37.514 497.8216 41.4842 505.4971 36.7967 504.1921 48.4885 473.8103 80.0322 478.7271 83.7871 484.774 86.4428 498.9044 88.5094 502.8843 84.5482 505.7528 78.1208 507.4481 77.4268 508.1295 90.614 503.5744 100.5111 481.5453 121.2103 461.6731 134.7836 449.1428 140.1312 422.0441 144.1913 414.7625 143.1018 411.1363 139.8953 404.9558 127.1401 392.3586 109.8 388.8981 101.4727 387.8243 113.3385 382.0276 120.1095 367.7231 127.1267 355.7683 138.342 352.9297 139.8911 352.7038 143.303 351.5571 150.7879 349.7791 158.2717 347.7549 161.6807 343.2113 162.7676 336.9863 168.2559 333.0072 170.1572 328.2752 170.07 319.7358 166.3814 315.9847 165.4544 306.4239 166.4955 288.48 173.4875 279.8137 178.5468 285.8609 181.5502 292.927 182.5188 299.4488 185.8521 303.867 195.7475 314.8874 184.856 339.7081 179.4408 351.5506 174.4705 362.7314 165.3183 369.5774 164.0269 375.5971 170.22 376.3189 175.5173 375.2098 181.6283 373.5964 186.3127 372.7116 187.3306 373.4967 192.2971 374.9769 197.2132 378.0033 204.8297 374.0839 208.1885 372.6261 213.5352 372.6769 228.0768 371.3462 231.4372 368.2446 234.5413 362.2946 238.9661 372.7948 238.2636 376.5249 240.4312 377.9779 243.259 367.3315 261.2046 347.3922 279.2341 329.8526 290.2264 325.1562 293.144 307.6165 298.6727 276.8019 293.5184 266.0252 294.2611 265.7731 293.9543 260.6407 293.7778 259.1184 294.0507 258.1036 294.2241 257.5918 295.1895 250.0131 302.334 244.266 304.2144 239.0346 304.4155 233.9873 305.6864 228.7267 310.7754 222.4861 304.7278 220.3297 304.8675 211.8314 305.3237 184.7717 312.2434 182.7082 316.7872 181.5507 323.0694 179.0231 330.0545 173.8349 336.2295 168.1921 339.4455 162.3665 341.5892 156.6257 344.8531 181.5754 340.7708 184.8592 338.8085 186.7006 334.4157 188.0658 329.994 189.9203 328.0207 215.4076 321.1371 277.7239 330.6301 283.4185 334.728 288.2395 343.6608 288.6929 349.6477 284.7744 353.0712 276.673 354.1084 262.6846 350.9141 256.6193 351.1145 244.2366 362.9716 229.923 366.3564 222.779 370.9497 225.7763 374.4825 228.4197 378.8533 231.2901 382.614 234.968 384.2394 268.5349 384.4078 284.5388 388.7532 281.4529 381.3803 279.7086 372.7136 281.6712 366.6597 289.8979 366.9969 290.6306 374.9971 294.8477 386.4737 300.3445 396.7569 304.6233 401.2281 387.7941 410.8991 436.1354 395.8208 562.2484 383.581 571.8195 389.2808 568.3821 409.8305 567.0059 413.812 565.1822 417.5413 562.9722 420.5851 560.4379 422.6627 546.4962 422.6618 544.4069 424.8885 545.6546 438.3306 548.5448 448.8604 555.0719 465.4324 558.6544 490.2214 555.532 514.1562 547.6537 534.1423 537.0122 547.1353 510.8024 556.3181 500.0555 564.6621 495.6108 565.1361 487.0997 564.4252 482.4346 566.1459 478.5751 570.1051 475.2278 574.5464 472.2281 577.6874 464.4272 580.967 438.6635 581.6525 430.9845 583.7767 423.0191 589.1595 407.5613 603.4079 387.4046 632.9553 383.4895 640.2896 384.509 656.4899 388.7382 680.7147 375.0527 686.2095 345.3252 676.3148 318.6968 667.4424 302.9826 672.5922 264.1222 710.368 248.2042 717.5505 162.4286 735.3768 147.669 741.8514 145.6749 741.7069 141.2794 747.5271 137.3262 754.1148 136.4674 756.5524 122.8618 765.3172 107.9692 786.1874 93.2706 786.2672 85.4518 784.9876 67.3847 777.9625 63.076 777.1493 49.0917 777.1386 45.5406 775.0073 38.6976 768.0975 31.4012 765.5361 14.5906 764.0977 7.9088 761.5639 1 758.9278 11.3743 1 471.9641 3.4909 Z"/>
<path d="M 362.1336 371.4525 370.3227 380.5284 374.0976 389.7261 371.8338 397.2124 362.0974 401.354 316.4978 397.4175 308.8109 394.4152 301.9973 387.4404 296.5275 378.8641 292.8049 371.2864 297.9164 354.1124 300.6918 350.3268 305.7761 348.9425 354.0715 365.8894 357.8805 368.0852 362.1336 371.4525 Z"/>
</g>
</svg>

+ 6
- 0
media/naturals/straits/Strait of Gibraltar.svg 查看文件

@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="800" height="663" viewBox="0 0 800 663" stroke-linecap="round" stroke-linejoin="round">
<g id="ne_10m_land">
<path d="M 103.892 662.3567 109.7806 606.3547 117.2759 575.6605 126.9238 555.6745 147.5662 533.7753 184.7032 527.7163 283.3257 542.4756 296.3293 540.0114 325.2247 510.8212 338.5747 500.5527 358.0275 490.0144 377.564 485.174 391.0834 491.9495 409.7886 483.0691 435.2105 482.411 460.6817 488.7929 478.8788 500.9317 542.0125 462.9804 559.9452 446.7055 598.2081 402.0925 618.0785 384.351 640.2684 373.4846 648.9222 374.0146 653.8334 378.8789 666.6525 386.0621 676.606 385.4481 680.6844 375.2908 683.1822 365.138 685.8609 362.7887 692.4719 365.4836 692.9944 365.4282 707.6221 363.1767 727.925 364.9918 751.6238 378.14 769.5801 391.9502 788.9416 396.3927 798.8951 391.2548 799 416.8938 761.0294 447.3305 755.5663 467.1986 755.4803 467.5216 750.318 486.7428 754.0137 519.6475 770.3255 588.1116 775.6455 643.707 779.8558 659.6114 781.0847 661.8903 103.892 662.3567 Z M 767.3115 1 766.0075 3.4545 761.0244 17.1351 755.0585 93.804 756.0003 101.7072 752.8939 119.361 744.0746 107.7748 726.409 49.8536 709.3906 37.8081 684.2233 28.7429 663.5558 28.1036 660.1188 41.0221 650.3362 52.2902 645.6475 69.0843 646.6099 87.9074 653.6942 105.1004 648.3762 114.7964 651.343 135.2816 657.2892 148.1745 660.4488 158.9234 657.1426 173.778 649.9061 182.7264 642.5766 189.8457 620.1607 198.7767 513.2352 237.4359 497.8474 247.5679 464.9645 257.5536 445.7468 217.497 400.8523 192.1317 381.9783 177.3976 356.5856 186.8639 334.4121 179.3283 313.2884 166.1946 268.0018 153.0356 251.7618 138.0654 228.8602 104.2582 159.4399 36.0462 138.8897 22.5559 115.663 22.8245 68.0562 31.7337 11.3256 14.9877 1 1.0993 767.3115 1 Z"/>
</g>
</svg>

+ 8
- 0
media/naturals/straits/Strait of Hormuz.svg 查看文件

@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="800" height="470" viewBox="0 0 800 470" stroke-linecap="round" stroke-linejoin="round">
<g id="ne_10m_land">
<path d="M 748.0002 468.1196 749.7784 461.4762 761.5256 448.4061 765.6159 439.8808 760.3126 426.368 734.9412 398.7372 736.9074 387.3972 734.073 384.7926 731.7464 365.6091 728.991 356.0971 724.7337 348.5117 717.3886 341.4643 715.5745 338.2992 714.4681 334.5424 713.0147 324.8481 712.866 320.9296 719.0108 267.9498 717.5843 248.1888 692.2905 149.8244 687.0696 142.2584 674.1614 131.11 669.5352 124.4366 669.9889 117.5965 658.3099 109.8904 654.4406 105.836 659.9517 106.1694 664.0666 104.5068 667.8692 102.0687 672.4731 99.9365 669.2562 97.0538 668.7412 93.0682 670.0405 88.9171 672.3894 85.4335 660.7887 90.539 656.9469 91.3192 653.4347 90.4571 651.2089 88.4831 649.6292 86.4884 647.7784 85.5655 645.8327 84.1251 643.8186 81.3382 641.1951 79.642 633.8305 83.3212 631.6084 81.8815 630.6377 78.3984 630.8011 74.0811 625.9467 75.209 623.3524 72.9938 623.4607 69.8854 627.0207 68.2976 628.8587 66.8041 635.4652 59.5727 638.711 56.9151 638.6949 53.7556 627.6195 52.2722 618.5523 46.1846 612.3949 37.3548 609.9547 27.8004 605.5796 32.1527 600.7622 33.8822 590.5284 33.958 584.8663 32.1325 581.347 28.0539 578.5043 23.9899 574.9025 22.1729 535.7257 21.8323 527.1764 19.1449 524.604 22.3284 515.4348 17.2407 504.0925 14.9184 480.5264 13.7204 469.3404 11.5279 449.5479 3.645 442.3974 2.5893 795.164 1 799 467.7223 748.0002 468.1196 Z M 425.8518 2.6013 414.4707 3.2544 402.5534 6.3299 393.8598 12.3381 385.779 16.2385 361.2299 17.2962 351.2424 19.2902 348.1676 21.359 341.861 27.6021 340.5984 29.6724 339.8245 34.1606 337.7941 35.5738 334.8733 36.1916 331.6121 38.3627 325.087 43.8783 299.6623 59.217 290.5114 66.9672 290.3536 68.7108 288.382 70.0531 281.4774 76.011 277.3517 77.3822 260.4881 79.3228 244.8479 83.0916 240.8162 83.5104 228.173 83.036 223.9858 83.8844 218.3712 87.8697 215.0448 88.7551 200.9221 88.6997 189.0273 85.8527 185.2436 85.7327 178.0602 88.9121 165.3258 100.6973 160.5118 103.2811 156.3096 106.5237 135.7161 129.2427 141.1761 127.4763 143.5231 126.1937 146.3087 123.4974 147.7933 133.8995 145.447 146.5956 140.8849 158.5892 135.5073 167.1592 123.0558 178.1062 108.7412 185.2575 92.8758 188.3889 75.8652 187.3289 45.4253 176.5322 28.062 174.0889 13.6472 180.8141 9.0821 188.8583 6.955 196.4384 3.2407 201.968 1 202.4876 2.6855 1 425.8518 2.6013 Z M 337.8629 469.3479 338.5205 466.5853 363.7911 426.4855 372.9727 407.4297 376.8152 403.5813 383.0415 400.1823 383.3815 402.5306 383.039 408.2629 387.4667 415.1878 386.2889 417.5702 384.6142 423.6301 387.4648 423.6308 391.1215 419.8331 401.0355 419.2812 403.0181 416.5185 405.3414 415.2923 410.3294 417.1561 414.854 421.9202 416.0339 429.3959 418.6969 424.6986 421.3307 424.9392 424.585 426.6814 429.0468 426.4889 439.3898 418.8153 443.4474 417.8103 455.0686 421.0441 457.6087 420.6613 458.6578 417.1032 456.9185 413.3068 453.9414 410.306 451.2143 409.1004 443.7795 408.2273 439.1646 408.5249 435.7899 410.565 433.6235 413.2256 429.8776 416.9921 425.4177 419.343 421.1726 417.8257 421.1086 413.1121 424.0114 395.2748 424.0081 388.5754 435.1609 397.5641 440.1792 399.373 442.2177 393.1899 440.419 389.8764 436.1429 385.5978 430.8773 381.9066 426.4186 380.4244 428.026 376.4867 430.1304 375.7084 432.452 375.7241 434.6797 374.3584 439.3489 368.5532 441.4491 363.4922 440.9461 354.255 442.1782 348.0206 444.5294 348.0184 449.7386 359.582 455.6135 355.6731 457.5296 353.806 460.38 356.9278 458.5892 360.1416 458.4358 361.2296 459.2726 362.2646 460.3905 365.3712 463.9764 362.3621 466.2059 363.4295 468.0976 366.2413 470.7934 368.5166 479.6178 370.9372 484.2612 371.3782 489.1819 371.1275 488.3737 369.2124 487.0652 364.3456 486.3191 362.4304 494.3592 359.5144 498.2176 370.2119 497.4212 374.3574 492.0981 374.7824 482.44 374.2994 476.0674 376.6755 464.6896 386.7587 458.3786 390.8935 458.8431 390.9102 458.7531 393.3449 455.4759 397.769 463.9727 406.7022 468.3137 410.1666 473.4583 411.9718 476.9249 410.2052 480.8842 406.8318 485.0331 406.013 489.2561 411.9448 482.2146 424.5443 478.7467 426.0005 476.3171 417.7687 472.4143 418.2237 468.2004 417.781 469.6624 421.9745 470.069 424.6674 469.5144 426.8437 468.2165 429.3491 473.027 434.3836 478.7966 437.8102 483.8247 442.1525 486.4728 449.8654 482.0087 449.8043 477.9151 448.7752 474.2542 446.7783 470.9022 443.831 465.4195 446.5151 460.7984 444.553 457.9406 439.3942 457.6226 432.5401 455.393 433.9586 449.6316 436.6929 447.4635 438.0764 447.2732 433.553 448.0136 430.0991 449.8085 427.7491 452.6578 426.4684 444.0115 425.0096 434.5652 430.5944 428.9301 438.4714 431.661 443.8737 429.7421 448.4503 429.3112 453.6302 430.0587 459.1029 431.6745 464.4367 435.0173 455.8708 438.1761 451.2757 442.267 449.9255 444.6875 452.6167 445.064 457.5542 444.0148 463.0455 442.282 467.2943 447.1936 469.3625 337.8629 469.3479 Z"/>
<path d="M 426.2931 157.7303 428.0119 146.4193 433.4286 138.6629 443.0351 134.2175 457.2632 132.8212 459.1893 145.8899 447.8314 155.9003 433.3828 160.6094 426.2931 157.7303 Z M 483.1585 42.4111 487.1597 45.063 491.5284 46.7469 495.1313 49.6406 495.3175 50.469 496.5891 55.8189 495.1857 61.2087 491.6262 65.1867 488.9223 66.5386 486.5255 67.7343 480.622 68.7633 468.6811 64.1545 469.5263 53.4656 476.5208 43.8034 483.1585 42.4111 Z M 264.0511 223.3213 266.9702 227.8188 267.6837 237.8358 262.2257 246.9378 254.4943 251.4739 248.3918 248.0536 249.2864 238.2659 254.1915 228.8011 260.3462 224.0533 264.0511 223.3213 Z"/>
<path d="M 384.7133 86.1996 392.1592 87.9969 401.8215 92.2621 407.8539 96.9061 410.0702 98.5805 413.0888 106.505 406.9944 109.977 400.8991 113.4483 377.5598 119.487 369.1799 127.0109 360.5726 146.0158 356.2221 153.3679 340.5497 169.3927 338.0767 175.0533 334.8353 178.5199 320.4263 185.8027 317.1514 189.6652 313.91 191.7489 295.2148 209.7568 284.0632 216.2242 275.3415 212.4903 267.0968 204.0594 257.4343 196.3656 232.0704 209.3734 225.0157 215.3576 217.9667 219.3723 209.8528 219.2723 192.6172 216.6637 184.928 218.3399 176.8276 222.1022 156.3293 236.6981 135.0784 245.6177 122.153 255.0423 115.4639 258.5606 92.0141 261.0767 75.3425 265.5438 68.2723 269.968 64.7429 271.2906 63.6326 271.0757 61.5667 270.6297 57.2845 269.1665 53.4248 269.1391 51.7624 272.7532 50.0124 275.6414 45.8579 277.8732 41.2149 279.2722 37.6902 279.7812 36.0926 278.647 34.7408 277.7044 32.8317 272.8208 31.089 262.3268 33.7076 254.8702 34.4536 250.0757 32.4949 247.8508 28.7066 234.6649 32.8746 230.2763 50.7236 236.7275 54.872 234.8578 57.2123 235.5478 58.3208 235.8836 78.4529 224.7458 129.2043 208.5304 136.5805 207.7076 141.3711 205.8684 142.731 205.3404 142.7927 205.3234 160.3641 194.6385 167.9483 188.5281 192.7785 179.005 196.6637 178.7451 204.5218 179.4161 208.315 179.0685 211.0941 177.8879 215.0217 174.5877 218.6946 173.3064 217.5649 170.4532 215.9117 167.5288 221.7303 160.9199 223.1155 152.9476 221.4297 133.9825 218.5006 126.7197 212.0584 120.4967 205.7666 115.5511 203.1945 112.1566 212.8208 106.6173 265.6153 126.8372 279.9433 123.4901 319.8939 97.7406 369.8822 86.4693 384.7133 86.1996 Z"/>
</g>
</svg>

+ 11
- 0
media/naturals/straits/Strait of Juan de Fuca.svg
文件差異過大導致無法顯示
查看文件


+ 7
- 0
media/naturals/straits/Strait of Messina.svg 查看文件

@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="800" height="874" viewBox="0 0 800 874" stroke-linecap="round" stroke-linejoin="round">
<g id="ne_10m_land">
<path d="M 286.9191 872.8889 262.7863 666.8586 404.3655 456.0743 673.1164 333.2654 798.6877 294.2438 799 872.7897 286.9191 872.8889 Z"/>
<path d="M 1.2025 1 128.5737 57.99 412.7999 108.0523 386.1909 194.8511 339.4565 240.3148 275.8447 253.9467 194.7107 246.4887 1 375.6602 1.2025 1 Z"/>
</g>
</svg>

+ 7
- 0
media/naturals/straits/Strait of Otranto.svg 查看文件

@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" width="800" height="936" viewBox="0 0 800 936" stroke-linecap="round" stroke-linejoin="round">
<g id="ne_10m_land">
<path d="M 797.5208 793.0004 796.0688 792.2431 797.4972 790.7741 797.5208 793.0004 Z M 797.463 787.5473 787.8916 781.1053 786.1529 784.7168 785.5547 786.33 785.1038 788.9905 783.6872 784.0733 781.6478 781.6844 779.0697 780.0374 776.1071 777.4793 775.5389 775.298 772.47 768.8574 768.969 763.492 767.444 764.6233 763.2381 760.3804 735.5122 751.674 712.1925 737.9992 698.6555 725.9714 674.9302 718.1233 661.0141 707.6912 620.9017 663.2293 616.1933 655.6913 614.1245 651.128 608.3365 626.6547 605.2379 619.9318 590.5401 605.4815 585.338 598.5223 584.6133 596.3386 584.6102 595.7136 582.2606 594.7881 582.242 591.0384 593.3228 585.178 600.1483 584.5384 606.6967 589.0328 621.6886 607.18 625.6691 613.2488 631.2924 626.2037 633.6216 634.1569 634.6217 641.6499 638.5501 644.0349 647.3152 641.9007 656.0644 637.6219 659.9503 633.8223 662.3853 584.0315 661.1387 575.9159 650.3973 569.7417 635.9729 555.2629 624.4327 538.9304 622.2913 527.1584 625.1616 530.5558 626.3402 534.6331 627.4554 539.3804 630.8422 538.3546 633.9638 538.3347 642.1002 547.5222 647.2735 544.6304 649.9523 534.3447 650.6763 521.1707 645.4167 510.6713 634.3611 505.0301 624.3442 507.9279 622.2665 523.0739 619.2311 514.6329 590.0827 471.8969 587.7885 467.0875 589.8202 460.5594 595.4457 455.128 602.1207 450.0471 607.3019 444.4825 610.9749 435.8903 612.5791 426.7072 612.827 394.0956 614.1262 385.2045 617.8072 379.2454 625.4621 376.9668 629.8069 374.9085 628.6625 370.2284 625.5905 365.0916 624.1172 361.6857 625.9129 357.2552 628.8558 352.7951 631.569 349.4746 632.7442 348.5073 629.3962 342.2344 623.0681 334.0823 618.9082 326.9652 622.4653 323.9081 628.7241 321.4811 636.7751 309.6447 643.519 304.6675 637.7969 311.1781 641.3563 324.0109 638.0559 335.014 638.1325 346.5976 641.2377 346.5771 642.4675 338.7346 642.4115 340.4313 643.0314 342.2798 643.8029 346.56 649.2193 339.0908 670.905 328.3562 677.8222 319.7779 678.4259 306.2698 673.9945 295.523 668.4603 285.6544 665.8868 274.893 664.576 288.9861 659.5453 301.6552 648.9731 318.1564 648.7878 315.7471 646.4048 312.5046 650.8241 307.9212 655.5229 300.1436 658.4507 290.1014 657.4252 278.7035 655.3509 276.0175 648.6279 273.2518 646.1216 271.2824 643.1159 265.1648 643.3653 262.217 645.0987 259.6387 649.3193 217.9408 647.1058 209.1624 644.7267 205.4737 642.9153 201.1561 643.1934 197.5833 652.1726 193.4379 653.5397 187.2017 653.4869 179.7925 654.114 173.5392 670.7341 146.1474 673.5731 135.6371 672.1454 124.5341 667.7793 114.9927 661.5924 108.2758 654.9354 105.779 645.9169 105.8412 638.3303 104.4635 633.0682 99.6327 631.0559 89.2686 630.9072 66.6193 629.4689 61.7637 623.3384 56.1116 622.1603 49.826 627.6297 56.9998 636.7998 56.428 643.5099 48.7743 641.6723 34.7061 651.3694 29.151 661.4433 20.7121 669.3156 9.2746 670.8798 2.0704 788.9301 1 797.463 787.5473 Z M 3.5748 447.3429 12.6577 449.1567 26.7005 456.1769 26.1966 469.0955 30.9366 469.2104 41.6373 465.8343 47.8885 467.234 49.5475 470.8212 49.6701 475.7329 51.4129 481.2626 61.083 490.6608 62.712 494.0908 60.0784 518.7754 94.2256 547.8018 132.3157 569.9503 140.5547 571.8619 143.3934 573.9129 151.853 588.7915 156.5759 594.0013 170.3002 605.7851 181.0029 624.0633 187.0776 632.3572 194.4742 635.881 198.1969 639.5174 225.9507 678.4944 251.963 741.9033 253.7243 745.2357 255.8985 747.7662 258.6913 749.2053 256.5514 755.58 257.6291 759.4451 259.1862 762.955 258.6202 768.2644 255.2194 773.6967 248.4024 779.0925 244.8528 795.2577 239.2906 801.6612 223.9967 813.0623 214.3429 836.9827 212.8442 842.6434 211.1794 854.1499 207.2177 866.1351 206.267 871.3519 209.1749 885.4924 209.314 891.9421 203.444 921.0983 204.5521 925.6339 202.349 927.3626 198.0529 934.9674 183.2984 934.8836 183.1066 934.8187 179.7564 932.9915 159.491 916.5313 152.5831 914.0756 135.2073 913.9548 129.6963 912.9553 119.3286 906.005 108.9828 901.1717 95.9276 888.4808 80.7074 877.7969 75.1098 875.7173 71.1968 872.8931 44.5701 831.7631 39.5915 826.6712 39.6301 822.61 46.2316 822.2947 50.1292 818.5828 50.9734 812.2975 48.3816 804.3057 43.9501 799.5096 32.7459 795.6725 28.1988 792.5247 43.1808 783.2776 46.6724 771.4831 41.0302 758.0378 28.6782 743.8548 17.5493 734.434 11.4854 727.1169 8.8743 719.1439 8.8137 708.6088 7.9905 699.3154 5.6148 691.9248 1 687.1932 1.0015 687.0541 6.3468 687.1117 6.3827 683.6973 1.0835 679.3624 3.5748 447.3429 Z"/>
<path d="M 791.2668 933.4144 798.5975 931.7986 798.9821 931.626 799 933.3307 791.2668 933.4144 Z"/>
</g>
</svg>

+ 11
- 0
presets/naturals.js 查看文件

@@ -894,6 +894,8 @@ const globalCityData = [
["Beijing", 16426832679.115694, 178940.11723688344],
]

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]]

function makePlanet(name, diameter, mass, image) {
return {
name: name,
@@ -1108,6 +1110,15 @@ function makeNaturals() {
"Global Cities",
false
));

results.push(makeGIS(
straitData.sort((s1, s2) => {
return s1[0].localeCompare(s2[0])
}),
"Straits",
false
));

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


+ 49
- 0
scripts/mapshaper/straits.json 查看文件

@@ -0,0 +1,49 @@
{
"name": "Straits",
"directory": "/media/naturals/straits/",
"shapefile": "E:/macrovision/mapshaper/straits/ne_10m_land.shp",
"items": [
{
"name": "Strait of Dover",
"lat0": 50,
"lon0": 0,
"lat1": 52,
"lon1": 2
},
{
"name": "Strait of Gibraltar",
"lat0": 35.7,
"lon0": -6.1,
"lat1": 36.2,
"lon1": -5.3
},
{
"name": "Strait of Hormuz",
"lat0": 26.1,
"lon0": 55.2,
"lat1": 27.2,
"lon1": 57.3
},
{
"name": "Strait of Messina",
"lat0": 38.2,
"lon0": 15.6,
"lat1": 38.3,
"lon1": 15.7
},
{
"name": "Strait of Otranto",
"lat0": 39.8,
"lon0": 17.9,
"lat1": 41.5,
"lon1": 19.8
},
{
"name": "Strait of Juan de Fuca",
"lat0": 48.1,
"lon0": -125.1,
"lat1": 49.7,
"lon1": -122.3
}
]
}

+ 42
- 0
scripts/mapshaper/straits.py 查看文件

@@ -0,0 +1,42 @@
import json
import sys
import subprocess

config = json.load(open(sys.argv[1]))
results = []

for item in config["items"]:
lon0 = item["lon0"]
lat0 = item["lat0"]
lon1 = item["lon1"]
lat1 = item["lat1"]

center_lat = (lat0 + lat1) / 2
center_lon = (lon0 + lon1) / 2

path = "../../" + config["directory"] + "/" + item["name"] + ".svg"

CMD = """\
mapshaper -i {7} \
-rectangle bbox={0},{1},{2},{3} name=rect \
-clip rect target=ne_10m_land \
-proj crs="+proj=nsper +h=10000000 +lon_0={4} +lat_0={5}" target=ne_10m_land,rect \
-each 'console.log(this.bounds.concat([this.area]))' target=rect \
-o "{6}" target=ne_10m_land
"""

prepared = CMD.format(lon0, lat0, lon1, lat1, center_lon, center_lat, path, config["shapefile"])
print(prepared)
result = subprocess.check_output(
prepared,
shell=True
)

data = json.loads(result.decode("utf-8"))

height = data[3] - data[1]
area = data[4]

results.append([item["name"], area, height])

print(json.dumps(results))

Loading…
取消
儲存