move to spherical point

This commit is contained in:
Nikita Mikhailov 2021-02-26 01:33:37 +03:00 committed by Nikita Mikhaylov
parent 94b6cadb77
commit ac03ba31bf
4 changed files with 215 additions and 214 deletions

View File

@ -51,7 +51,8 @@ using CartesianPolygon = Polygon<CartesianPoint>;
using CartesianMultiPolygon = MultiPolygon<CartesianPoint>;
using CartesianGeometry = Geometry<CartesianPoint>;
using GeographicPoint = boost::geometry::model::point<Float64, 2, boost::geometry::cs::geographic<boost::geometry::degree>>;
// using GeographicPoint = boost::geometry::model::point<Float64, 2, boost::geometry::cs::geographic<boost::geometry::degree>>;
using GeographicPoint = boost::geometry::model::point<Float64, 2, boost::geometry::cs::spherical_equatorial<boost::geometry::degree>>;
using GeographicRing = Ring<GeographicPoint>;
using GeographicPolygon = Polygon<GeographicPoint>;
using GeographicMultiPolygon = MultiPolygon<GeographicPoint>;

View File

@ -1,4 +1,4 @@
0
1.2727922061357855
2088389.0786590837
2088389.0786590837
0.3274195462417724
0.3274195462417724

View File

@ -1,2 +1,2 @@
25
3848183.73456666
9.387703638370358e-8

View File

@ -1,214 +1,214 @@
Dhekelia Sovereign Base Area 118700.71332743947
Kyrgyzstan 3742755.7534551187
Dhekelia Sovereign Base Area 0.0186259930051051
Kyrgyzstan 0.5868323961091907
-------------------------------------
Dhekelia Sovereign Base Area 127533079.61976177
Kyrgyzstan 198994443077.2897
Dhekelia Sovereign Base Area 0.000003139488070896512
Kyrgyzstan 0.004895645023822883
-------------------------------------
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 0.011249330810410983
Afghanistan 0.8199216326776404
Albania 0.17108622597702605
Andorra 0.015145740647213184
Ashmore and Cartier Islands 0.001111472909012953
Austria 0.3258464621357028
Burundi 0.1409500621452211
Belgium 0.1794463601873955
Benin 0.31426073515874664
Burkina Faso 0.5144381682226761
Bulgaria 0.3083164214454252
Bahrain 0.02137170357214413
Bosnia and Herzegovina 0.20611959113245232
Bajo Nuevo Bank (Petrel Is.) 0.0001254597070361587
Saint Barthelemy 0.0032990108720812672
Belarus 0.42899119772830474
Bolivia 0.9279328001326348
Barbados 0.014116142490651021
Bhutan 0.1601735058766338
Botswana 0.5896697538755427
Central African Republic 0.7760222837198817
Switzerland 0.2318851512510408
Clipperton Island 0.0014072924221565273
Cameroon 0.8001045813665599
Republic of Congo 0.6904316055863188
Coral Sea Islands 0.00011634674137689659
Curaçao 0.02078862020307983
Czech Republic 0.2708588915805718
Djibouti 0.12937731543684822
Dominica 0.020094439807419574
Algeria 1.1549683948032776
Ethiopia 0.8210654364815099
Georgia 0.26823008017781313
Ghana 0.4056578143818251
Gibraltar 0.0014059440610631154
Guinea 0.6350853755877334
Gambia 0.19279774895359095
Guatemala 0.3030953561509038
Guam 0.020321390076536976
Heard Island and McDonald Islands 0.017334896920453105
Hungary 0.2617732480910806
Isle of Man 0.01875803631141408
Iraq 0.5469861219502402
Israel 0.19353851895699914
Jamaica 0.10055860979159512
Jersey 0.008427337812134537
Jordan 0.2642243503964102
Baykonur Cosmodrome 0.04482995477542441
Siachen Glacier 0.03872116827341272
Kosovo 0.08773172991408161
Laos 0.6899867972760174
Lebanon 0.09676977254650951
Liberia 0.2961649538030388
Libya 0.9538430912224716
Saint Lucia 0.016786201647759867
Liechtenstein 0.009288582116863231
Lesotho 0.12315874900320756
Luxembourg 0.04125996057810259
Latvia 0.24488610945731157
Saint Martin 0.006547834154217771
Morocco 0.8817924249630141
Monaco 0.0026049777439637527
Moldova 0.20765701819586885
Macedonia 0.1128831074330059
Mali 1.1385970015559317
Montenegro 0.11756794062084858
Mongolia 1.142306166871007
Montserrat 0.006620100691409788
Namibia 0.843464957679987
Niger 0.8780744302377772
Norfolk Island 0.004912027225339993
Niue 0.009881892958363517
Nepal 0.4076113675280835
Nauru 0.0031205159769295255
Poland 0.48922069488271314
Paraguay 0.5475256537493991
Qatar 0.09362771431858698
Romania 0.44095021664473105
Rwanda 0.1293663890297039
Western Sahara 0.4691920993279596
Scarborough Reef 0.00019842225207367386
South Sudan 0.7584190842556537
Senegal 0.5883247226863264
Serranilla Bank 0.0002389083935906293
Singapore 0.015233384733369614
San Marino 0.004596873449598911
Somaliland 0.3096791489207226
Somalia 0.6879915318072617
Republic of Serbia 0.29677234233404165
Suriname 0.32255243342976203
Slovakia 0.19843599488831584
Slovenia 0.14713148471782736
Swaziland 0.08434161089555517
Sint Maarten 0.0037955305365309296
Syria 0.35675522352394456
Chad 0.9102578296637189
Togo 0.2600585482954555
Uganda 0.38301730108810556
Uruguay 0.3083564407046887
Vatican 0.00006702452496391445
Akrotiri Sovereign Base Area 0.013376747415600219
Zambia 0.8807923488623808
Zimbabwe 0.4553903789902945
-------------------------------------
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
Aruba 0.0000041986375296795025
Afghanistan 0.015826481758320493
Albania 0.0006971811189621746
Andorra 0.00001112355564980348
Ashmore and Cartier Islands 6.66668338977609e-8
Austria 0.0020634744883290235
Burundi 0.000669169243101558
Belgium 0.0007529367590741593
Benin 0.00287239734953164
Burkina Faso 0.006746218025419332
Bulgaria 0.0027733372191197786
Bahrain 0.00001443842547561405
Bosnia and Herzegovina 0.0012742491201009779
Bajo Nuevo Bank (Petrel Is.) 8.864825701897049e-10
Saint Barthelemy 6.036607210116289e-7
Belarus 0.005090738074359067
Bolivia 0.026865324735758436
Barbados 0.0000109856680212211
Bhutan 0.0009961026696220909
Botswana 0.01430200501713062
Central African Republic 0.015290667187215962
Switzerland 0.0010181463734151514
Clipperton Island 1.2373029819547803e-7
Cameroon 0.011488908713113137
Republic of Congo 0.008534881807187833
Coral Sea Islands 5.121674593493771e-10
Curaçao 0.000011457378136273848
Czech Republic 0.0019339153549488386
Djibouti 0.000540370985929321
Dominica 0.000018056168258583246
Algeria 0.05696762706232162
Ethiopia 0.02789047634482515
Georgia 0.0017113229913929072
Ghana 0.0059048504621945965
Gibraltar 9.095456688875715e-8
Guinea 0.006043151808047173
Gambia 0.0002596816395280707
Guatemala 0.0026901925526205263
Guam 0.000013952443476670549
Heard Island and McDonald Islands 0.000009688375334192321
Hungary 0.0022899094702118978
Isle of Man 0.00001410012284549863
Iraq 0.010780689598789812
Israel 0.0005400181032289429
Jamaica 0.00027268062650994383
Jersey 0.0000029236161155167853
Jordan 0.002191215069390572
Baykonur Cosmodrome 0.00015978303781425133
Siachen Glacier 0.0000513879615262916
Kosovo 0.0002684178325412152
Laos 0.005637555524983489
Lebanon 0.0002464436461544738
Liberia 0.002357973807538481
Libya 0.040072512808839354
Saint Lucia 0.000014963842166249258
Liechtenstein 0.0000033722024322722466
Lesotho 0.0007426290112070925
Luxembourg 0.00006405006804909529
Latvia 0.00158313668683266
Saint Martin 0.00000168759530251474
Morocco 0.014595589778269167
Monaco 4.6325700981005285e-7
Moldova 0.0008158639460823913
Macedonia 0.0006245180554490506
Mali 0.03096381132470007
Montenegro 0.00033762445623993013
Mongolia 0.038446609480001344
Montserrat 0.0000024620326175206004
Namibia 0.020320978539029165
Niger 0.02919849042641136
Norfolk Island 0.0000010150641235563077
Niue 0.000005450796200539049
Nepal 0.003629565673884544
Nauru 7.119067469952887e-7
Poland 0.0076921097527402876
Paraguay 0.009875843128670564
Qatar 0.0002752610716836153
Romania 0.005809479702080411
Rwanda 0.0006262235765421803
Western Sahara 0.0022344529652030694
Scarborough Reef 2.4176335726807567e-9
South Sudan 0.015509656314462458
Senegal 0.00485201810074574
Serranilla Bank 2.6035559945372385e-9
Singapore 0.000012633505579848072
San Marino 0.0000014830814619737624
Somaliland 0.0041412916217828406
Somalia 0.011674654119996183
Republic of Serbia 0.001907268740192651
Suriname 0.0035911641359236534
Slovakia 0.0011901587428922095
Slovenia 0.0004995546076509384
Swaziland 0.00042234053226485263
Sint Maarten 5.772865969377286e-7
Syria 0.004581243750467663
Chad 0.0313064894302088
Togo 0.0014067991034602252
Uganda 0.005985159048654327
Uruguay 0.0043716082436750115
Vatican 3.002600504657064e-10
Akrotiri Sovereign Base Area 0.0000024314362587592923
Zambia 0.018594119224502336
Zimbabwe 0.009621356779606268
-------------------------------------