Merge pull request #349 from zod/update-rd5-sizes

Update rd5 sizes
This commit is contained in:
afischerdev 2021-11-02 18:39:26 +01:00 committed by GitHub
commit e4a29a163e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 311 additions and 277 deletions

View file

@ -3,228 +3,227 @@ package btools.routingapp;
public class BInstallerSizes {
public static int getRd5Size( int idx )
{
return (int)(rd5_sizes[idx]*1.4); // 40% growth since last fixing the numbers..
public static int getRd5Size(int idx) {
return rd5_sizes[idx];
}
private static int[] rd5_sizes = {
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,12788,0,0,
0,0,0,0,4433,0,0,4859,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,8983,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,4845,31145,13487,0,0,
5767,0,0,0,0,0,0,0,0,23706,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
9529,0,4514,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,13099,0,0,0,0,
8576,8578,12714,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,4644,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,4572,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,4443,17717,4765,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,4901,
10308,0,4438,4438,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,4482,37377,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,496877,559833,42700,
156446,0,0,0,17398,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,4783,0,10431,0,0,
5483,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,15138,909393,799710,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,4625,0,0,16930,0,
0,8036,16492,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,1057973,461376,0,
143612,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,2331179,549695,157026,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,90355,2585920,0,0,0,428902,3459729,1466450,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,3892417,912302,1362138,
1408067,4452,0,0,0,0,0,0,0,5346,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,6629,0,0,0,0,0,0,0,100343,
0,0,0,1168357,6662387,9634925,324088,0,0,0,2523732,3607981,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,4644,8382,4794884,1932007,4376934,
6264482,2570466,0,0,0,0,0,0,0,0,0,0,
0,0,0,2912299,2478662,4303742,467439,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,29664,5633129,
397105,132073,318116,3353360,1134398,2677776,6664081,10170,0,0,72077,0,
9360,0,0,0,0,0,0,6513,0,7331,0,0,
0,0,27770,0,0,0,0,5593,0,719020,2098533,1106607,
4545066,10314699,4740543,0,0,0,0,0,0,0,0,0,
0,0,0,1169385,1129565,9792677,5160518,0,110075,745590,0,0,
0,0,0,0,0,0,0,0,0,0,202775,354573,
233506,221331,314552,308324,429147,1023405,6418120,0,0,19407,0,0,
91971,23234,0,0,34947,14776,12810,0,4847,7454,0,0,
0,0,0,0,0,0,0,0,0,287666,3756774,2065644,
1680375,5728755,14928972,9059163,0,0,5151,0,0,0,0,0,
0,0,272417,1707772,887960,3286700,1993447,213977,1049862,3550979,0,1457345,
0,0,0,0,0,0,0,0,0,0,123780,636203,
255988,149860,570729,457865,718729,1325823,643870,0,281382,1251630,0,0,
44136,46358,25911,4434,28575,64399,160014,9899,4497,0,0,0,
0,0,0,0,0,0,0,0,10449,2149812,8259828,3389159,
953645,1211163,4884917,4909326,487510,0,0,0,0,0,30058,0,
0,0,729436,789192,1293655,2317363,2448366,2018628,408875,5166086,88801,7825,
26632,0,0,0,0,0,0,0,0,0,0,4867,
170925,526567,353506,335506,539694,955506,0,0,0,377380,4458,571415,
29554,274533,18059,9338,0,0,19092,4505,6373,0,0,0,
0,0,0,0,0,0,0,0,3535100,4571185,1936687,834348,
803689,923634,1324305,1847537,2044759,0,0,0,0,0,0,0,
0,0,478939,958994,659213,1995941,1662846,1340921,521043,1085948,99120,4623,
0,0,0,0,0,0,0,6665,0,11318,0,5730,
480524,96063,611438,94466,331140,37627,55335,4901,21211,57074,0,7268,
0,8881,0,0,0,0,0,56198,45226,0,0,0,
0,0,0,0,0,0,0,151933,4052567,664314,555686,639317,
529949,616132,942133,1043631,4263076,700518,0,0,0,14660,0,0,
0,0,1027940,1093102,984212,1259372,1388878,2295122,0,4821,14661,0,
0,0,11331,0,0,0,0,0,82702,3934469,4919038,3425899,
1992705,603616,116118,198977,610743,703588,187588,241451,137028,0,0,31011,
0,7798,0,4505,4512,8640,0,0,0,0,0,0,
0,0,0,0,0,41162,16527,1424427,6177883,580206,556577,546893,
675534,747114,1264208,895118,781718,13856,0,0,0,0,0,0,
0,185602,1903203,1702260,804497,5603136,4236564,3365006,389295,0,0,83148,
0,0,12719,0,0,0,0,104143,1504336,533588,723538,1877316,
1171238,324500,352956,424530,407896,68992,148583,0,0,16586,14812,24528,
0,0,0,5393,30758,0,0,0,0,0,0,0,
0,0,0,0,0,0,4493,33490,4883625,3549950,655816,735285,
476909,994813,10167,0,0,0,0,0,0,0,133636,65766,
0,1043357,2775866,1747752,1148026,888079,4088125,1509070,2485447,1019955,0,0,
0,0,80789,0,0,0,0,1706671,5128139,192815,1194784,531573,
572778,331693,9565,0,0,0,0,0,0,0,48726,0,
0,0,0,4670,0,0,0,0,0,0,0,0,
0,0,0,0,7322,5069,120051,2750254,3335878,6661353,778278,1068853,
728095,359231,0,0,0,0,0,0,0,8570949,7884980,3054349,
4159638,4277185,4395630,1901279,973008,935385,1884355,2562439,1124426,1110043,77675,0,
0,0,55823,2565036,3997282,0,34108,2077346,2806092,443965,9683,1035874,
2902324,2868412,45552,15072,8734,9436,28729,33987,18836,33274,32387,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,1714354,4944681,1367007,305590,1712290,2001808,2461872,
191403,0,0,0,0,0,0,81742,1846161,4340126,5544534,4406947,
1325248,5044198,3401100,570180,701890,577782,871358,1842979,1099125,641243,391151,0,
0,0,814747,13037283,631406,12699,132372,1863337,6014174,6110055,4635,207273,
11098331,577885,0,4897,179411,29459,0,0,5961,15547,0,0,
0,0,5098,0,428483,28518,0,0,0,0,0,0,
0,10504,38483,2055820,7613246,2456788,1805753,126301,1473635,5332031,5345428,1800138,
0,0,0,0,0,0,129491,271436,475475,590455,516354,1170449,
599635,314740,113144,177091,175067,24189,1404218,485622,1198130,264549,950444,286396,
0,0,5462979,7287246,2235463,66110,314509,6198232,8201536,2350646,224066,205144,
5139877,0,0,0,0,81482,0,0,0,7191,0,0,
0,0,0,16923,1108583,0,0,0,0,0,0,0,
0,194686,1392974,5213219,2726272,72106,1537974,1908367,2411489,387012,0,0,
0,0,0,0,0,0,0,0,180900,217399,52180,94332,
157103,200388,155365,195383,45022,84731,359745,1364108,719014,1658720,1156731,2606542,
0,822443,5234664,4836211,3361389,4435264,3432823,3091168,2639777,2685186,7000794,1803461,
7802592,168858,5117,0,8488,0,5391,0,0,0,0,0,
9502,0,0,0,0,0,0,0,0,0,0,0,
30532,717536,2996799,4182538,15451413,1815153,564486,17002224,280434,0,0,0,
0,0,0,0,0,0,0,0,3811171,1692624,2386681,135332,
180311,232502,367992,218220,139529,221556,2172251,732037,951341,1475112,2891162,2426942,
624251,1384132,3985425,7994907,14117196,14325783,3090505,2169515,3005396,2690770,2950740,4685941,
2982588,1875138,39421,0,24604,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,788704,
18125742,12021770,10027202,12768780,27535364,22923336,27136861,36465366,5153505,0,0,83711,
0,0,0,0,0,0,0,0,586909,29760,9115408,2976678,
846081,1705512,2313003,298855,593955,416446,6697606,11074546,1776700,3210590,2511716,812497,
748677,1352000,6331455,5648532,662498,411113,724913,1285172,2238291,3119420,3426254,5243365,
4412138,4825380,59818336,21508634,4510,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,26175067,
11676977,9989110,20107375,12639500,19991018,31123727,31551326,59104387,67189559,1517724,0,0,
0,0,0,0,0,51049,804353,0,0,0,20761329,25030325,
9063839,7225473,8319754,7506923,23103844,11826164,10604633,11957434,8060413,5254663,3013993,1904338,
1044110,3038463,1564118,787935,292903,150019,281241,593116,1541898,1799124,2856936,4539773,
1358213,13209839,7556936,67812627,28618938,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,26853071,
12144455,15649975,14161486,10887229,16751329,24777567,28325158,27710875,37652991,52295331,3692407,2408284,
0,0,0,0,0,0,0,0,0,0,38429305,40926769,
62763440,34614678,41033043,25017624,23456552,15166682,8026782,6853583,15223404,5568300,608761,421746,
509081,3658027,3520038,2008811,787699,986555,369394,276326,334731,564107,889412,2099207,
2291559,2618269,1924391,419956,22950899,433393,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,632873,27234093,
14625832,10080729,5313214,11329046,11879732,11759843,8072928,7878613,6605975,9571369,7196814,4783203,
744611,863555,0,4635,0,0,0,0,0,0,106610,41456986,
71451419,139953118,118302471,60388420,27792904,17126664,9424415,11115450,6557393,1468133,369205,568302,
438690,232869,562379,463151,832232,842841,425513,521477,659614,1081125,380813,539607,
871336,1077166,1574238,1216862,1783815,49139,31856,0,0,0,0,0,
14793,8470,42768,18227,0,0,0,0,0,249323,1379879,3865356,
4800611,6396664,3002705,2419796,1391574,805275,312324,237516,200426,225795,400198,321348,
338312,0,0,0,0,0,0,0,0,346613,19288361,66659935,
38287097,101408868,69311735,39097227,26992630,10379849,10039879,13304062,5952053,6316786,4748753,4812625,
1793316,1124183,2772453,1176417,3956260,3284457,1790549,888565,1967847,1247829,881008,886569,
697384,1093493,835946,1819580,960696,0,0,896331,37176,54783,17945,20045,
0,12823,27864,98341,364765,352582,14045,13812,213508,498455,949600,2984875,
1070676,645590,151846,172619,375168,261851,19336,0,66527,88664,189528,107148,
6098,0,0,4517,0,0,0,0,0,0,2916922,13002839,
54517,12532624,28383456,11155193,9244913,11031986,9156203,17369263,8183140,7184967,7361283,8440216,
7383530,3071968,2585388,1753465,2441723,1952656,2523707,1419904,770820,560761,385253,268171,
391219,475879,411641,381508,216400,68489,248661,321382,305769,24304,0,0,
4572,61407,124123,296494,249678,364194,1155758,349616,686635,357194,198344,236403,
196338,179283,12914,20191,38871,31129,0,6748,73051,58409,72715,0,
0,71655,88516,11371,0,0,0,1392171,506944,75475,141424,159489,
125334,5967349,9211343,5916211,13651882,14177843,5646177,2703884,3941836,2699140,1472095,1922494,
1934094,3277561,2621247,1949151,394609,465003,447119,336212,356096,241439,384476,368430,
289436,470193,474288,267775,433842,265112,247961,169883,227783,277482,293303,185929,
175498,112994,85575,231955,237243,270282,349593,280651,376392,253588,72112,19850,
27568,39208,55532,50850,56226,6695,13032,21314,0,0,16577,20987,
0,194211,11429,0,19351,0,0,375336,527109,174073,0,0,
0,0,1293067,2102487,2882816,3471123,2545333,528577,391618,506742,1203943,873862,
784023,601759,379759,582169,353603,485019,277545,263964,313161,254010,363619,251144,
231869,194921,291734,214136,204868,259544,264336,244310,368632,330481,320090,246644,
91661,0,0,21509,91031,74729,70140,10412,0,0,5512,36782,
28938,6038,0,0,4648,17585,10797,10537,5938,0,5964,0,
23069,39708,0,0,0,0,0,17748,0,0,11244,0,
0,0,0,23513,171479,508275,68979,0,0,0,82726,95225,
4629,129943,187307,106898,127061,222312,241374,216125,324192,220564,217794,121613,
117235,175902,84764,180655,178696,166572,100569,44807,0,4489,9330,18738,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,4507,0,0,4567,5503,0,4937,22602,0,
0,0,0,0,0,0,4465,0,0,0,0,0,
0,0,23058,50263,4759,0,0,0,0,0,0,0,
4486,11548,0,15440,0,41916,129567,251853,313848,87027,87100,0,
0,0,0,24484,11019,37916,13736,4654,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,15944,44664,55480,41169,34119,95595,44421,
0,0,0,0,0,0,0,4834,4460,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,77867,108038,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,8567,4437,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
};
// Generated using ReadSizes.java
private static int[] rd5_sizes = {
0, 0, 0, 4443, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
16902, 16840, 8576, 12739, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12775, 25231,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 4462, 0, 0, 0, 9299, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 10684, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 4885, 31340, 13578, 0, 0,
5737, 0, 0, 0, 0, 0, 0, 0, 0, 35066, 16938, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 16842, 16998, 0, 0, 0, 0, 4514, 0, 0,
0, 0, 0, 0, 0, 0, 0, 5032, 0, 0, 12734, 0,
9518, 0, 5269, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 25247, 17084, 0, 0, 0, 0, 13150, 0, 0, 0, 0,
8740, 30256, 25643, 0, 0, 0, 0, 0, 4632, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4489, 4654,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 4549, 0, 0, 0, 0,
9860, 0, 9547, 27805, 0, 0, 8712, 0, 0, 0, 10043, 0,
0, 0, 4545, 22099, 4766, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9627,
20046, 0, 8594, 4438, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 8569, 166555, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 12222, 1269580, 1454203, 87964,
298338, 0, 0, 0, 27437, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 4458, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 11755, 0, 13631, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 15857, 1973298, 1641503, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 4802, 0, 0, 16936, 0,
0, 154289, 38368, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 1705667, 604123, 0,
109606, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 5883039, 1543862, 355473,
0, 0, 0, 0, 0, 0, 0, 0, 0, 4432, 5621, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 120871, 4331234, 0, 0, 0, 669559, 6237197, 1802462,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 14973355, 2534263, 2663545,
2384182, 4450, 0, 0, 0, 0, 0, 0, 0, 7616, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 6595, 0, 0, 0, 0, 0, 0, 0, 127730,
0, 0, 0, 1441841, 10493910, 15749285, 508792, 0, 0, 0, 4447942, 6425352,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 5194, 9548, 10743816, 4480364, 7715791,
9104295, 5383855, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 7782486, 5202531, 11056085, 1736080, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36571, 8400435,
638626, 184700, 526524, 4549932, 1758429, 4698558, 12676409, 10260, 0, 0, 120334, 0,
9680, 0, 0, 0, 0, 0, 0, 6802, 0, 8796, 0, 0,
0, 0, 44689, 0, 0, 0, 0, 5587, 0, 1733759, 4431549, 2949375,
8813535, 30406266, 12852868, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 4708, 1944155, 3462012, 26799034, 19714986, 0, 99567, 721310, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 406461, 715526,
426294, 294180, 532714, 608091, 833745, 2006831, 11016364, 0, 0, 35747, 0, 0,
104340, 24455, 0, 0, 53997, 17342, 17392, 0, 31321, 11820, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 696469, 7432531, 4243270,
5218271, 17734223, 43824790, 29192497, 0, 0, 4810, 0, 0, 0, 0, 0,
0, 0, 520679, 3939521, 1791768, 11118597, 10510153, 829323, 1725656, 24949666, 0, 2700879,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 194369, 1090288,
414155, 288740, 898983, 687521, 1070031, 1901368, 1084231, 0, 404768, 1975204, 0, 0,
83086, 47927, 36634, 4434, 29866, 95294, 637207, 59892, 29498, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 32608, 5339661, 19382670, 8656919,
2935096, 5714605, 18314711, 22428874, 1937111, 0, 0, 0, 0, 0, 43043, 0,
0, 0, 1668107, 1725524, 4047063, 12031012, 22700578, 11724124, 575392, 11796643, 535176, 20732,
68504, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6483,
283550, 719719, 533040, 519974, 909392, 1791372, 0, 0, 14686, 420805, 4458, 2202223,
38221, 342839, 25399, 10118, 0, 0, 36068, 12735, 13587, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 9311147, 14947158, 3044320, 2780295,
2844573, 2757002, 6040786, 10719210, 11737524, 0, 0, 0, 0, 0, 0, 0,
0, 0, 2667999, 3900376, 2187433, 10838646, 19435021, 5064044, 2045655, 5292382, 902966, 9876,
0, 0, 0, 0, 0, 0, 0, 9364, 0, 25836, 0, 6646,
1351188, 133978, 1322469, 230376, 410928, 86611, 88999, 8967, 129968, 73946, 0, 12461,
0, 10236, 0, 0, 9144, 0, 0, 66727, 46948, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 480015, 15024136, 1616835, 1310592, 1729030,
1486093, 2270713, 6374723, 8801003, 28588022, 1965946, 0, 0, 0, 16538, 0, 0,
0, 0, 5068097, 4234973, 3283944, 3149485, 14106064, 17902993, 0, 5581, 20113, 10063,
0, 0, 20589, 0, 0, 0, 0, 0, 1164346, 35765023, 34310925, 9125581,
5965629, 1131618, 315654, 389231, 2292132, 2801369, 712702, 922177, 322754, 0, 0, 44332,
0, 7769, 0, 4518, 4522, 8979, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 63287, 27845, 4400875, 16335509, 1856713, 1324033, 1165631,
1343958, 2009991, 5239418, 6236192, 4097864, 16493, 0, 0, 0, 0, 0, 0,
0, 284759, 3986064, 4661793, 1892241, 20946047, 48379782, 28196248, 1689566, 0, 0, 144766,
0, 0, 25682, 0, 0, 0, 0, 280036, 18348504, 4740573, 8364504, 11355891,
5777815, 1496732, 1845199, 2936032, 1830361, 210511, 625953, 4486, 0, 25423, 17207, 26528,
0, 0, 0, 5615, 39858, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 4644, 100450, 14507290, 7752902, 1076291, 1458059,
1160035, 1986109, 11104, 0, 0, 0, 4446, 0, 0, 0, 468129, 244188,
0, 4055482, 4826506, 2697239, 2304226, 5249220, 31543489, 5972620, 9301059, 6976142, 0, 0,
0, 0, 135148, 0, 0, 0, 0, 12673749, 30086450, 2088099, 9605547, 6294088,
3222151, 1379292, 23193, 0, 0, 0, 4523, 0, 0, 0, 71453, 0,
0, 0, 0, 4663, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 254790, 5455152, 10678556, 18031554, 4981527, 2786751,
1312284, 528616, 0, 0, 0, 0, 0, 0, 0, 10686594, 11757111, 13357275,
20241413, 20336829, 11400535, 4661483, 2556243, 3058439, 3800400, 10295713, 3855430, 3484437, 137503, 0,
0, 0, 104846, 10426160, 10342144, 0, 48696, 7538681, 12269375, 3530524, 43242, 6760977,
10162608, 8377349, 66239, 17231, 8799, 13406, 33320, 47221, 20845, 49108, 35888, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 3941886, 11274430, 2792053, 490739, 3834271, 5309704, 4323747,
344984, 0, 0, 0, 0, 0, 0, 215258, 5750982, 12798670, 13146285, 15552842,
9648604, 15827727, 12505520, 2352879, 3461092, 2127229, 5571599, 7080278, 5107713, 2374829, 455678, 0,
0, 0, 1714037, 39066950, 2018394, 0, 212914, 7808778, 28900301, 32250137, 16744, 388162,
20235211, 878784, 0, 4882, 217683, 33139, 0, 0, 6118, 28283, 4870, 0,
0, 0, 4507, 0, 526643, 48748, 0, 0, 0, 0, 0, 0,
0, 15424, 216185, 13612399, 37096455, 12273750, 4981375, 434170, 2970300, 8654772, 6480076, 2442227,
0, 0, 0, 0, 0, 0, 285546, 633304, 1818908, 2056151, 1384760, 1436713,
1820825, 1572439, 197076, 631366, 660145, 197539, 3478547, 1858853, 4144491, 746974, 1217564, 336468,
0, 0, 12999242, 21933588, 11587771, 602075, 1982354, 21019715, 33214876, 16235314, 645486, 443356,
12180737, 0, 0, 0, 0, 92230, 0, 0, 0, 7552, 0, 0,
0, 0, 0, 20368, 1486727, 0, 0, 0, 0, 0, 0, 0,
0, 459189, 4253539, 23255102, 13502517, 219510, 2640639, 2659947, 3520323, 557019, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 299482, 728886, 135964, 157864,
436720, 1540228, 371320, 2627212, 262070, 189725, 1200650, 2633527, 1733143, 2484814, 2232960, 5164203,
0, 3354137, 19690430, 20793167, 16233917, 15751557, 13577944, 9341442, 22582573, 34607541, 18472572, 4416157,
14855465, 176139, 5095, 0, 9314, 0, 5991, 0, 0, 0, 0, 0,
10482, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
65113, 2339699, 11335093, 9477372, 25060048, 2077713, 270503, 35523010, 605493, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 5297542, 2603496, 3547965, 268967,
404186, 1406967, 557871, 414868, 160315, 596366, 12078509, 1296199, 2852686, 3976853, 6254730, 6000615,
2748178, 2955790, 10756734, 25868541, 44770934, 35269744, 9921398, 5551225, 11379771, 14051534, 11859742, 19094505,
7793314, 2153899, 40104, 0, 39316, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 856377,
36120989, 22292169, 12982191, 14094558, 44254431, 26688102, 33848729, 53680888, 5837896, 0, 0, 149393,
0, 0, 0, 0, 0, 0, 0, 0, 1015724, 0, 29513689, 10006353,
1452006, 3862750, 8506233, 647361, 1331660, 2231184, 24467456, 20661483, 4233277, 10071675, 8521936, 2434014,
3549548, 7195034, 19045143, 11191494, 1255566, 739037, 1661438, 3006940, 7943776, 14015762, 11557701, 14195558,
9401423, 7477266, 66038300, 26609511, 25702, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41210207,
21388865, 11710341, 27311384, 16640114, 26629754, 44133799, 47924562, 80640897, 92489646, 2800150, 0, 5694,
0, 0, 0, 0, 0, 82171, 1294000, 0, 0, 0, 34319915, 43266452,
12905965, 16122419, 16149776, 10476386, 40650655, 20682640, 16147444, 19066504, 15221862, 13436719, 9611275, 5310335,
2951186, 10751432, 5745802, 1847095, 497833, 380301, 514109, 1193817, 5273859, 5334729, 11588121, 14882657,
3053744, 28553570, 8493950, 76339144, 30944464, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 30411827,
16028855, 20543235, 16299771, 11096219, 18183305, 30783521, 54577825, 52982396, 56302812, 84527846, 3958327, 2208886,
4865, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58158433, 67828543,
88555055, 50912619, 59735419, 42995075, 49910438, 26378042, 11331017, 12439488, 21655761, 11982206, 810379, 1277055,
1825039, 5630651, 6630565, 4144019, 1882001, 1821802, 787356, 623285, 693867, 1028501, 2758079, 5360455,
4366301, 7120776, 5097748, 658585, 24367802, 450568, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1132754, 45969748,
21492278, 12193422, 6451101, 10893248, 12324663, 15654382, 8679455, 6401703, 10405276, 19100562, 8763601, 4897919,
1522458, 1379978, 0, 0, 0, 0, 0, 0, 0, 0, 123791, 49253409,
92394001, 186550121, 155242870, 94226174, 48270164, 29508932, 17390287, 18958148, 10300004, 3673063, 888914, 829872,
652952, 384452, 939077, 1041026, 1931324, 1861161, 756597, 1003845, 1795775, 2882048, 722934, 863908,
1689380, 2505681, 3360888, 2064157, 2872406, 96885, 54060, 0, 0, 0, 0, 0,
31382, 8241, 59421, 36457, 0, 0, 0, 0, 0, 193295, 2490361, 4325101,
6338553, 8449890, 3277020, 2694116, 1564924, 762257, 331853, 209171, 588507, 442112, 658328, 629342,
532193, 0, 0, 0, 0, 0, 0, 0, 0, 517407, 27638035, 101164578,
55271027, 134691383, 91737217, 60479967, 45186385, 21221365, 17768272, 21070916, 11793073, 10888679, 7073157, 8341034,
2775965, 1432242, 3986894, 1963312, 10253766, 10308240, 2950955, 1442576, 4155883, 2602555, 1731271, 1849330,
1573470, 1698935, 1073215, 2102751, 1537384, 0, 0, 1704963, 96688, 45856, 30400, 30627,
0, 14733, 34631, 447221, 378720, 420406, 22144, 14826, 254431, 1339824, 1085729, 1643879,
1275117, 807912, 249297, 248964, 269628, 157648, 66586, 10007, 171044, 211689, 225724, 137866,
11107, 0, 5015, 9456, 0, 0, 0, 0, 0, 0, 3996137, 18909327,
39286, 25680760, 45833701, 19253374, 14625442, 17165111, 13772469, 27604676, 12390073, 11606312, 10811921, 11214903,
10317292, 4710789, 4628042, 2259082, 3486785, 2927271, 3807769, 1820093, 1456437, 1117756, 769710, 874815,
814223, 755137, 622373, 565861, 299617, 133244, 304757, 590016, 772443, 27766, 11698, 0,
5780, 91347, 158245, 2110514, 527161, 695689, 2294391, 422761, 701288, 510334, 213143, 209297,
241918, 288205, 77425, 76958, 73975, 48501, 9808, 31889, 108294, 97721, 81288, 4825,
0, 96578, 144551, 64754, 0, 0, 0, 1942206, 1017192, 153099, 429047, 245444,
291085, 15842696, 22947634, 11510791, 27269871, 26885560, 8691206, 3014759, 4457651, 3248404, 2634436, 2564681,
2392319, 3787218, 3734302, 2780579, 660635, 672587, 535468, 366506, 480578, 402648, 647991, 552615,
642060, 1351679, 861766, 499268, 664473, 465288, 519332, 450552, 392425, 481934, 412163, 241796,
370596, 357789, 141560, 330536, 290861, 336663, 528226, 370031, 288756, 285393, 142222, 68868,
64419, 112564, 102189, 36634, 33612, 35991, 22632, 38615, 25066, 22863, 51385, 28480,
0, 247250, 27431, 0, 24878, 0, 0, 740961, 1192090, 289414, 0, 0,
0, 0, 3691245, 6445297, 6704177, 7409324, 3253467, 615014, 484000, 547249, 1221421, 1042636,
868267, 885817, 698085, 1002335, 479945, 639095, 336471, 288619, 371351, 292327, 433645, 369657,
570709, 274450, 546655, 387469, 456613, 580652, 391694, 359320, 684292, 596461, 536134, 533368,
102931, 0, 0, 17675, 74305, 59187, 66719, 11739, 0, 0, 21859, 64066,
43037, 16000, 6055, 4576, 9981, 23701, 34777, 27947, 37259, 13587, 12486, 0,
24048, 62250, 0, 0, 4454, 0, 4631, 51262, 0, 0, 11744, 0,
0, 0, 0, 54733, 670713, 1081341, 136867, 0, 0, 0, 129788, 104678,
4682, 301686, 313217, 157625, 185574, 231117, 247361, 261730, 339367, 227913, 365015, 221710,
197825, 306961, 160041, 239243, 279092, 279271, 173202, 64444, 4818, 5157, 9701, 18743,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5215, 0, 0, 29004, 10367, 12402, 14177, 5638, 0, 23792, 72265, 0,
0, 0, 0, 0, 0, 0, 4465, 54220, 10358, 0, 0, 0,
0, 0, 56243, 88259, 9336, 4479, 0, 0, 0, 0, 0, 9182,
4462, 11321, 0, 27120, 13488, 42740, 139646, 272551, 351295, 113714, 89920, 0,
0, 0, 0, 34350, 57966, 43595, 14140, 8786, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 5265, 0, 0, 9930, 15593, 32577,
6323, 6016, 22396, 4758, 14537, 42628, 70639, 57697, 4976, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 6000, 0, 4635,
0, 0, 0, 0, 0, 0, 77858, 108016, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
};
}

View file

@ -1,62 +1,97 @@
import java.io.*;
import java.net.*;
public class ReadSizes
{
private static int[] tileSizes = new int[72*36];
public class ReadSizes {
private static int[] tileSizes = new int[72 * 36];
protected static String baseNameForTile( int tileIndex )
{
int lon = (tileIndex % 72 ) * 5 - 180;
int lat = (tileIndex / 72 ) * 5 - 90;
String slon = lon < 0 ? "W" + (-lon) : "E" + lon;
String slat = lat < 0 ? "S" + (-lat) : "N" + lat;
return slon + "_" + slat;
}
protected static String baseNameForTile(int tileIndex) {
int lon = (tileIndex % 72) * 5 - 180;
int lat = (tileIndex / 72) * 5 - 90;
String slon = lon < 0 ? "W" + (-lon) : "E" + lon;
String slat = lat < 0 ? "S" + (-lat) : "N" + lat;
return slon + "_" + slat;
}
private static int tileForBaseName( String basename )
{
String uname = basename.toUpperCase();
int idx = uname.indexOf( "_" );
if ( idx < 0 ) return -1;
String slon = uname.substring( 0, idx );
String slat = uname.substring( idx+1 );
int ilon = slon.charAt(0) == 'W' ? -Integer.valueOf( slon.substring(1) ) :
( slon.charAt(0) == 'E' ? Integer.valueOf( slon.substring(1) ) : -1 );
int ilat = slat.charAt(0) == 'S' ? -Integer.valueOf( slat.substring(1) ) :
( slat.charAt(0) == 'N' ? Integer.valueOf( slat.substring(1) ) : -1 );
if ( ilon < -180 || ilon >= 180 || ilon % 5 != 0 ) return -1;
if ( ilat < - 90 || ilat >= 90 || ilat % 5 != 0 ) return -1;
return (ilon+180) / 5 + 72*((ilat+90)/5);
}
private static int tileForBaseName(String basename) {
String uname = basename.toUpperCase();
int idx = uname.indexOf("_");
if (idx < 0) return -1;
String slon = uname.substring(0, idx);
String slat = uname.substring(idx + 1);
int ilon = slon.charAt(0) == 'W' ? -Integer.valueOf(slon.substring(1)) :
(slon.charAt(0) == 'E' ? Integer.valueOf(slon.substring(1)) : -1);
int ilat = slat.charAt(0) == 'S' ? -Integer.valueOf(slat.substring(1)) :
(slat.charAt(0) == 'N' ? Integer.valueOf(slat.substring(1)) : -1);
if (ilon < -180 || ilon >= 180 || ilon % 5 != 0) return -1;
if (ilat < -90 || ilat >= 90 || ilat % 5 != 0) return -1;
return (ilon + 180) / 5 + 72 * ((ilat + 90) / 5);
}
private static void scanExistingFiles( File dir )
{
String[] fileNames = dir.list();
if ( fileNames == null ) return;
String suffix = ".rd5";
for( String fileName : fileNames )
{
if ( fileName.endsWith( suffix ) )
{
String basename = fileName.substring( 0, fileName.length() - suffix.length() );
int tidx = tileForBaseName( basename );
tileSizes[tidx] = (int)new File( dir, fileName ).length();
}
}
}
public static void main(String[] args)
{
scanExistingFiles( new File( args[0] ) );
StringBuilder sb = new StringBuilder();
for( int tidx=0; tidx < tileSizes.length; tidx++ )
{
if ( ( tidx % 12 ) == 0 ) sb.append( "\n " );
sb.append( tileSizes[tidx] ).append(',');
private static void scanExistingFiles(File dir) {
String[] fileNames = dir.list();
if (fileNames == null) return;
String suffix = ".rd5";
for (String fileName : fileNames) {
if (fileName.endsWith(suffix)) {
String basename = fileName.substring(0, fileName.length() - suffix.length());
int tidx = tileForBaseName(basename);
tileSizes[tidx] = (int) new File(dir, fileName).length();
}
System.out.println( sb );
}
}
// Extract segment information from directory listing on https://brouter.de/brouter/segments4/
private static void scanTilesIndex(String tilesUrl) {
try {
URL url = new URL(tilesUrl);
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setRequestMethod("GET");
BufferedReader in = new BufferedReader(
new InputStreamReader(con.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null) {
parseAndUpdateTileSize(inputLine);
}
in.close();
} catch (MalformedURLException e) {
System.out.println("Invalid URL");
} catch (ProtocolException e) {
System.out.println("Unable to download segment index");
} catch (IOException e) {
System.out.println("Unable to download segment index");
}
}
// Extract filename and size from each line in directory listing
// Example (stripped multiple spaces): "<a href="E0_N10.rd5">E0_N10.rd5</a> 17-Oct-2021 01:03 9648604"
private static void parseAndUpdateTileSize(String indexLine) {
String suffix = ".rd5";
if (!indexLine.contains(suffix)) {
return;
}
String fileName = indexLine.substring(indexLine.indexOf('"') + 1, indexLine.lastIndexOf('"'));
int fileSize = Integer.parseInt(indexLine.substring(indexLine.lastIndexOf(" ") + 1));
String basename = fileName.substring(0, fileName.length() - suffix.length());
int tidx = tileForBaseName(basename);
tileSizes[tidx] = fileSize;
}
public static void main(String[] args) {
if (args[0].startsWith("http")) {
scanTilesIndex(args[0]);
} else {
scanExistingFiles(new File(args[0]));
}
StringBuilder sb = new StringBuilder();
for (int tidx = 0; tidx < tileSizes.length; tidx++) {
if ((tidx % 12) == 0) sb.append("\n ");
sb.append(tileSizes[tidx]).append(',');
}
System.out.println(sb);
}
}