Skip to content

Commit

Permalink
New stroekshapes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dabendorf committed Oct 9, 2023
1 parent 01771a2 commit cd86690
Show file tree
Hide file tree
Showing 94 changed files with 1,413 additions and 1,413 deletions.
222 changes: 111 additions & 111 deletions data/AlterSVG.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 99,
"execution_count": 1,
"id": "0734900e",
"metadata": {},
"outputs": [],
Expand All @@ -13,7 +13,7 @@
},
{
"cell_type": "code",
"execution_count": 100,
"execution_count": 2,
"id": "92c46400",
"metadata": {},
"outputs": [],
Expand All @@ -23,18 +23,18 @@
},
{
"cell_type": "code",
"execution_count": 101,
"execution_count": 3,
"id": "aa46775e",
"metadata": {},
"outputs": [],
"source": [
"with open(\"Standard2.svg\") as f:\n",
"with open(\"Standard1.svg\") as f:\n",
" filecontent = f.read().split(\"<defs/>\\n \")"
]
},
{
"cell_type": "code",
"execution_count": 102,
"execution_count": 4,
"id": "5a4fcbe2",
"metadata": {
"scrolled": true
Expand All @@ -46,7 +46,7 @@
"94"
]
},
"execution_count": 102,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -65,7 +65,7 @@
},
{
"cell_type": "code",
"execution_count": 103,
"execution_count": 5,
"id": "bd47498a",
"metadata": {},
"outputs": [],
Expand All @@ -75,7 +75,7 @@
},
{
"cell_type": "code",
"execution_count": 104,
"execution_count": 6,
"id": "ff485950",
"metadata": {},
"outputs": [],
Expand All @@ -85,7 +85,7 @@
},
{
"cell_type": "code",
"execution_count": 105,
"execution_count": 7,
"id": "bc86e081",
"metadata": {},
"outputs": [],
Expand All @@ -98,7 +98,7 @@
},
{
"cell_type": "code",
"execution_count": 106,
"execution_count": 8,
"id": "b4ba87e2",
"metadata": {},
"outputs": [],
Expand All @@ -116,7 +116,7 @@
},
{
"cell_type": "code",
"execution_count": 107,
"execution_count": 9,
"id": "d0e877d7",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -153,7 +153,7 @@
},
{
"cell_type": "code",
"execution_count": 108,
"execution_count": 10,
"id": "b37b4a51",
"metadata": {},
"outputs": [],
Expand All @@ -163,7 +163,7 @@
},
{
"cell_type": "code",
"execution_count": 109,
"execution_count": 11,
"id": "63e6849b",
"metadata": {
"scrolled": true
Expand All @@ -183,7 +183,7 @@
},
{
"cell_type": "code",
"execution_count": 110,
"execution_count": 12,
"id": "0b970044",
"metadata": {
"scrolled": true
Expand All @@ -192,102 +192,102 @@
{
"data": {
"text/plain": [
"{59: '3394.75 2612.24 80.05 83.71',\n",
" 70: '3097.5 1749.32 310.39 216.32',\n",
" 69: '3021.02 1461.22 281.12 368.13',\n",
" 68: '3040.42 1270.8 428.56 320.93',\n",
" 67: '3637.71 1689.2 257.23 260.42',\n",
" 66: '3442.07 1682.19 254.48 285.28',\n",
" 65: '3208.52 1537.5 349.73 369.03',\n",
" 64: '3069.7 1084.1 169.28 227.69',\n",
" 63: '3277.6 2650.09 123.22 106.82',\n",
" 62: '3304.9 2691.58 103.65 106.12',\n",
" 61: '3347.83 2690.75 125.32 106.27',\n",
" 60: '3323.08 2733.67 111.25 101.47',\n",
" 71: '3385.99 2010.67 191.97 190.33',\n",
" 58: '3425.34 2643.49 80.54 103.12',\n",
" 57: '3334.38 2628.86 133.75 101.02',\n",
" 56: '3402.31 2665.53 100.57 107.15',\n",
" 55: '3430.52 2722.89 92.92 97.28',\n",
" 54: '3391.37 2737.12 119.4 130.01',\n",
" 53: '3364.19 2759.65 95.8 94.77',\n",
" 52: '3448.45 2642.67 96.74 102.13',\n",
" 51: '3416.37 2586.75 141.16 116.32',\n",
" 50: '3473.24 2699.46 140.66 161.01',\n",
" 49: '3449.89 2694.77 140.2 176.35',\n",
" 48: '3461.56 2770.8 122.9 102.42',\n",
" 82: '3393.09 3827.31 230.15 328.84',\n",
" 93: '3125.71 4035.14 334.44 415.07',\n",
" 92: '3404.69 3951.33 374.57 396.08',\n",
" 91: '3848.48 3761.23 532.14 508.95',\n",
" 90: '3632.58 3885.95 315.77 277.97',\n",
" 89: '4240.31 2662.49 564.94 747.71',\n",
" 88: '4357.48 2917.2 571.3 463.22',\n",
" 87: '3798.19 3153.86 532.18 560.93',\n",
" 86: '3762.78 3536.04 299.81 425.31',\n",
" 85: '3502.64 3644.0 210.35 340.75',\n",
" 84: '3586.2 3668.34 268.88 317.32',\n",
" 83: '3571.72 3815.05 191.66 250.88',\n",
" 47: '3307.29 2772.77 155.13 134.99',\n",
" 81: '3221.69 3878.88 224.23 261.48',\n",
" 80: '3097.34 3912.1 203.83 268.97',\n",
" 79: '2940.42 3881.51 278.51 373.09',\n",
" 78: '2717.37 3856.92 333.78 386.74',\n",
" 77: '2874.46 3621.53 201.36 173.57',\n",
" 76: '3832.59 1857.82 651.99 1349.33',\n",
" 75: '3652.93 1810.57 350.67 483.69',\n",
" 74: '3487.0 2097.19 412.69 375.07',\n",
" 73: '3149.64 2072.02 298.8 429.48',\n",
" 72: '3150.79 1996.53 414.67 277.5',\n",
" 12: '2762.39 3040.65 93.89 190.28',\n",
" 23: '3609.23 3202.89 150.21 265.79',\n",
" 22: '3572.03 3293.81 161.05 272.11',\n",
" 21: '3614.54 3361.3 362.66 369.46',\n",
" 20: '3666.62 3047.51 165.51 335.29',\n",
" 19: '3668.0 3252.68 158.61 326.1',\n",
" 18: '3498.38 3347.43 123.32 142.5',\n",
" 17: '3410.38 3347.85 149.36 190.12',\n",
" 16: '3425.79 3161.88 229.39 296.97',\n",
" 15: '3562.71 3077.14 179.19 211.66',\n",
" 14: '3525.48 2880.01 232.15 247.46',\n",
" 13: '3498.09 2950.58 220.43 238.1',\n",
" 24: '5251.99 2216.4 538.23 585.0',\n",
" 11: '2680.56 3045.01 149.68 269.88',\n",
" 10: '2361.4 2784.52 361.5 387.74',\n",
" 9: '2618.7 2771.23 204.52 331.21',\n",
" 8: '2669.29 2687.8 212.07 397.95',\n",
" 7: '2782.69 2643.17 226.95 574.48',\n",
" 6: '2917.35 2699.39 193.36 306.12',\n",
" 5: '3050.3 2714.9 103.77 260.0',\n",
" 4: '3110.67 2740.34 166.69 150.82',\n",
" 3: '3193.28 2802.27 201.55 210.89',\n",
" 2: '3319.69 2889.27 148.12 135.76',\n",
" 35: '3653.23 3468.85 281.46 327.7',\n",
" 46: '3407.29 2807.72 182.27 161.1',\n",
" 45: '3358.77 2853.94 175.52 137.04',\n",
" 44: '3511.07 2780.09 216.15 167.98',\n",
" 43: '3379.49 2399.58 176.84 233.75',\n",
" 42: '2776.85 3113.03 230.78 436.84',\n",
" 41: '3159.46 3065.04 234.9 496.41',\n",
" 40: '2912.89 3156.33 412.41 353.58',\n",
" 39: '2891.1 2901.64 229.81 385.11',\n",
" 38: '3231.84 2955.03 300.87 651.5',\n",
" 37: '3268.16 3490.06 200.07 241.03',\n",
" 36: '3230.23 2948.79 139.48 184.74',\n",
" 1: '3392.1 2947.62 227.05 302.72',\n",
" 34: '3512.3 1590.84 314.63 259.73',\n",
" 33: '3702.75 1209.62 508.06 568.31',\n",
" 32: '3393.27 1317.07 391.14 403.9',\n",
" 31: '3718.06 1533.03 442.58 381.79',\n",
" 30: '3559.49 1040.74 357.99 396.78',\n",
" 29: '3176.88 886.847 485.53 451.623',\n",
" 28: '4320.45 2136.69 334.18 632.19',\n",
" 27: '4046.67 1692.02 363.94 492.32',\n",
" 26: '4390.17 1953.79 358.3 493.17',\n",
" 25: '4659.16 2332.88 656.63 397.95'}"
"{59: '2911.51 2582.29 76.58 79.92',\n",
" 70: '2640.07 1794.28 286.92 201.01',\n",
" 69: '2570.23 1531.19 260.19 339.64',\n",
" 68: '2587.95 1357.3 394.82 296.54',\n",
" 67: '3133.39 1739.38 238.37 241.28',\n",
" 66: '2954.73 1732.98 235.86 263.98',\n",
" 65: '2741.45 1600.84 322.85 340.47',\n",
" 64: '2614.69 1186.81 158.05 211.39',\n",
" 63: '2804.54 2616.85 116.0 101.02',\n",
" 62: '2829.47 2654.74 98.13 100.38',\n",
" 61: '2868.67 2653.99 117.91 100.51',\n",
" 60: '2846.07 2693.17 105.07 96.14',\n",
" 71: '2903.52 2032.94 178.78 177.28',\n",
" 58: '2939.45 2610.83 77.02 97.64',\n",
" 57: '2856.39 2597.46 125.61 95.72',\n",
" 56: '2918.42 2630.95 95.31 101.32',\n",
" 55: '2944.18 2683.34 88.33 92.3',\n",
" 54: '2908.43 2696.33 112.51 122.19',\n",
" 53: '2883.61 2716.9 90.96 90.02',\n",
" 52: '2960.55 2610.08 91.82 96.73',\n",
" 51: '2931.26 2559.01 132.38 109.69',\n",
" 50: '2983.2 2661.93 131.92 150.51',\n",
" 49: '2961.87 2657.65 131.5 164.52',\n",
" 48: '2972.53 2727.08 115.7 97.0',\n",
" 82: '2910.0 3691.87 213.64 303.77',\n",
" 93: '2665.84 3881.66 308.87 382.52',\n",
" 92: '2920.59 3805.13 345.53 365.17',\n",
" 91: '3325.85 3631.53 489.43 468.24',\n",
" 90: '3128.71 3745.42 291.82 257.32',\n",
" 89: '3683.67 2628.17 519.37 686.27',\n",
" 88: '3790.68 2860.77 525.17 426.49',\n",
" 87: '3279.94 3076.89 489.45 515.7',\n",
" 86: '3247.6 3425.89 277.25 391.87',\n",
" 85: '3010.04 3524.48 195.57 314.64',\n",
" 84: '3086.35 3546.7 249.01 293.25',\n",
" 83: '3073.13 3680.68 178.49 232.57',\n",
" 47: '2831.65 2728.88 145.13 126.74',\n",
" 81: '2753.49 3738.96 208.23 242.26',\n",
" 80: '2639.93 3769.31 189.61 249.09',\n",
" 79: '2496.63 3741.37 257.8 344.17',\n",
" 78: '2292.95 3718.91 308.27 356.64',\n",
" 77: '2436.39 3503.96 187.36 161.97',\n",
" 76: '3311.35 1893.36 598.86 1235.67',\n",
" 75: '3147.29 1850.22 323.7 445.16',\n",
" 74: '2995.76 2111.95 380.34 345.98',\n",
" 73: '2687.68 2088.96 276.34 395.67',\n",
" 72: '2688.73 2020.02 382.15 256.89',\n",
" 12: '2334.06 2973.51 89.2 177.23',\n",
" 23: '3107.38 3121.66 140.64 246.19',\n",
" 22: '3073.41 3204.69 150.54 251.96',\n",
" 21: '3112.23 3266.32 334.65 340.86',\n",
" 20: '3159.78 2979.77 154.62 309.66',\n",
" 19: '3161.05 3167.13 148.31 301.27',\n",
" 18: '3006.15 3253.65 116.09 133.61',\n",
" 17: '2925.79 3254.04 139.87 177.09',\n",
" 16: '2939.86 3084.21 212.95 274.66',\n",
" 15: '3064.9 3006.83 167.11 196.76',\n",
" 14: '3030.9 2826.81 215.47 229.45',\n",
" 13: '3005.89 2891.26 204.76 220.9',\n",
" 24: '4607.53 2220.81 494.98 537.69',\n",
" 11: '2259.33 2977.49 140.16 249.92',\n",
" 10: '1967.88 2739.61 333.58 357.56',\n",
" 9: '2202.84 2727.48 190.24 305.92',\n",
" 8: '2249.04 2651.29 197.13 366.88',\n",
" 7: '2352.59 2610.53 210.72 528.08',\n",
" 6: '2475.56 2661.87 180.05 283.02',\n",
" 5: '2596.97 2676.04 98.24 240.9',\n",
" 4: '2652.1 2699.27 155.69 141.19',\n",
" 3: '2727.54 2755.82 187.52 196.06',\n",
" 2: '2842.97 2835.27 138.74 127.45',\n",
" 35: '3147.56 3364.53 260.5 302.73',\n",
" 46: '2922.97 2760.8 169.92 150.58',\n",
" 45: '2878.66 2803.01 163.76 128.61',\n",
" 44: '3017.74 2735.57 200.86 156.86',\n",
" 43: '2897.58 2388.09 164.97 216.93',\n",
" 42: '2347.26 3039.6 214.21 402.39',\n",
" 41: '2696.65 2995.78 217.98 456.79',\n",
" 40: '2471.49 3079.15 380.08 326.36',\n",
" 39: '2451.59 2846.56 213.34 355.16',\n",
" 38: '2762.75 2895.32 278.22 598.42',\n",
" 37: '2795.92 3383.9 186.17 223.58',\n",
" 36: '2761.28 2889.62 130.85 172.17',\n",
" 1: '2909.1 2888.55 210.81 279.92',\n",
" 34: '3018.86 1649.56 290.79 240.66',\n",
" 33: '3192.78 1301.43 467.42 522.45',\n",
" 32: '2910.16 1399.55 360.67 372.31',\n",
" 31: '3206.76 1596.76 407.64 352.12',\n",
" 30: '3061.96 1147.21 330.38 365.81',\n",
" 29: '2712.56 1006.679 446.85 415.891',\n",
" 28: '3756.86 2148.02 308.64 580.78',\n",
" 27: '3506.85 1741.95 335.81 453.06',\n",
" 26: '3820.52 1980.99 330.68 453.84',\n",
" 25: '4066.16 2327.18 603.1 366.88'}"
]
},
"execution_count": 110,
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -314,7 +314,7 @@
},
{
"cell_type": "code",
"execution_count": 111,
"execution_count": 13,
"id": "8ba0b672",
"metadata": {},
"outputs": [],
Expand All @@ -324,15 +324,15 @@
},
{
"cell_type": "code",
"execution_count": 112,
"execution_count": 15,
"id": "c3b02049",
"metadata": {
"scrolled": true
},
"outputs": [],
"source": [
"for idx in range(1,len(filecontent)):\n",
" filename = f\"public/images/countries/{idx}/vector.svg\"\n",
" filename = f\"../public/images/countries/{idx}/vector.svg\"\n",
" #os.makedirs(os.path.dirname(filename), exist_ok=True)\n",
" with open(f\"{filename}\",\"w\") as toWrite:\n",
" toWrite.write(f\"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" version=\\\"1.2\\\" baseProfile=\\\"tiny\\\" xmlns:inkscape=\\\"http://www.inkscape.org/namespaces/inkscape\\\" width=\\\"315.045mm\\\" viewBox=\\\"{extremePoints[idx]}\\\" height=\\\"227.076mm\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" xmlns:cc=\\\"http://creativecommons.org/ns#\\\">\\n\")\n",
Expand Down
Loading

0 comments on commit cd86690

Please sign in to comment.