mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
perimeter test
This commit is contained in:
parent
a7427a9cdf
commit
928641aae4
@ -1,105 +0,0 @@
|
|||||||
Dhekelia Sovereign Base Area 127533079.61976177
|
|
||||||
Kyrgyzstan 198994443077.2897
|
|
||||||
Aruba 169577139.16920504
|
|
||||||
Afghanistan 642167900289.4739
|
|
||||||
Albania 28333199169.93513
|
|
||||||
Andorra 452435114.7617939
|
|
||||||
Ashmore and Cartier Islands 2696604.9276267616
|
|
||||||
Austria 83991121342.6868
|
|
||||||
Burundi 27040491570.2986
|
|
||||||
Belgium 30672391961.48937
|
|
||||||
Benin 116112410615.07138
|
|
||||||
Burkina Faso 272767288599.06683
|
|
||||||
Bulgaria 112764344245.5939
|
|
||||||
Bahrain 585431263.0854981
|
|
||||||
Bosnia and Herzegovina 51828357836.835045
|
|
||||||
Bajo Nuevo Bank (Petrel Is.) 29452.023965717835
|
|
||||||
Saint Barthelemy 24595825.379134282
|
|
||||||
Belarus 207495810096.24286
|
|
||||||
Bolivia 1086795900906.9404
|
|
||||||
Barbados 444196434.0171095
|
|
||||||
Bhutan 40362932122.222435
|
|
||||||
Botswana 579022741104.1897
|
|
||||||
Central African Republic 617982165549.6404
|
|
||||||
Switzerland 41437057095.20376
|
|
||||||
Clipperton Island 5042420.197242386
|
|
||||||
Cameroon 464311319438.17255
|
|
||||||
Republic of Congo 344887275569.75
|
|
||||||
Coral Sea Islands 20628.814559882598
|
|
||||||
Curaçao 463207585.46491855
|
|
||||||
Czech Republic 78760344660.91792
|
|
||||||
Djibouti 21846149319.499916
|
|
||||||
Dominica 730475415.656727
|
|
||||||
Algeria 2308849474061.9604
|
|
||||||
Ethiopia 1127370045818.119
|
|
||||||
Georgia 69572475312.24843
|
|
||||||
Ghana 238667399375.48102
|
|
||||||
Gibraltar 3831411.4171073083
|
|
||||||
Guinea 244302369135.0428
|
|
||||||
Gambia 10500266198.294697
|
|
||||||
Guatemala 108814357557.89536
|
|
||||||
Guam 564430992.5413051
|
|
||||||
Heard Island and McDonald Islands 395072268.1670339
|
|
||||||
Hungary 93204530848.81223
|
|
||||||
Isle of Man 574622349.496232
|
|
||||||
Iraq 437362923804.6782
|
|
||||||
Israel 21904844963.57914
|
|
||||||
Jamaica 11032909044.896214
|
|
||||||
Jersey 119197004.74288748
|
|
||||||
Jordan 88852268122.99756
|
|
||||||
Baykonur Cosmodrome 6501480908.525035
|
|
||||||
Siachen Glacier 2088368280.5951576
|
|
||||||
Kosovo 10914986124.47776
|
|
||||||
Laos 228111317612.30957
|
|
||||||
Lebanon 9999649538.151918
|
|
||||||
Liberia 95296808053.31937
|
|
||||||
Libya 1623756106692.004
|
|
||||||
Saint Lucia 604940965.7686977
|
|
||||||
Liechtenstein 136883538.3183111
|
|
||||||
Lesotho 30106906647.33149
|
|
||||||
Luxembourg 2607643781.0226917
|
|
||||||
Latvia 64575248440.09302
|
|
||||||
Saint Martin 68198732.01942295
|
|
||||||
Morocco 591718146420.0958
|
|
||||||
Monaco 18750590.193543613
|
|
||||||
Moldova 33208636022.82373
|
|
||||||
Macedonia 25384586736.42653
|
|
||||||
Mali 1252723270900.2302
|
|
||||||
Montenegro 13729482523.613796
|
|
||||||
Mongolia 1564646094133.3677
|
|
||||||
Montserrat 99396603.21002583
|
|
||||||
Namibia 822688081865.0547
|
|
||||||
Niger 1181298791001.2363
|
|
||||||
Norfolk Island 41003910.8372144
|
|
||||||
Niue 220827518.96565723
|
|
||||||
Nepal 147103938320.9306
|
|
||||||
Nauru 28765050.65120624
|
|
||||||
Poland 313439831446.58765
|
|
||||||
Paraguay 399899482418.94604
|
|
||||||
Qatar 11150102955.086788
|
|
||||||
Romania 236371949926.43573
|
|
||||||
Rwanda 25305141874.683277
|
|
||||||
Western Sahara 90483117057.23624
|
|
||||||
Scarborough Reef 93421.29269397438
|
|
||||||
South Sudan 626858281405.9783
|
|
||||||
Senegal 196219387423.09302
|
|
||||||
Serranilla Bank 100843.54356614068
|
|
||||||
Singapore 510505392.29170656
|
|
||||||
San Marino 60357700.76923006
|
|
||||||
Somaliland 167406759212.9871
|
|
||||||
Somalia 471815737592.64276
|
|
||||||
Republic of Serbia 77573594972.73866
|
|
||||||
Suriname 145124645519.15808
|
|
||||||
Slovakia 48456085451.12405
|
|
||||||
Slovenia 20327209680.63761
|
|
||||||
Swaziland 17113505052.204178
|
|
||||||
Sint Maarten 23405778.740159098
|
|
||||||
Syria 185944843149.37875
|
|
||||||
Chad 1266282203998.255
|
|
||||||
Togo 56863540226.407555
|
|
||||||
Uganda 241852803539.38947
|
|
||||||
Uruguay 177347712583.76038
|
|
||||||
Vatican 10535.27369925663
|
|
||||||
Akrotiri Sovereign Base Area 98415737.60517946
|
|
||||||
Zambia 751913038381.5402
|
|
||||||
Zimbabwe 389330493219.1703
|
|
@ -0,0 +1,214 @@
|
|||||||
|
Dhekelia Sovereign Base Area 118700.71332743947
|
||||||
|
Kyrgyzstan 3742755.7534551187
|
||||||
|
-------------------------------------
|
||||||
|
Dhekelia Sovereign Base Area 127533079.61976177
|
||||||
|
Kyrgyzstan 198994443077.2897
|
||||||
|
-------------------------------------
|
||||||
|
Aruba 71530.8169588391
|
||||||
|
Afghanistan 5224885.3545075
|
||||||
|
Albania 1090187.4767125107
|
||||||
|
Andorra 96608.22292958506
|
||||||
|
Ashmore and Cartier Islands 7075.513574803439
|
||||||
|
Austria 2079483.7812992004
|
||||||
|
Burundi 895672.5688732249
|
||||||
|
Belgium 1145320.4034536863
|
||||||
|
Benin 1996227.432786925
|
||||||
|
Burkina Faso 3272627.9559958726
|
||||||
|
Bulgaria 1966608.6256809386
|
||||||
|
Bahrain 135865.35144442634
|
||||||
|
Bosnia and Herzegovina 1314472.5089314817
|
||||||
|
Bajo Nuevo Bank (Petrel Is.) 798.5024071067089
|
||||||
|
Saint Barthelemy 21002.79956662945
|
||||||
|
Belarus 2738937.888108089
|
||||||
|
Bolivia 5901370.411116252
|
||||||
|
Barbados 89709.25425638427
|
||||||
|
Bhutan 1020220.3776075348
|
||||||
|
Botswana 3751204.2234685505
|
||||||
|
Central African Republic 4935021.375483403
|
||||||
|
Switzerland 1479396.111622348
|
||||||
|
Clipperton Island 8943.110565971054
|
||||||
|
Cameroon 5085955.35665887
|
||||||
|
Republic of Congo 4387669.050264364
|
||||||
|
Coral Sea Islands 741.2981931483673
|
||||||
|
Curaçao 132255.62069611502
|
||||||
|
Czech Republic 1728745.5762353
|
||||||
|
Djibouti 822712.605195561
|
||||||
|
Dominica 127657.27781178526
|
||||||
|
Algeria 7355738.071028232
|
||||||
|
Ethiopia 5222397.978393792
|
||||||
|
Georgia 1711022.4699848779
|
||||||
|
Ghana 2579014.0679307193
|
||||||
|
Gibraltar 8949.393307056409
|
||||||
|
Guinea 4038096.386119494
|
||||||
|
Gambia 1227696.9901731263
|
||||||
|
Guatemala 1928473.2813083928
|
||||||
|
Guam 129159.86773557645
|
||||||
|
Heard Island and McDonald Islands 110694.18305654383
|
||||||
|
Hungary 1670527.817374739
|
||||||
|
Isle of Man 119741.44999597034
|
||||||
|
Iraq 3484768.045518602
|
||||||
|
Israel 1231355.8285483832
|
||||||
|
Jamaica 640475.0393226973
|
||||||
|
Jersey 53782.09990861479
|
||||||
|
Jordan 1682881.4223134723
|
||||||
|
Baykonur Cosmodrome 285958.2051707919
|
||||||
|
Siachen Glacier 246828.859148545
|
||||||
|
Kosovo 559361.1922066971
|
||||||
|
Laos 4388593.852659078
|
||||||
|
Lebanon 616321.1250347663
|
||||||
|
Liberia 1882745.8183724133
|
||||||
|
Libya 6071430.840188828
|
||||||
|
Saint Lucia 106590.9440833618
|
||||||
|
Liechtenstein 59223.767796493725
|
||||||
|
Lesotho 784230.7102469816
|
||||||
|
Luxembourg 263259.6340049926
|
||||||
|
Latvia 1564007.8893204194
|
||||||
|
Saint Martin 41679.927927619785
|
||||||
|
Morocco 5613899.215291766
|
||||||
|
Monaco 16615.29788851603
|
||||||
|
Moldova 1324452.8981204226
|
||||||
|
Macedonia 719730.4433354989
|
||||||
|
Mali 7242105.215854456
|
||||||
|
Montenegro 749552.5839768916
|
||||||
|
Mongolia 7290806.371346894
|
||||||
|
Montserrat 42062.88573332693
|
||||||
|
Namibia 5366121.742836174
|
||||||
|
Niger 5586104.20515515
|
||||||
|
Norfolk Island 31266.364157565444
|
||||||
|
Niue 62852.941582168394
|
||||||
|
Nepal 2595695.4382788637
|
||||||
|
Nauru 19827.484632710733
|
||||||
|
Poland 3122958.4429358654
|
||||||
|
Paraguay 3484527.6286960323
|
||||||
|
Qatar 595374.2491908007
|
||||||
|
Romania 2813197.348484092
|
||||||
|
Rwanda 822216.3985928788
|
||||||
|
Western Sahara 2986353.4822476567
|
||||||
|
Scarborough Reef 1261.3332800666965
|
||||||
|
South Sudan 4822971.306241227
|
||||||
|
Senegal 3743831.189306996
|
||||||
|
Serranilla Bank 1518.3172992831614
|
||||||
|
Singapore 96986.71084909553
|
||||||
|
San Marino 29309.53472866584
|
||||||
|
Somaliland 1970173.4652249564
|
||||||
|
Somalia 4371311.2360761175
|
||||||
|
Republic of Serbia 1892739.48526361
|
||||||
|
Suriname 2050665.4319141763
|
||||||
|
Slovakia 1266500.5762728006
|
||||||
|
Slovenia 938838.9392746043
|
||||||
|
Swaziland 536594.8070282809
|
||||||
|
Sint Maarten 24187.85539367886
|
||||||
|
Syria 2273589.0858773263
|
||||||
|
Chad 5787996.089203358
|
||||||
|
Togo 1652100.5245926627
|
||||||
|
Uganda 2434653.1095533115
|
||||||
|
Uruguay 1963705.040506292
|
||||||
|
Vatican 427.24440132886207
|
||||||
|
Akrotiri Sovereign Base Area 85251.32121367387
|
||||||
|
Zambia 5601771.605527663
|
||||||
|
Zimbabwe 2897547.4523945283
|
||||||
|
-------------------------------------
|
||||||
|
Aruba 169577139.16920504
|
||||||
|
Afghanistan 642167900289.4739
|
||||||
|
Albania 28333199169.93513
|
||||||
|
Andorra 452435114.7617939
|
||||||
|
Ashmore and Cartier Islands 2696604.9276267616
|
||||||
|
Austria 83991121342.6868
|
||||||
|
Burundi 27040491570.2986
|
||||||
|
Belgium 30672391961.48937
|
||||||
|
Benin 116112410615.07138
|
||||||
|
Burkina Faso 272767288599.06683
|
||||||
|
Bulgaria 112764344245.5939
|
||||||
|
Bahrain 585431263.0854981
|
||||||
|
Bosnia and Herzegovina 51828357836.835045
|
||||||
|
Bajo Nuevo Bank (Petrel Is.) 29452.023965717835
|
||||||
|
Saint Barthelemy 24595825.379134282
|
||||||
|
Belarus 207495810096.24286
|
||||||
|
Bolivia 1086795900906.9404
|
||||||
|
Barbados 444196434.0171095
|
||||||
|
Bhutan 40362932122.222435
|
||||||
|
Botswana 579022741104.1897
|
||||||
|
Central African Republic 617982165549.6404
|
||||||
|
Switzerland 41437057095.20376
|
||||||
|
Clipperton Island 5042420.197242386
|
||||||
|
Cameroon 464311319438.17255
|
||||||
|
Republic of Congo 344887275569.75
|
||||||
|
Coral Sea Islands 20628.814559882598
|
||||||
|
Curaçao 463207585.46491855
|
||||||
|
Czech Republic 78760344660.91792
|
||||||
|
Djibouti 21846149319.499916
|
||||||
|
Dominica 730475415.656727
|
||||||
|
Algeria 2308849474061.9604
|
||||||
|
Ethiopia 1127370045818.119
|
||||||
|
Georgia 69572475312.24843
|
||||||
|
Ghana 238667399375.48102
|
||||||
|
Gibraltar 3831411.4171073083
|
||||||
|
Guinea 244302369135.0428
|
||||||
|
Gambia 10500266198.294697
|
||||||
|
Guatemala 108814357557.89536
|
||||||
|
Guam 564430992.5413051
|
||||||
|
Heard Island and McDonald Islands 395072268.1670339
|
||||||
|
Hungary 93204530848.81223
|
||||||
|
Isle of Man 574622349.496232
|
||||||
|
Iraq 437362923804.6782
|
||||||
|
Israel 21904844963.57914
|
||||||
|
Jamaica 11032909044.896214
|
||||||
|
Jersey 119197004.74288748
|
||||||
|
Jordan 88852268122.99756
|
||||||
|
Baykonur Cosmodrome 6501480908.525035
|
||||||
|
Siachen Glacier 2088368280.5951576
|
||||||
|
Kosovo 10914986124.47776
|
||||||
|
Laos 228111317612.30957
|
||||||
|
Lebanon 9999649538.151918
|
||||||
|
Liberia 95296808053.31937
|
||||||
|
Libya 1623756106692.004
|
||||||
|
Saint Lucia 604940965.7686977
|
||||||
|
Liechtenstein 136883538.3183111
|
||||||
|
Lesotho 30106906647.33149
|
||||||
|
Luxembourg 2607643781.0226917
|
||||||
|
Latvia 64575248440.09302
|
||||||
|
Saint Martin 68198732.01942295
|
||||||
|
Morocco 591718146420.0958
|
||||||
|
Monaco 18750590.193543613
|
||||||
|
Moldova 33208636022.82373
|
||||||
|
Macedonia 25384586736.42653
|
||||||
|
Mali 1252723270900.2302
|
||||||
|
Montenegro 13729482523.613796
|
||||||
|
Mongolia 1564646094133.3677
|
||||||
|
Montserrat 99396603.21002583
|
||||||
|
Namibia 822688081865.0547
|
||||||
|
Niger 1181298791001.2363
|
||||||
|
Norfolk Island 41003910.8372144
|
||||||
|
Niue 220827518.96565723
|
||||||
|
Nepal 147103938320.9306
|
||||||
|
Nauru 28765050.65120624
|
||||||
|
Poland 313439831446.58765
|
||||||
|
Paraguay 399899482418.94604
|
||||||
|
Qatar 11150102955.086788
|
||||||
|
Romania 236371949926.43573
|
||||||
|
Rwanda 25305141874.683277
|
||||||
|
Western Sahara 90483117057.23624
|
||||||
|
Scarborough Reef 93421.29269397438
|
||||||
|
South Sudan 626858281405.9783
|
||||||
|
Senegal 196219387423.09302
|
||||||
|
Serranilla Bank 100843.54356614068
|
||||||
|
Singapore 510505392.29170656
|
||||||
|
San Marino 60357700.76923006
|
||||||
|
Somaliland 167406759212.9871
|
||||||
|
Somalia 471815737592.64276
|
||||||
|
Republic of Serbia 77573594972.73866
|
||||||
|
Suriname 145124645519.15808
|
||||||
|
Slovakia 48456085451.12405
|
||||||
|
Slovenia 20327209680.63761
|
||||||
|
Swaziland 17113505052.204178
|
||||||
|
Sint Maarten 23405778.740159098
|
||||||
|
Syria 185944843149.37875
|
||||||
|
Chad 1266282203998.255
|
||||||
|
Togo 56863540226.407555
|
||||||
|
Uganda 241852803539.38947
|
||||||
|
Uruguay 177347712583.76038
|
||||||
|
Vatican 10535.27369925663
|
||||||
|
Akrotiri Sovereign Base Area 98415737.60517946
|
||||||
|
Zambia 751913038381.5402
|
||||||
|
Zimbabwe 389330493219.1703
|
||||||
|
-------------------------------------
|
@ -7,10 +7,19 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|||||||
${CLICKHOUSE_CLIENT} -q "drop table if exists country_polygons;"
|
${CLICKHOUSE_CLIENT} -q "drop table if exists country_polygons;"
|
||||||
${CLICKHOUSE_CLIENT} -q "create table country_polygons(name String, p Array(Array(Tuple(Float64, Float64)))) engine=MergeTree() order by tuple();"
|
${CLICKHOUSE_CLIENT} -q "create table country_polygons(name String, p Array(Array(Tuple(Float64, Float64)))) engine=MergeTree() order by tuple();"
|
||||||
cat ${CURDIR}/country_polygons.tsv | ${CLICKHOUSE_CLIENT} -q "insert into country_polygons format TSV"
|
cat ${CURDIR}/country_polygons.tsv | ${CLICKHOUSE_CLIENT} -q "insert into country_polygons format TSV"
|
||||||
${CLICKHOUSE_CLIENT} -q "SELECT name, polygonAreaGeographic(p) from country_polygons"
|
|
||||||
|
|
||||||
|
${CLICKHOUSE_CLIENT} -q "SELECT name, polygonPerimeterGeographic(p) from country_polygons"
|
||||||
|
${CLICKHOUSE_CLIENT} -q "SELECT '-------------------------------------'"
|
||||||
|
${CLICKHOUSE_CLIENT} -q "SELECT name, polygonAreaGeographic(p) from country_polygons"
|
||||||
|
${CLICKHOUSE_CLIENT} -q "SELECT '-------------------------------------'"
|
||||||
${CLICKHOUSE_CLIENT} -q "drop table if exists country_rings;"
|
${CLICKHOUSE_CLIENT} -q "drop table if exists country_rings;"
|
||||||
|
|
||||||
|
|
||||||
${CLICKHOUSE_CLIENT} -q "create table country_rings(name String, p Array(Tuple(Float64, Float64))) engine=MergeTree() order by tuple();"
|
${CLICKHOUSE_CLIENT} -q "create table country_rings(name String, p Array(Tuple(Float64, Float64))) engine=MergeTree() order by tuple();"
|
||||||
cat ${CURDIR}/country_rings.tsv | ${CLICKHOUSE_CLIENT} -q "insert into country_rings format TSV"
|
cat ${CURDIR}/country_rings.tsv | ${CLICKHOUSE_CLIENT} -q "insert into country_rings format TSV"
|
||||||
|
|
||||||
|
${CLICKHOUSE_CLIENT} -q "SELECT name, polygonPerimeterGeographic(p) from country_rings"
|
||||||
|
${CLICKHOUSE_CLIENT} -q "SELECT '-------------------------------------'"
|
||||||
${CLICKHOUSE_CLIENT} -q "SELECT name, polygonAreaGeographic(p) from country_rings"
|
${CLICKHOUSE_CLIENT} -q "SELECT name, polygonAreaGeographic(p) from country_rings"
|
||||||
|
${CLICKHOUSE_CLIENT} -q "SELECT '-------------------------------------'"
|
||||||
${CLICKHOUSE_CLIENT} -q "drop table if exists country_rings;"
|
${CLICKHOUSE_CLIENT} -q "drop table if exists country_rings;"
|
Loading…
Reference in New Issue
Block a user