diff --git a/tests/fixtures/results/aspc-arc-angle.js b/tests/fixtures/results/aspc-arc-angle.js index d611445..3857d11 100644 --- a/tests/fixtures/results/aspc-arc-angle.js +++ b/tests/fixtures/results/aspc-arc-angle.js @@ -1,1098 +1,1093 @@ module.exports = { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "id": "0d7ff61c-5361-42d6-a3e2-56889a45d3fc", - "properties": { - "name": "San Rocco al Porto Corridor(ULM)", - "class": "R", - "upperCeiling": { - "value": 500, - "unit": "FT", - "referenceDatum": "GND" - }, - "lowerCeiling": { - "value": 0, - "unit": "FT", - "referenceDatum": "GND" - } - }, - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [ - 9.661388888888888, - 45.09305555555556 - ], - [ - 9.661250342186975, - 45.09287726933123 - ], - [ - 9.661078698421429, - 45.09264544874148 - ], - [ - 9.66092801354377, - 45.09240647681807 - ], - [ - 9.66079888202469, - 45.09216129675774 - ], - [ - 9.660691813245565, - 45.09191087624781 - ], - [ - 9.660607229492003, - 45.09165620364596 - ], - [ - 9.660545464291438, - 45.0913982840787 - ], - [ - 9.660506761101388, - 45.09113813547378 - ], - [ - 9.660491272353376, - 45.09087678454228 - ], - [ - 9.660499058856296, - 45.090615262726324 - ], - [ - 9.66053008956142, - 45.09035460212832 - ], - [ - 9.660584241689989, - 45.090095831437765 - ], - [ - 9.660661301222719, - 45.08983997187173 - ], - [ - 9.660760963749246, - 45.08958803314521 - ], - [ - 9.6608828356741, - 45.089341009486866 - ], - [ - 9.661026435774362, - 45.08909987571619 - ], - [ - 9.66119119710275, - 45.0888655833975 - ], - [ - 9.661376469228642, - 45.088639057085786 - ], - [ - 9.66158152080806, - 45.088421190679306 - ], - [ - 9.661805542472466, - 45.08821284389338 - ], - [ - 9.66204765002492, - 45.088014838869036 - ], - [ - 9.662306887930951, - 45.0878279569302 - ], - [ - 9.662582233090351, - 45.08765293550183 - ], - [ - 9.66287259887498, - 45.08749046520152 - ], - [ - 9.663176839416675, - 45.087341187115605 - ], - [ - 9.663493754128307, - 45.087205690270906 - ], - [ - 9.663822092440197, - 45.087084509311715 - ], - [ - 9.664160558733219, - 45.086978122391415 - ], - [ - 9.664507817449126, - 45.08688694928686 - ], - [ - 9.664862498358033, - 45.086811349742995 - ], - [ - 9.665223201962286, - 45.08675162205437 - ], - [ - 9.665588505015428, - 45.086708001888795 - ], - [ - 9.66595696613461, - 45.086680661358066 - ], - [ - 9.666327131484314, - 45.08666970833937 - ], - [ - 9.666697540509055, - 45.08667518604981 - ], - [ - 9.667066731692515, - 45.0866970728761 - ], - [ - 9.66743324832045, - 45.08673528245973 - ], - [ - 9.66779564422471, - 45.086789664037475 - ], - [ - 9.668152489485806, - 45.08686000303592 - ], - [ - 9.668502376071519, - 45.08694602191754 - ], - [ - 9.668843923389492, - 45.08704738127508 - ], - [ - 9.669175783731824, - 45.08716368116994 - ], - [ - 9.66949664759035, - 45.08729446270932 - ], - [ - 9.669805248821627, - 45.087439209855816 - ], - [ - 9.670100369641307, - 45.0875973514624 - ], - [ - 9.670380845428216, - 45.08776826352492 - ], - [ - 9.670645569319241, - 45.08795127164303 - ], - [ - 9.67089349657686, - 45.08814565367993 - ], - [ - 9.671123648712147, - 45.08835064261057 - ], - [ - 9.671335117346947, - 45.088565429546996 - ], - [ - 9.671388888888888, - 45.08861111111111 - ], - [ - 9.690140029013728, - 45.1093447224018 - ], - [ - 9.690311765426687, - 45.10957652733425 - ], - [ - 9.69046254072266, - 45.109815485087694 - ], - [ - 9.690591759646665, - 45.11006065268888 - ], - [ - 9.690698911988793, - 45.11031106264699 - ], - [ - 9.69078357460158, - 45.11056572677072 - ], - [ - 9.690845413074168, - 45.1108236400673 - ], - [ - 9.690884183056594, - 45.111083784707866 - ], - [ - 9.690899731228876, - 45.11134513404384 - ], - [ - 9.690891995911038, - 45.111606656658246 - ], - [ - 9.690861007311534, - 45.111867320436104 - ], - [ - 9.690806887413089, - 45.11212609663781 - ], - [ - 9.690729849496249, - 45.1123819639593 - ], - [ - 9.690630197302475, - 45.112633912563346 - ], - [ - 9.69050832384004, - 45.112880948065474 - ], - [ - 9.690364709837304, - 45.113122095459396 - ], - [ - 9.690199921849453, - 45.11335640296597 - ], - [ - 9.6900146100261, - 45.11358294579067 - ], - [ - 9.689809505548482, - 45.11380082977483 - ], - [ - 9.689585417746352, - 45.11400919492591 - ], - [ - 9.689343230905873, - 45.11420721881327 - ], - [ - 9.689083900781114, - 45.114394119815486 - ], - [ - 9.688808450822847, - 45.11456916020697 - ], - [ - 9.68851796813958, - 45.11473164907106 - ], - [ - 9.688213599206696, - 45.114880945028645 - ], - [ - 9.687896545340697, - 45.115016458771095 - ], - [ - 9.6875680579564, - 45.11513765538759 - ], - [ - 9.687229433625836, - 45.11524405647784 - ], - [ - 9.686882008958397, - 45.115335242041546 - ], - [ - 9.686527155322482, - 45.115410852137224 - ], - [ - 9.68616627342951, - 45.11547058830396 - ], - [ - 9.685800787801746, - 45.11551421474022 - ], - [ - 9.685432141145865, - 45.11554155923531 - ], - [ - 9.685061788654465, - 45.115552513849565 - ], - [ - 9.684691192258166, - 45.11554703534065 - ], - [ - 9.684321814851012, - 45.11552514533448 - ], - [ - 9.683955114512056, - 45.115486930239726 - ], - [ - 9.683592538746014, - 45.11543254090651 - ], - [ - 9.683235518765803, - 45.11536219203053 - ], - [ - 9.682885463839588, - 45.11527616130515 - ], - [ - 9.68254375572473, - 45.11517478832436 - ], - [ - 9.682211743210674, - 45.11505847324162 - ], - [ - 9.681890736792361, - 45.11492767518924 - ], - [ - 9.681582003495263, - 45.114782910465074 - ], - [ - 9.68128676187248, - 45.11462475049333 - ], - [ - 9.68100617719373, - 45.11445381956779 - ], - [ - 9.680741356845196, - 45.11427079238629 - ], - [ - 9.680493345958448, - 45.1140763913863 - ], - [ - 9.680263123285682, - 45.113871383891876 - ], - [ - 9.680051597337565, - 45.11365657908377 - ], - [ - 9.661388888888888, - 45.09305555555556 - ] - ] - ] - } + type: "FeatureCollection", + features: [ + { + type: "Feature", + properties: { + name: "San Rocco al Porto Corridor(ULM)", + class: "R", + upperCeiling: { + value: 500, + unit: "FT", + referenceDatum: "GND", }, - { - "type": "Feature", - "id": "ab0594ad-8fc6-4121-b9a5-ac4b00b74f11", - "properties": { - "name": "TH-3-1", - "class": "G", - "upperCeiling": { - "value": 5000, - "unit": "FT", - "referenceDatum": "MSL" - }, - "lowerCeiling": { - "value": 0, - "unit": "FT", - "referenceDatum": "GND" - } - }, - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [ - 141.1336111111111, - 39.43333333333333 - ], - [ - 141.45707267941913, - 39.432885400088495 - ], - [ - 141.45666200411134, - 39.44639715532449 - ], - [ - 141.45499815022916, - 39.46203921115439 - ], - [ - 141.45206439564396, - 39.477569676592736 - ], - [ - 141.44787149024702, - 39.49292716597537 - ], - [ - 141.44243518944023, - 39.50805093686388 - ], - [ - 141.43577620457592, - 39.52288113181555 - ], - [ - 141.42792013309995, - 39.53735901725888 - ], - [ - 141.41889736848037, - 39.551427218491796 - ], - [ - 141.40874299009806, - 39.565029949826155 - ], - [ - 141.39749663337113, - 39.57811323891243 - ], - [ - 141.38520234048306, - 39.59062514429449 - ], - [ - 141.3719083921828, - 39.60251596526378 - ], - [ - 141.35766712122418, - 39.61373844310789 - ], - [ - 141.3425347081108, - 39.62424795287767 - ], - [ - 141.32657095990933, - 39.634002684832 - ], - [ - 141.3098390729902, - 39.64296381475827 - ], - [ - 141.29240538064616, - 39.6510956624106 - ], - [ - 141.27433908662854, - 39.65836583735591 - ], - [ - 141.25571198572396, - 39.664745371570426 - ], - [ - 141.23659817257337, - 39.67020883818574 - ], - [ - 141.21707374000727, - 39.67473445584336 - ], - [ - 141.19721646823555, - 39.67830417818044 - ], - [ - 141.1771055062884, - 39.680903768035634 - ], - [ - 141.1568210471535, - 39.6825228560332 - ], - [ - 141.13644399809456, - 39.68315498327471 - ], - [ - 141.11605564766816, - 39.68279762794081 - ], - [ - 141.09573733097585, - 39.681452215679634 - ], - [ - 141.075570094701, - 39.67912411373389 - ], - [ - 141.05563436348032, - 39.67582260883354 - ], - [ - 141.03600960915222, - 39.67156086895694 - ], - [ - 141.01677402440498, - 39.66635588913715 - ], - [ - 140.99800420231972, - 39.66022842156423 - ], - [ - 140.97977482326553, - 39.65320289030561 - ], - [ - 140.96215835055733, - 39.64530729103661 - ], - [ - 140.94522473623206, - 39.636573076240445 - ], - [ - 140.92904113823576, - 39.62703502640129 - ], - [ - 140.91367165024369, - 39.61673110777504 - ], - [ - 140.89917704525928, - 39.60570231737984 - ], - [ - 140.88561453405495, - 39.59399251590223 - ], - [ - 140.87303753943075, - 39.58164824926374 - ], - [ - 140.86149548717518, - 39.568718559638405 - ], - [ - 140.85103361451863, - 39.55525478675141 - ], - [ - 140.84169279677215, - 39.541310360325774 - ], - [ - 140.83350939274638, - 39.52694058457427 - ], - [ - 140.82651510944712, - 39.51220241566069 - ], - [ - 140.82073688644365, - 39.497154233075705 - ], - [ - 140.81619680020975, - 39.48185560588921 - ], - [ - 140.81291198863923, - 39.46636705485359 - ], - [ - 140.81089459584493, - 39.45074981133886 - ], - [ - 140.81015173725802, - 39.43506557408456 - ], - [ - 141.1336111111111, - 39.43333333333333 - ] - ] - ] - } + lowerCeiling: { + value: 0, + unit: "FT", + referenceDatum: "GND", }, - { - "type": "Feature", - "id": "ce943a19-1beb-4a2d-a27b-881f6883ad1e", - "properties": { - "name": "R-2903A STEVENS LAKE, FL", - "class": "R", - "upperCeiling": { - "value": 22999, - "unit": "FT", - "referenceDatum": "MSL" - }, - "lowerCeiling": { - "value": 0, - "unit": "FT", - "referenceDatum": "MSL" - } - }, - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [ - -81.99221666666666, - 29.98195 - ], - [ - -81.98582670433072, - 29.96772672039053 - ], - [ - -81.99041343302297, - 29.967620328334636 - ], - [ - -81.99643202964589, - 29.967191302252683 - ], - [ - -82.00240757276401, - 29.966435464648043 - ], - [ - -82.00831642234782, - 29.965355805879675 - ], - [ - -82.01413520418164, - 29.96395659733799 - ], - [ - -82.0198409029772, - 29.962243374421515 - ], - [ - -82.02541095401521, - 29.96022291447922 - ], - [ - -82.03082333294073, - 29.957903209809043 - ], - [ - -82.03605664334573, - 29.9552934358231 - ], - [ - -82.04109020178319, - 29.95240391451005 - ], - [ - -82.04590411986766, - 29.94924607334388 - ], - [ - -82.05047938313109, - 29.945832399807056 - ], - [ - -82.05479792631711, - 29.94217639171341 - ], - [ - -82.05884270481229, - 29.93829250353325 - ], - [ - -82.06259776193077, - 29.934196088938794 - ], - [ - -82.06604829178652, - 29.929903339803317 - ], - [ - -82.06918069750641, - 29.92543122190115 - ], - [ - -82.07198264455879, - 29.920797407568546 - ], - [ - -82.07444310899159, - 29.916020205597356 - ], - [ - -82.07655242039715, - 29.911118488643744 - ], - [ - -82.07830229944324, - 29.906111618443827 - ], - [ - -82.07968588983137, - 29.90101936913605 - ], - [ - -82.08069778456868, - 29.89586184899715 - ], - [ - -82.0275, - 29.876383333333333 - ], - [ - -81.94923892512968, - 29.807358280876656 - ], - [ - -81.9439290274227, - 29.80940441911548 - ], - [ - -81.93857977270812, - 29.81181831278452 - ], - [ - -81.93341548442417, - 29.814518674804255 - ], - [ - -81.92845651586538, - 29.817494870834015 - ], - [ - -81.92372241680255, - 29.820735179274 - ], - [ - -81.9192318566611, - 29.824226837146853 - ], - [ - -81.91500255106256, - 29.827956090073904 - ], - [ - -81.91105119201526, - 29.831908246155134 - ], - [ - -81.90739338202829, - 29.836067733546287 - ], - [ - -81.90404357240821, - 29.8404181615125 - ], - [ - -81.90101500598482, - 29.84494238472355 - ], - [ - -81.89831966449451, - 29.84962257054331 - ], - [ - -81.89596822083553, - 29.854440269053708 - ], - [ - -81.89396999638954, - 29.859376485542274 - ], - [ - -81.89233292358722, - 29.86441175517268 - ], - [ - -81.89106351387545, - 29.869526219547765 - ], - [ - -81.89016683122405, - 29.87469970486741 - ], - [ - -81.88964647128843, - 29.87991180137587 - ], - [ - -81.88950454632479, - 29.88514194378795 - ], - [ - -81.88974167593027, - 29.890369492378554 - ], - [ - -81.89035698366007, - 29.895573814416657 - ], - [ - -81.891348099549, - 29.900734365622952 - ], - [ - -81.89271116854286, - 29.90583077132904 - ], - [ - -81.8944408648203, - 29.91084290701685 - ], - [ - -81.89653041196362, - 29.915750977918282 - ], - [ - -81.89897160891151, - 29.920535597358352 - ], - [ - -81.90175486160466, - 29.92517786352901 - ], - [ - -81.88305, - 29.941666666666666 - ], - [ - -81.93445, - 29.98195 - ], - [ - -81.99221666666666, - 29.98195 - ] - ] - ] - } + }, + geometry: { + type: "Polygon", + coordinates: [ + [ + [ + 9.66139, + 45.09306, + ], + [ + 9.661251453598004, + 45.09287393599791, + ], + [ + 9.661079809842473, + 45.09264211540816, + ], + [ + 9.660929124973608, + 45.09240314348474, + ], + [ + 9.66079999346206, + 45.09215796342443, + ], + [ + 9.660692924689183, + 45.0919075429145, + ], + [ + 9.660608340940554, + 45.09165287031265, + ], + [ + 9.660546575743592, + 45.091394950745396, + ], + [ + 9.660507872555797, + 45.09113480214045, + ], + [ + 9.660492383808688, + 45.09087345120896, + ], + [ + 9.660500170311147, + 45.090611929393, + ], + [ + 9.660531201014459, + 45.09035126879501, + ], + [ + 9.660585353139867, + 45.09009249810445, + ], + [ + 9.660662412668094, + 45.08983663853842, + ], + [ + 9.6607620751888, + 45.089584699811894, + ], + [ + 9.66088394710654, + 45.08933767615354, + ], + [ + 9.661027547198419, + 45.089096542382855, + ], + [ + 9.661192308517188, + 45.088862250064174, + ], + [ + 9.661377580632267, + 45.08863572375245, + ], + [ + 9.661582632199718, + 45.08841785734599, + ], + [ + 9.661806653851047, + 45.08820951056005, + ], + [ + 9.662048761389372, + 45.08801150553571, + ], + [ + 9.662307999280271, + 45.08782462359686, + ], + [ + 9.662583344423602, + 45.0876496021685, + ], + [ + 9.662873710191286, + 45.08748713186817, + ], + [ + 9.663177950715227, + 45.087337853782266, + ], + [ + 9.663494865408362, + 45.08720235693757, + ], + [ + 9.663823203701094, + 45.087081175978376, + ], + [ + 9.664161669974362, + 45.08697478905808, + ], + [ + 9.664508928670005, + 45.08688361595351, + ], + [ + 9.664863609558216, + 45.08680801640966, + ], + [ + 9.665224313141419, + 45.08674828872104, + ], + [ + 9.665589616173243, + 45.08670466855546, + ], + [ + 9.665958077270925, + 45.086677328024734, + ], + [ + 9.666328242599027, + 45.086666375006025, + ], + [ + 9.666698651602156, + 45.08667185271647, + ], + [ + 9.667067842764071, + 45.08669373954276, + ], + [ + 9.667434359370617, + 45.08673194912639, + ], + [ + 9.667796755253732, + 45.08678633070414, + ], + [ + 9.668153600494001, + 45.086856669702584, + ], + [ + 9.668503487059299, + 45.0869426885842, + ], + [ + 9.66884503435734, + 45.087044047941745, + ], + [ + 9.669176894680305, + 45.08716034783661, + ], + [ + 9.669497758520107, + 45.087291129376, + ], + [ + 9.669806359733375, + 45.087435876522484, + ], + [ + 9.67010148053583, + 45.087594018129074, + ], + [ + 9.670381956306374, + 45.08776493019159, + ], + [ + 9.670646680181948, + 45.0879479383097, + ], + [ + 9.670894607425094, + 45.088142320346584, + ], + [ + 9.67112475954695, + 45.08834730927723, + ], + [ + 9.671336228169407, + 45.08856209621367, + ], + [ + 9.67139, + 45.08861, + ], + [ + 9.690140029113786, + 45.10934583351291, + ], + [ + 9.69031176553009, + 45.10957763844536, + ], + [ + 9.690462540828998, + 45.10981659619881, + ], + [ + 9.69059175975552, + 45.110061763800005, + ], + [ + 9.690698912099736, + 45.1103121737581, + ], + [ + 9.690783574714171, + 45.11056683788184, + ], + [ + 9.690845413187965, + 45.110824751178406, + ], + [ + 9.690884183171148, + 45.111084895818976, + ], + [ + 9.690899731343734, + 45.11134624515494, + ], + [ + 9.690891996025744, + 45.111607767769364, + ], + [ + 9.690861007425639, + 45.11186843154723, + ], + [ + 9.69080688752614, + 45.11212720774893, + ], + [ + 9.6907298496078, + 45.11238307507042, + ], + [ + 9.690630197412089, + 45.11263502367446, + ], + [ + 9.690508323947281, + 45.11288205917659, + ], + [ + 9.69036470994175, + 45.11312320657052, + ], + [ + 9.690199921950693, + 45.11335751407708, + ], + [ + 9.690014610123733, + 45.113584056901786, + ], + [ + 9.689809505642122, + 45.113801940885935, + ], + [ + 9.689585417835628, + 45.11401030603703, + ], + [ + 9.689343230990435, + 45.114208329924374, + ], + [ + 9.689083900860627, + 45.1143952309266, + ], + [ + 9.688808450897, + 45.11457027131808, + ], + [ + 9.688517968208076, + 45.11473276018217, + ], + [ + 9.688213599269268, + 45.11488205613977, + ], + [ + 9.687896545397095, + 45.11501756988221, + ], + [ + 9.687568058006402, + 45.1151387664987, + ], + [ + 9.687229433669243, + 45.11524516758896, + ], + [ + 9.686882008995042, + 45.11533635315267, + ], + [ + 9.686527155352218, + 45.11541196324834, + ], + [ + 9.686166273452217, + 45.115471699415075, + ], + [ + 9.685800787817339, + 45.11551532585134, + ], + [ + 9.68543214115428, + 45.115542670346436, + ], + [ + 9.685061788655668, + 45.11555362496068, + ], + [ + 9.684691192252153, + 45.11554814645176, + ], + [ + 9.684321814837809, + 45.1155262564456, + ], + [ + 9.683955114491711, + 45.115488041350844, + ], + [ + 9.68359253871861, + 45.115433652017614, + ], + [ + 9.683235518731449, + 45.115363303141656, + ], + [ + 9.682885463798415, + 45.115277272416265, + ], + [ + 9.682543755676905, + 45.11517589943548, + ], + [ + 9.682211743156385, + 45.11505958435273, + ], + [ + 9.681890736731823, + 45.11492878630035, + ], + [ + 9.681582003428714, + 45.11478402157618, + ], + [ + 9.681286761800184, + 45.11462586160444, + ], + [ + 9.681006177115972, + 45.1144549306789, + ], + [ + 9.68074135676228, + 45.11427190349742, + ], + [ + 9.680493345870705, + 45.114077502497416, + ], + [ + 9.680263123193457, + 45.113872495002994, + ], + [ + 9.68005159724122, + 45.11365769019488, + ], + [ + 9.66139, + 45.09306, + ], + ], + ], + }, + }, + { + type: "Feature", + properties: { + name: "TH-3-1", + class: "G", + upperCeiling: { + value: 5000, + unit: "FT", + referenceDatum: "MSL", }, - { - "type": "Feature", - "id": "6fde793d-b84c-467f-8485-b95536133e44", - "properties": { - "name": "R-5701 BOARDMAN, OR", - "class": "R", - "upperCeiling": { - "value": 10000, - "unit": "FT", - "referenceDatum": "MSL" - }, - "lowerCeiling": { - "value": 0, - "unit": "FT", - "referenceDatum": "MSL" - } - }, - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [ - -119.52695, - 45.77555 - ], - [ - -119.58352553715329, - 45.76989122745619 - ], - [ - -119.57981441658669, - 45.76534504027945 - ], - [ - -119.57652040354523, - 45.760645173436004 - ], - [ - -119.57365641655245, - 45.75581021156417 - ], - [ - -119.57123366460134, - 45.75085926860569 - ], - [ - -119.56926160440949, - 45.74581191185971 - ], - [ - -119.56774790476081, - 45.74068808431708 - ], - [ - -119.56669841804779, - 45.735508025588146 - ], - [ - -119.56611715909818, - 45.730292191742144 - ], - [ - -119.56600629133837, - 45.72506117437868 - ], - [ - -119.56636612031711, - 45.71983561925382 - ], - [ - -119.56719509458158, - 45.714636144783434 - ], - [ - -119.56848981387049, - 45.70948326074556 - ], - [ - -119.57024504455826, - 45.70439728750157 - ], - [ - -119.5724537422584, - 45.69939827605182 - ], - [ - -119.57510708146606, - 45.69450592923767 - ], - [ - -119.57819449209356, - 45.6897395243951 - ], - [ - -119.58092135647834, - 45.68608946364724 - ], - [ - -119.51028333333333, - 45.69305 - ], - [ - -119.52695, - 45.77555 - ] - ] - ] - } + lowerCeiling: { + value: 0, + unit: "FT", + referenceDatum: "GND", }, - { - "type": "Feature", - "id": "966c6d09-c3e1-402b-bf1d-f9ce53f630f3", - "properties": { - "name": "R-5601F FORT SILL, OK", - "class": "R", - "upperCeiling": { - "value": 40000, - "unit": "FT", - "referenceDatum": "MSL" - }, - "lowerCeiling": { - "value": 500, - "unit": "FT", - "referenceDatum": "MSL" - } - }, - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [ - -98.83361666666667, - 34.704166666666666 - ], - [ - -98.78221666666667, - 34.719166666666666 - ], - [ - -98.77147212298813, - 34.73921014010484 - ], - [ - -98.77532854319897, - 34.73858096043885 - ], - [ - -98.83235332711457, - 34.72761725181772 - ], - [ - -98.84863571150669, - 34.77576141777211 - ], - [ - -98.86725532824954, - 34.77149443692826 - ], - [ - -98.83361666666667, - 34.704166666666666 - ] - ] - ] - } - } - ] + }, + geometry: { + type: "Polygon", + coordinates: [ + [ + [ + 141.13361, + 39.43333, + ], + [ + 141.4570715528326, + 39.432882066808276, + ], + [ + 141.456660877537, + 39.44639382204413, + ], + [ + 141.45499702372592, + 39.4620358778735, + ], + [ + 141.45206326927277, + 39.477566343310876, + ], + [ + 141.44787036406854, + 39.49292383269218, + ], + [ + 141.4424340635144, + 39.508047603578966, + ], + [ + 141.43577507896188, + 39.52287779852857, + ], + [ + 141.42791900785568, + 39.53735568396951, + ], + [ + 141.41889624366254, + 39.55142388519979, + ], + [ + 141.40874186576173, + 39.56502661653124, + ], + [ + 141.3974955095695, + 39.57810990561445, + ], + [ + 141.3852012172673, + 39.590621810993284, + ], + [ + 141.3719072696018, + 39.60251263195927, + ], + [ + 141.35766599932435, + 39.61373510980004, + ], + [ + 141.34253358693584, + 39.62424461956649, + ], + [ + 141.32656983950014, + 39.63399935151756, + ], + [ + 141.30983795338454, + 39.64296048144069, + ], + [ + 141.29240426187866, + 39.65109232909007, + ], + [ + 141.27433796873038, + 39.65836250403262, + ], + [ + 141.25571086872282, + 39.664742038244654, + ], + [ + 141.23659705649328, + 39.67020550485778, + ], + [ + 141.21707262486856, + 39.674731122513556, + ], + [ + 141.1972153540547, + 39.678300844849154, + ], + [ + 141.17710439307797, + 39.680900434703254, + ], + [ + 141.15681993492208, + 39.68251952270013, + ], + [ + 141.13644288684674, + 39.68315164994138, + ], + [ + 141.11605453740447, + 39.682794294607625, + ], + [ + 141.09573622169287, + 39.68144888234703, + ], + [ + 141.07556898639123, + 39.679120780402265, + ], + [ + 141.0556332561323, + 39.675819275503294, + ], + [ + 141.03600850275052, + 39.67155753562843, + ], + [ + 141.01677291893037, + 39.66635255581073, + ], + [ + 140.9980030977492, + 39.66022508824022, + ], + [ + 140.9797737195724, + 39.65319955698428, + ], + [ + 140.96215724771133, + 39.645303957718184, + ], + [ + 140.94522363419952, + 39.63656974292512, + ], + [ + 140.9290400369798, + 39.627031693089194, + ], + [ + 140.91367054972426, + 39.616727774466256, + ], + [ + 140.89917594543348, + 39.60569898407441, + ], + [ + 140.88561343487706, + 39.59398918260011, + ], + [ + 140.87303644085253, + 39.58164491596488, + ], + [ + 140.86149438914606, + 39.56871522634266, + ], + [ + 140.851032516986, + 39.55525145345862, + ], + [ + 140.84169169968138, + 39.5413070270357, + ], + [ + 140.8335082960413, + 39.52693725128665, + ], + [ + 140.82651401307004, + 39.51219908237523, + ], + [ + 140.8207357903358, + 39.497150899792054, + ], + [ + 140.81619570431133, + 39.48185227260703, + ], + [ + 140.81291089288976, + 39.466363721572456, + ], + [ + 140.8108935001835, + 39.45074647805839, + ], + [ + 140.81015064162352, + 39.43506224080434, + ], + [ + 141.13361, + 39.43333, + ], + ], + ], + }, + }, + { + type: "Feature", + properties: { + name: "R-2903A STEVENS LAKE, FL", + class: "R", + upperCeiling: { + value: 22999, + unit: "FT", + referenceDatum: "MSL", + }, + lowerCeiling: { + value: 0, + unit: "FT", + referenceDatum: "MSL", + }, + }, + geometry: { + type: "Polygon", + coordinates: [ + [ + [ + -81.99222, + 29.98194, + ], + [ + -81.98583670430288, + 29.967716720390527, + ], + [ + -81.99042343253356, + 29.96761032833467, + ], + [ + -81.99644202855082, + 29.96718130225286, + ], + [ + -82.00241757106764, + 29.966425464648474, + ], + [ + -82.00832642005693, + 29.965345805880464, + ], + [ + -82.01414520130541, + 29.963946597339227, + ], + [ + -82.0198508995271, + 29.9622333744233, + ], + [ + -82.02542095000501, + 29.960212914481634, + ], + [ + -82.03083332838644, + 29.957893209812163, + ], + [ + -82.03606663826552, + 29.955283435826985, + ], + [ + -82.04110019619732, + 29.952393914514744, + ], + [ + -82.04591411379842, + 29.949236073349425, + ], + [ + -82.05048937660267, + 29.945822399813473, + ], + [ + -82.05480791935551, + 29.94216639172071, + ], + [ + -82.05885269744519, + 29.93828250354143, + ], + [ + -82.06260775418755, + 29.934186088947833, + ], + [ + -82.0660582836979, + 29.929893339813187, + ], + [ + -82.06919068910454, + 29.9254212219118, + ], + [ + -82.07199263587708, + 29.920787407579926, + ], + [ + -82.07445310006443, + 29.916010205609393, + ], + [ + -82.07656241126, + 29.911108488656357, + ], + [ + -82.07831229013226, + 29.906101618456923, + ], + [ + -82.07969588038344, + 29.901009369149552, + ], + [ + -82.08070777502118, + 29.895851849010935, + ], + [ + -82.0275, + 29.87639, + ], + [ + -81.94924892876027, + 29.807348280878664, + ], + [ + -81.94393903158453, + 29.80939441911812, + ], + [ + -81.93858977740535, + 29.811808312787882, + ], + [ + -81.93342548963838, + 29.814508674808387, + ], + [ + -81.92846652157627, + 29.817484870838975, + ], + [ + -81.92373242298778, + 29.82072517927982, + ], + [ + -81.9192418632965, + 29.82421683715355, + ], + [ + -81.91501255812219, + 29.827946090081486, + ], + [ + -81.9110611994715, + 29.83189824616358, + ], + [ + -81.90740338985192, + 29.836057733555588, + ], + [ + -81.90405358056861, + 29.84040816152261, + ], + [ + -81.90102501444997, + 29.84493238473443, + ], + [ + -81.89832967323123, + 29.849612570554903, + ], + [ + -81.89597822980951, + 29.854430269065922, + ], + [ + -81.89398000556551, + 29.859366485555046, + ], + [ + -81.89234293292913, + 29.864401755185906, + ], + [ + -81.89107352334655, + 29.869516219561362, + ], + [ + -81.890176840787, + 29.874689704881266, + ], + [ + -81.8896564809056, + 29.879901801389874, + ], + [ + -81.88951455595821, + 29.885131943802, + ], + [ + -81.88975168554195, + 29.890359492392527, + ], + [ + -81.89036699321203, + 29.895563814430457, + ], + [ + -81.89135810900349, + 29.90072436563646, + ], + [ + -81.89272117786246, + 29.90582077134217, + ], + [ + -81.89445087396811, + 29.910832907029487, + ], + [ + -81.8965404209034, + 29.91574097793035, + ], + [ + -81.89898161760782, + 29.920525597369767, + ], + [ + -81.90176487002296, + 29.9251678635397, + ], + [ + -81.88306, + 29.94167, + ], + [ + -81.93444, + 29.98194, + ], + [ + -81.99222, + 29.98194, + ], + ], + ], + }, + }, + { + type: "Feature", + properties: { + name: "R-5701 BOARDMAN, OR", + class: "R", + upperCeiling: { + value: 10000, + unit: "FT", + referenceDatum: "MSL", + }, + lowerCeiling: { + value: 0, + unit: "FT", + referenceDatum: "MSL", + }, + }, + geometry: { + type: "Polygon", + coordinates: [ + [ + [ + -119.52694, + 45.77556, + ], + [ + -119.58352219165734, + 45.76989789411234, + ], + [ + -119.57981107064919, + 45.765351706934815, + ], + [ + -119.57651705721621, + 45.76065184009067, + ], + [ + -119.57365306988346, + 45.75581687821819, + ], + [ + -119.57123031764527, + 45.75086593525914, + ], + [ + -119.56925825722028, + 45.74581857851272, + ], + [ + -119.56774455739335, + 45.74069475096972, + ], + [ + -119.56669507055761, + 45.735514692240535, + ], + [ + -119.56611381154119, + 45.73029885839439, + ], + [ + -119.56600294377077, + 45.72506784103092, + ], + [ + -119.566362772795, + 45.71984228590615, + ], + [ + -119.56719174716096, + 45.714642811435944, + ], + [ + -119.56848646660683, + 45.70948992739839, + ], + [ + -119.57024169750638, + 45.7044039541548, + ], + [ + -119.57245039547229, + 45.69940494270558, + ], + [ + -119.57510373499849, + 45.69451259589202, + ], + [ + -119.5781911459962, + 45.68974619105014, + ], + [ + -119.58091801070758, + 45.68609613030285, + ], + [ + -119.51028, + 45.69306, + ], + [ + -119.52694, + 45.77556, + ], + ], + ], + }, + }, + { + type: "Feature", + properties: { + name: "R-5601F FORT SILL, OK", + class: "R", + upperCeiling: { + value: 40000, + unit: "FT", + referenceDatum: "MSL", + }, + lowerCeiling: { + value: 500, + unit: "FT", + referenceDatum: "MSL", + }, + }, + geometry: { + type: "Polygon", + coordinates: [ + [ + [ + -98.83361, + 34.70417, + ], + [ + -98.78222, + 34.71917, + ], + [ + -98.77133531987754, + 34.73914680707715, + ], + [ + -98.77519173713564, + 34.73851762742455, + ], + [ + -98.83221647741698, + 34.72755391903487, + ], + [ + -98.84849884898279, + 34.77569808506686, + ], + [ + -98.86711845146752, + 34.77143110431802, + ], + [ + -98.83361, + 34.70417, + ], + ], + ], + }, + }, + ], } diff --git a/tests/fixtures/results/aspc-ccw-arc.js b/tests/fixtures/results/aspc-ccw-arc.js index c56e3ec..b772fa6 100644 --- a/tests/fixtures/results/aspc-ccw-arc.js +++ b/tests/fixtures/results/aspc-ccw-arc.js @@ -1,214 +1,213 @@ module.exports = { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "id": "21e058bf-abae-4794-bab1-4e1dd504e872", - "properties": { - "name": "ED-R37B_2 Nordhorn NOTAM", - "class": "R", - "upperCeiling": { - "value": 100, - "unit": "FL", - "referenceDatum": "STD" - }, - "lowerCeiling": { - "value": 4000, - "unit": "FT", - "referenceDatum": "MSL" - } - }, - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [ - 7.063611111111111, - 52.7175 - ], - [ - 7.057777777777778, - 52.653055555555554 - ], - [ - 7.060833333333333, - 52.43333333333333 - ], - [ - 7.063888888888889, - 52.43333333333333 - ], - [ - 7.063888888888889, - 52.43333333333333 - ], - [ - 7.06414945685398, - 52.438544140007096 - ], - [ - 7.064946351876799, - 52.443734686250004 - ], - [ - 7.066276616127524, - 52.44888447662137 - ], - [ - 7.06813518101714, - 52.45397316945506 - ], - [ - 7.0705148843310965, - 52.45898065741479 - ], - [ - 7.073406495758753, - 52.46388714723237 - ], - [ - 7.076798750761442, - 52.468673238308156 - ], - [ - 7.080678392686481, - 52.473319999856045 - ], - [ - 7.08503022299845, - 52.477809046279546 - ], - [ - 7.089837159463189, - 52.482122610470924 - ], - [ - 7.095080302083937, - 52.48624361473263 - ], - [ - 7.100739006553542, - 52.49015573902836 - ], - [ - 7.10679096495152, - 52.49384348628092 - ], - [ - 7.113212293380457, - 52.497292244445156 - ], - [ - 7.1199776262028935, - 52.50048834509631 - ], - [ - 7.127060216507661, - 52.50341911828812 - ], - [ - 7.13443204240395, - 52.50607294344948 - ], - [ - 7.14206391871233, - 52.50843929610446 - ], - [ - 7.149925613594699, - 52.510508790217784 - ], - [ - 7.157985969640083, - 52.51227321598536 - ], - [ - 7.166213028900287, - 52.513725572909145 - ], - [ - 7.174574161349032, - 52.514860098014644 - ], - [ - 7.183036196220349, - 52.51567228909044 - ], - [ - 7.191565555667009, - 52.51615892285001 - ], - [ - 7.200128390167527, - 52.51631806793777 - ], - [ - 7.2086907151010475, - 52.51614909272359 - ], - [ - 7.2172185479033315, - 52.515652667852116 - ], - [ - 7.225678045213872, - 52.51483076353597 - ], - [ - 7.234035639424305, - 52.51368664160448 - ], - [ - 7.242258174041408, - 52.512224842342206 - ], - [ - 7.250313037284236, - 52.51045116617362 - ], - [ - 7.258168293344321, - 52.508372650272996 - ], - [ - 7.265792810750007, - 52.50599754019928 - ], - [ - 7.273156387291307, - 52.50333525667796 - ], - [ - 7.2802298709794, - 52.5003963576714 - ], - [ - 7.286985276535472, - 52.49719249589972 - ], - [ - 7.293395896926528, - 52.49373637199246 - ], - [ - 7.296666666666667, - 52.49194444444444 - ], - [ - 7.296666666666667, - 52.49194444444444 - ], - [ - 7.252777777777778, - 52.68333333333333 - ], - [ - 7.063611111111111, - 52.7175 - ] - ] - ] - } - } - ] + type: "FeatureCollection", + features: [ + { + type: "Feature", + properties: { + name: "ED-R37B_2 Nordhorn NOTAM", + class: "R", + upperCeiling: { + value: 100, + unit: "FL", + referenceDatum: "STD", + }, + lowerCeiling: { + value: 4000, + unit: "FT", + referenceDatum: "MSL", + }, + }, + geometry: { + type: "Polygon", + coordinates: [ + [ + [ + 7.06361, + 52.7175, + ], + [ + 7.05778, + 52.65306, + ], + [ + 7.06083, + 52.43333, + ], + [ + 7.06389, + 52.43333, + ], + [ + 7.06389, + 52.43333, + ], + [ + 7.064150565903813, + 52.43854076452951, + ], + [ + 7.064947454485405, + 52.443731268789534, + ], + [ + 7.066277707937304, + 52.44888101750523, + ], + [ + 7.068136257710143, + 52.45396966917516, + ], + [ + 7.070515941646201, + 52.4589771166259, + ], + [ + 7.073407529508666, + 52.463883566749644, + ], + [ + 7.076799756849454, + 52.46866961910396, + ], + [ + 7.080679367122897, + 52.4733163430563, + ], + [ + 7.085031161916644, + 52.47780535315928, + ], + [ + 7.089838059135185, + 52.48211888244934, + ], + [ + 7.095081158935484, + 52.48623985336756, + ], + [ + 7.100739817178589, + 52.49015194601016, + ], + [ + 7.106791726126047, + 52.49383966342579, + ], + [ + 7.113213002075594, + 52.497288393687974, + ], + [ + 7.119978279597264, + 52.50048446848305, + ], + [ + 7.127060811998909, + 52.50341521796771, + ], + [ + 7.134432577619389, + 52.50606902166529, + ], + [ + 7.142064391518658, + 52.50843535518541, + ], + [ + 7.149926022106757, + 52.51050483256906, + ], + [ + 7.157986312228602, + 52.51226924407889, + ], + [ + 7.166213304198589, + 52.51372158927371, + ], + [ + 7.174574368258651, + 52.51485610522583, + ], + [ + 7.183036333915563, + 52.515668289760384, + ], + [ + 7.191565623598249, + 52.516154919616916, + ], + [ + 7.200128388063629, + 52.51631406345546, + ], + [ + 7.208690642970387, + 52.51614508965084, + ], + [ + 7.217218406033781, + 52.5156486688421, + ], + [ + 7.225677834171616, + 52.51482677122562, + ], + [ + 7.234035360051509, + 52.51368265860404, + ], + [ + 7.242257827452733, + 52.51222087122471, + ], + [ + 7.250312624862267, + 52.51044720946476, + ], + [ + 7.25816781673386, + 52.508368710440905, + ], + [ + 7.265792271851315, + 52.50599361964485, + ], + [ + 7.273155788252296, + 52.50333135772522, + ], + [ + 7.28022921418682, + 52.50039248255828, + ], + [ + 7.2869845646051346, + 52.49718864676918, + ], + [ + 7.2933951326925985, + 52.49373255088402, + ], + [ + 7.29667, + 52.49194, + ], + [ + 7.29667, + 52.49194, + ], + [ + 7.25278, + 52.68333, + ], + [ + 7.06361, + 52.7175, + ], + ], + ], + }, + }, + ], } diff --git a/tests/fixtures/results/aspc-clockwise-arc.js b/tests/fixtures/results/aspc-clockwise-arc.js index 9471941..a3f3f7f 100644 --- a/tests/fixtures/results/aspc-clockwise-arc.js +++ b/tests/fixtures/results/aspc-clockwise-arc.js @@ -1,462 +1,461 @@ -module.exports = { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "id": "a5e1a3ee-36a7-4ccc-bcb5-8418989083c3", - "properties": { - "name": "ED-R56 Kummersdorf MON-FRI", - "class": "R", - "upperCeiling": { - "value": 3500, - "unit": "FT", - "referenceDatum": "MSL" - }, - "lowerCeiling": { - "value": 0, - "unit": "FT", - "referenceDatum": "GND" - } - }, - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [ - 13.392777777777777, - 52.126666666666665 - ], - [ - 13.392777777777777, - 52.126666666666665 - ], - [ - 13.392763237620747, - 52.12666503306055 - ], - [ - 13.390404473645217, - 52.12608273830403 - ], - [ - 13.388109987298469, - 52.1254106206724 - ], - [ - 13.385888844407432, - 52.124651336705746 - ], - [ - 13.383749819628392, - 52.12380788732388 - ], - [ - 13.381701361678296, - 52.12288360591405 - ], - [ - 13.379751559881802, - 52.12188214510163 - ], - [ - 13.377908112167779, - 52.12080746225737 - ], - [ - 13.376178294642832, - 52.11966380379944 - ], - [ - 13.374568932862623, - 52.11845568835375 - ], - [ - 13.373086374914568, - 52.11718788883997 - ], - [ - 13.371736466417834, - 52.11586541355545 - ], - [ - 13.37052452753841, - 52.11449348633292 - ], - [ - 13.369455332108625, - 52.11307752585144 - ], - [ - 13.368533088931656, - 52.111623124183275 - ], - [ - 13.367761425342541, - 52.110136024662914 - ], - [ - 13.367143373087805, - 52.10862209916584 - ], - [ - 13.366681356576375, - 52.10708732488817 - ], - [ - 13.366377183544717, - 52.10553776071923 - ], - [ - 13.366232038169338, - 52.103979523301135 - ], - [ - 13.36624647664992, - 52.10241876286996 - ], - [ - 13.366420425276523, - 52.10086163897456 - ], - [ - 13.366753180984274, - 52.09931429616867 - ], - [ - 13.367243414389232, - 52.09778283977243 - ], - [ - 13.367889175289328, - 52.096273311798605 - ], - [ - 13.368687900604655, - 52.09479166713833 - ], - [ - 13.369636424721946, - 52.09334375009982 - ], - [ - 13.370730992198835, - 52.091935271391996 - ], - [ - 13.371967272774393, - 52.090571785643114 - ], - [ - 13.37334037862379, - 52.08925866954211 - ], - [ - 13.37484488378639, - 52.08800110068828 - ], - [ - 13.376474845688389, - 52.08680403723114 - ], - [ - 13.378223828673466, - 52.08567219838021 - ], - [ - 13.380084929447257, - 52.084610045860025 - ], - [ - 13.382050804334614, - 52.08362176638256 - ], - [ - 13.38411369824184, - 52.08271125520473 - ], - [ - 13.386265475209939, - 52.08188210083487 - ], - [ - 13.388497650439126, - 52.081137570947064 - ], - [ - 13.390801423659592, - 52.080480599557895 - ], - [ - 13.39316771371857, - 52.079913775514875 - ], - [ - 13.395587194249517, - 52.07943933234118 - ], - [ - 13.398050330285315, - 52.079059139475554 - ], - [ - 13.400547415673998, - 52.078774694941245 - ], - [ - 13.403068611152772, - 52.07858711947217 - ], - [ - 13.405603982933657, - 52.07849715211877 - ], - [ - 13.408143541652363, - 52.0785051473506 - ], - [ - 13.410677281530655, - 52.07861107366669 - ], - [ - 13.413195219601796, - 52.07881451371908 - ], - [ - 13.41568743484834, - 52.07911466594883 - ], - [ - 13.418144107101925, - 52.079510347728736 - ], - [ - 13.420555555555556, - 52.080000000000005 - ], - [ - 13.420555555555556, - 52.080000000000005 - ], - [ - 13.446666666666667, - 52.08583333333333 - ], - [ - 13.446666666666667, - 52.08583333333333 - ], - [ - 13.44900936540335, - 52.08641276946172 - ], - [ - 13.451302632336613, - 52.08708359356387 - ], - [ - 13.453522898509938, - 52.087841532080155 - ], - [ - 13.455661410377452, - 52.08868359813076 - ], - [ - 13.457709735194715, - 52.08960647312848 - ], - [ - 13.459659794188664, - 52.0906065198023 - ], - [ - 13.461503894361346, - 52.09167979647492 - ], - [ - 13.463234758803189, - 52.09282207253925 - ], - [ - 13.464845555396888, - 52.09402884507396 - ], - [ - 13.466329923798925, - 52.09529535653376 - ], - [ - 13.467682000591953, - 52.096616613446 - ], - [ - 13.468896442507948, - 52.09798740604074 - ], - [ - 13.469968447629268, - 52.09940232873846 - ], - [ - 13.470893774482105, - 52.100855801415406 - ], - [ - 13.47166875894477, - 52.10234209136373 - ], - [ - 13.472290328901481, - 52.10385533586084 - ], - [ - 13.47275601658072, - 52.10538956525981 - ], - [ - 13.473063968526125, - 52.106938726510215 - ], - [ - 13.473212953156994, - 52.10849670701751 - ], - [ - 13.473202365884573, - 52.110057358746964 - ], - [ - 13.47303223176004, - 52.1116145224775 - ], - [ - 13.472703205639505, - 52.113162052109935 - ], - [ - 13.47221656986127, - 52.11469383893336 - ], - [ - 13.471574229440366, - 52.116203835754234 - ], - [ - 13.470778704795304, - 52.11768608079215 - ], - [ - 13.469833122031865, - 52.11913472124779 - ], - [ - 13.468741200818615, - 52.12054403644945 - ], - [ - 13.467507239898643, - 52.12190846048569 - ], - [ - 13.46613610029165, - 52.12322260423443 - ], - [ - 13.464633186250005, - 52.12448127670013 - ], - [ - 13.463004424041742, - 52.12567950557393 - ], - [ - 13.4612562386424, - 52.126812556934475 - ], - [ - 13.459395528426471, - 52.12787595401042 - ], - [ - 13.45742963795751, - 52.128865494929215 - ], - [ - 13.45536632898408, - 52.12977726938105 - ], - [ - 13.45321374975627, - 52.13060767413072 - ], - [ - 13.450980402784642, - 52.13135342731493 - ], - [ - 13.448675111170244, - 52.13201158146763 - ], - [ - 13.44630698364028, - 52.132579535220536 - ], - [ - 13.443885378429728, - 52.13305504363173 - ], - [ - 13.441419866154195, - 52.13343622710048 - ], - [ - 13.438920191823492, - 52.133721578832514 - ], - [ - 13.436396236149374, - 52.133909970825 - ], - [ - 13.433857976303763, - 52.13400065834767 - ], - [ - 13.431315446286261, - 52.13399328290128 - ], - [ - 13.428778697061437, - 52.13388787364201 - ], - [ - 13.426257756627397, - 52.13368484726553 - ], - [ - 13.42376259017737, - 52.13338500635156 - ], - [ - 13.42130306051576, - 52.1329895361755 - ], - [ - 13.418888888888889, - 52.1325 - ], - [ - 13.418888888888889, - 52.1325 - ], - [ - 13.392777777777777, - 52.126666666666665 - ] - ] - ] - } - } - ] +module.exports ={ + type: "FeatureCollection", + features: [ + { + type: "Feature", + properties: { + name: "ED-R56 Kummersdorf MON-FRI", + class: "R", + upperCeiling: { + value: 3500, + unit: "FT", + referenceDatum: "MSL", + }, + lowerCeiling: { + value: 0, + unit: "FT", + referenceDatum: "GND", + }, + }, + geometry: { + type: "Polygon", + coordinates: [ + [ + [ + 13.39278, + 52.12667, + ], + [ + 13.39278, + 52.12667, + ], + [ + 13.392765460760074, + 52.126658366132695, + ], + [ + 13.39040704029667, + 52.12607603510288, + ], + [ + 13.388112900477847, + 52.12540389451126, + ], + [ + 13.385892105758614, + 52.12464460098808, + ], + [ + 13.383753429417068, + 52.123801155490234, + ], + [ + 13.381705318791218, + 52.12287689138886, + ], + [ + 13.379755861831532, + 52.121875461240094, + ], + [ + 13.377912755102898, + 52.12080082229261, + ], + [ + 13.376183273363607, + 52.119657220790195, + ], + [ + 13.37457424084201, + 52.11844917513272, + ], + [ + 13.373092004324517, + 52.1171814579631, + ], + [ + 13.371742408160726, + 52.11585907725235, + ], + [ + 13.370530771283526, + 52.11448725645857, + ], + [ + 13.369461866333502, + 52.11307141383934, + ], + [ + 13.368539900968136, + 52.11161714100045, + ], + [ + 13.367768501427319, + 52.11013018076656, + ], + [ + 13.367150698417301, + 52.10861640446217, + ], + [ + 13.366688915365673, + 52.10708178869334, + ], + [ + 13.366384959090324, + 52.105532391722804, + ], + [ + 13.366240012915545, + 52.10397432953174, + ], + [ + 13.366254632258485, + 52.10241375166385, + ], + [ + 13.366428742699345, + 52.10085681694676, + ], + [ + 13.366761640538853, + 52.099309669187065, + ], + [ + 13.367251995836526, + 52.097778412934694, + ], + [ + 13.367897857913759, + 52.09626908941236, + ], + [ + 13.36869666329593, + 52.09478765270423, + ], + [ + 13.369645246058349, + 52.09333994629797, + ], + [ + 13.370739850531672, + 52.091931680071525, + ], + [ + 13.37197614631329, + 52.090568407815034, + ], + [ + 13.37334924552245, + 52.08925550537554, + ], + [ + 13.374853722228517, + 52.08799814950988, + ], + [ + 13.376483633973454, + 52.08680129752792, + ], + [ + 13.37823254530193, + 52.08566966780564, + ], + [ + 13.380093553204972, + 52.08460772124343, + ], + [ + 13.382059314376058, + 52.08361964374162, + ], + [ + 13.38412207417185, + 52.082709329761386, + ], + [ + 13.386273697163654, + 52.081880367034174, + ], + [ + 13.388505699159829, + 52.08113602247915, + ], + [ + 13.390809280574116, + 52.08047922938286, + ], + [ + 13.393175361010037, + 52.07991257589059, + ], + [ + 13.395594614927099, + 52.079438294853745, + ], + [ + 13.398057508250726, + 52.07905825507252, + ], + [ + 13.400554335784536, + 52.07877395396719, + ], + [ + 13.40307525928059, + 52.07858651170677, + ], + [ + 13.405610346021094, + 52.07849666681696, + ], + [ + 13.408149607763091, + 52.07850477328491, + ], + [ + 13.410683039896456, + 52.07861079917137, + ], + [ + 13.413200660664808, + 52.07881432673595, + ], + [ + 13.415692550298555, + 52.0791145540748, + ], + [ + 13.41814888990988, + 52.07951029826449, + ], + [ + 13.42056, + 52.08, + ], + [ + 13.42056, + 52.08, + ], + [ + 13.44667, + 52.08583, + ], + [ + 13.44667, + 52.08583, + ], + [ + 13.449012357229716, + 52.08641947214068, + ], + [ + 13.451305278698477, + 52.08709031923285, + ], + [ + 13.45352519771928, + 52.08784826736463, + ], + [ + 13.455663362112212, + 52.08869032961765, + ], + [ + 13.457711340500346, + 52.08961318741893, + ], + [ + 13.459661055474358, + 52.090613203564374, + ], + [ + 13.46150481539093, + 52.09168643649613, + ], + [ + 13.46323534468071, + 52.09282865577859, + ], + [ + 13.464845812546967, + 52.094035358713256, + ], + [ + 13.466329859941927, + 52.09530178802823, + ], + [ + 13.467681624714062, + 52.09662295057365, + ], + [ + 13.46889576482627, + 52.09799363695059, + ], + [ + 13.469967479552084, + 52.099408441997376, + ], + [ + 13.470892528564416, + 52.10086178605313, + ], + [ + 13.47166724883932, + 52.102347936916246, + ], + [ + 13.472288569305412, + 52.1038610324118, + ], + [ + 13.472754023178076, + 52.10539510347964, + ], + [ + 13.47306175792645, + 52.106944097693095, + ], + [ + 13.4732105428302, + 52.10850190311585, + ], + [ + 13.473199774092402, + 52.11006237240325, + ], + [ + 13.473029477484301, + 52.111619347053534, + ], + [ + 13.47270030850744, + 52.11316668171313, + ], + [ + 13.472213550068297, + 52.114698268440215, + ], + [ + 13.471571107670504, + 52.11620806083068, + ], + [ + 13.470775502139611, + 52.11769009791086, + ], + [ + 13.46982985990518, + 52.1191385277023, + ], + [ + 13.468737900874972, + 52.12054763036492, + ], + [ + 13.46750392394565, + 52.121911840826584, + ], + [ + 13.46613279020421, + 52.12322577080872, + ], + [ + 13.46462990388369, + 52.12448423016019, + ], + [ + 13.463001191146198, + 52.12568224741412, + ], + [ + 13.461253076775103, + 52.12681508948538, + ], + [ + 13.4593924588672, + 52.12787828042974, + ], + [ + 13.457426681623877, + 52.12886761918941, + ], + [ + 13.455363506348448, + 52.129779196253736, + ], + [ + 13.453211080764396, + 52.13060940916787, + ], + [ + 13.450977906776412, + 52.131354976827005, + ], + [ + 13.448672806802753, + 52.1320129524987, + ], + [ + 13.446304888813629, + 52.13258073552044, + ], + [ + 13.443883510215827, + 52.13305608162545, + ], + [ + 13.441418240728828, + 52.133437111854875, + ], + [ + 13.43891882440197, + 52.13372232002039, + ], + [ + 13.436395140926008, + 52.133910578686915, + ], + [ + 13.4338571663954, + 52.134001143651325, + ], + [ + 13.431314933680142, + 52.13399365689897, + ], + [ + 13.428778492567556, + 52.13388814802601, + ], + [ + 13.426257869835572, + 52.1336850341218, + ], + [ + 13.423763029419188, + 52.133385118111924, + ], + [ + 13.421303832831581, + 52.132989585568396, + ], + [ + 13.41889, + 52.1325, + ], + [ + 13.41889, + 52.1325, + ], + [ + 13.39278, + 52.12667, + ], + ], + ], + }, + }, + ], } diff --git a/tests/fixtures/results/aspc-with-circular-geometry.js b/tests/fixtures/results/aspc-with-circular-geometry.js index 4c07fe6..e8aaf15 100644 --- a/tests/fixtures/results/aspc-with-circular-geometry.js +++ b/tests/fixtures/results/aspc-with-circular-geometry.js @@ -1,132 +1,433 @@ module.exports = { - type: 'FeatureCollection', - features: [ - { - type: 'Feature', - // IMPORTANT feature Id value changes every time => remove for comparison - // id: 'da2c17bf-cef1-4460-972d-572087e40edd', - properties: { - name: 'ED-R3 Geesthacht H24', - class: 'R', - upperCeiling: { - value: 2200, - unit: 'FT', - referenceDatum: 'MSL', - }, - lowerCeiling: { - value: 0, - unit: 'FT', - referenceDatum: 'GND', - }, - }, - geometry: { - type: 'Polygon', - coordinates: [ - [ - [10.419444444444444, 53.425265398894226], - [10.417513856061632, 53.425229231113505], - [10.415590896649324, 53.425120870693235], - [10.413683164914845, 53.42494074583215], - [10.411798199161039, 53.424689568307244], - [10.409943447388256, 53.424368330650445], - [10.408126237759891, 53.423978302211665], - [10.406353749550334, 53.423521024124554], - [10.404632984692013, 53.422998303194774], - [10.402970740035723, 53.42241220473559], - [10.401373580435395, 53.421765044379555], - [10.39984781276498, 53.42105937889916], - [10.39839946097114, 53.420297996073394], - [10.397034242261128, 53.41948390364081], - [10.395757544520418, 53.418620317383414], - [10.394574405049493, 53.417710648389246], - [10.393489490703729, 53.416758489544385], - [10.392507079514411, 53.415767601308765], - [10.391631043862784, 53.41474189683237], - [10.390864835272643, 53.41368542647132], - [10.390211470880299, 53.4126023617656], - [10.389673521633815, 53.411496978942324], - [10.389253102266473, 53.41037364200995], - [10.388951863082056, 53.4092367855109], - [10.388770983582365, 53.40809089700086], - [10.38871116795986, 53.406940499324264], - [10.388772642470888, 53.40579013275609], - [10.388955154697452, 53.404644337080775], - [10.389257974698042, 53.403507633678686], - [10.389679898040448, 53.40238450769107], - [10.390219250702316, 53.401279390333606], - [10.390873895817679, 53.400196641428245], - [10.3916412422407, 53.399140532221715], - [10.392518254890767, 53.39811522855839], - [10.393501466836234, 53.39712477447334], - [10.394586993067437, 53.39617307626972], - [10.395770545903282, 53.39526388714288], - [10.397047451969366, 53.39440079241113], - [10.398412670679768, 53.39358719541083], - [10.399860814148997, 53.39282630411075], - [10.401386168455177, 53.39212111849776], - [10.402982716170639, 53.391474418783076], - [10.404644160071202, 53.39088875447459], - [10.406363947931323, 53.39036643435803], - [10.408135298308052, 53.38990951742559], - [10.409951227213254, 53.38951980478731], - [10.411804575570319, 53.38919883259646], - [10.413688037348557, 53.38894786601645], - [10.41559418826623, 53.3887678942524], - [10.417515514950932, 53.38865962666691], - [10.419444444444444, 53.38862348999464], - [10.421373373937959, 53.38865962666691], - [10.42329470062266, 53.3887678942524], - [10.425200851540335, 53.38894786601645], - [10.427084313318574, 53.38919883259646], - [10.428937661675636, 53.38951980478731], - [10.43075359058084, 53.38990951742559], - [10.432524940957567, 53.39036643435803], - [10.434244728817688, 53.39088875447459], - [10.435906172718253, 53.391474418783076], - [10.437502720433713, 53.39212111849776], - [10.439028074739895, 53.39282630411075], - [10.44047621820912, 53.39358719541083], - [10.441841436919525, 53.39440079241113], - [10.443118342985608, 53.39526388714288], - [10.444301895821456, 53.39617307626972], - [10.445387422052658, 53.39712477447334], - [10.446370633998121, 53.39811522855839], - [10.447247646648192, 53.399140532221715], - [10.448014993071213, 53.400196641428245], - [10.448669638186574, 53.401279390333606], - [10.44920899084844, 53.40238450769107], - [10.44963091419085, 53.403507633678686], - [10.449933734191436, 53.404644337080775], - [10.450116246418004, 53.40579013275609], - [10.45017772092903, 53.406940499324264], - [10.450117905306527, 53.40809089700086], - [10.449937025806836, 53.4092367855109], - [10.449635786622418, 53.41037364200995], - [10.449215367255077, 53.411496978942324], - [10.448677418008593, 53.4126023617656], - [10.448024053616246, 53.41368542647132], - [10.447257845026108, 53.41474189683237], - [10.446381809374477, 53.415767601308765], - [10.445399398185163, 53.416758489544385], - [10.444314483839399, 53.417710648389246], - [10.443131344368473, 53.418620317383414], - [10.441854646627762, 53.41948390364081], - [10.440489427917752, 53.420297996073394], - [10.43904107612391, 53.42105937889916], - [10.437515308453497, 53.421765044379555], - [10.435918148853169, 53.42241220473559], - [10.43425590419688, 53.422998303194774], - [10.432535139338558, 53.423521024124554], - [10.430762651129001, 53.423978302211665], - [10.428945441500636, 53.424368330650445], - [10.42709068972785, 53.424689568307244], - [10.425205723974047, 53.42494074583215], - [10.423297992239565, 53.425120870693235], - [10.421375032827259, 53.425229231113505], - [10.419444444444444, 53.425265398894226], - ], - ], - }, + type: "FeatureCollection", + features: [ + { + type: "Feature", + properties: { + name: "ED-R3 Geesthacht H24", + class: "R", + upperCeiling: { + value: 2200, + unit: "FT", + referenceDatum: "MSL", }, - ], + lowerCeiling: { + value: 0, + unit: "FT", + referenceDatum: "GND", + }, + }, + geometry: { + type: "Polygon", + coordinates: [ + [ + [ + 10.419439999999998, + 53.4252609544498, + ], + [ + 10.417509411819019, + 53.42522478666907, + ], + [ + 10.41558645260774, + 53.4251164262488, + ], + [ + 10.413678721072701, + 53.424936301387724, + ], + [ + 10.41179375551595, + 53.42468512386286, + ], + [ + 10.409939003937055, + 53.42436388620606, + ], + [ + 10.408121794498646, + 53.42397385776731, + ], + [ + 10.406349306474361, + 53.423516579680225, + ], + [ + 10.404628541795894, + 53.42299385875048, + ], + [ + 10.402966297313332, + 53.42240776029133, + ], + [ + 10.401369137879916, + 53.42176059993533, + ], + [ + 10.39984337036894, + 53.421054934454986, + ], + [ + 10.398395018726434, + 53.420293551629264, + ], + [ + 10.397029800159054, + 53.419479459196715, + ], + [ + 10.395753102551708, + 53.418615872939355, + ], + [ + 10.394569963204358, + 53.41770620394522, + ], + [ + 10.393485048971892, + 53.4167540451004, + ], + [ + 10.392502637885148, + 53.41576315686481, + ], + [ + 10.391626602324964, + 53.41473745238846, + ], + [ + 10.39086039381478, + 53.41368098202743, + ], + [ + 10.39020702949059, + 53.41259791732174, + ], + [ + 10.389669080300195, + 53.41149253449849, + ], + [ + 10.389248660976655, + 53.41036919756612, + ], + [ + 10.388947421823579, + 53.40923234106709, + ], + [ + 10.388766542342657, + 53.40808645255706, + ], + [ + 10.388706726726266, + 53.406936054880454, + ], + [ + 10.388768201230736, + 53.40578568831229, + ], + [ + 10.388950713438101, + 53.40463989263697, + ], + [ + 10.389253533406924, + 53.40350318923486, + ], + [ + 10.38967545670513, + 53.402380063247215, + ], + [ + 10.390214809310535, + 53.40127494588974, + ], + [ + 10.3908694543574, + 53.40019219698435, + ], + [ + 10.391636800700159, + 53.39913608777779, + ], + [ + 10.392513813258525, + 53.39811078411444, + ], + [ + 10.393497025101203, + 53.39712033002935, + ], + [ + 10.394582551218944, + 53.396168631825695, + ], + [ + 10.395766103931107, + 53.39525944269882, + ], + [ + 10.39704300986377, + 53.39439634796702, + ], + [ + 10.398408228431544, + 53.393582750966694, + ], + [ + 10.399856371749491, + 53.39282185966657, + ], + [ + 10.401381725896348, + 53.39211667405355, + ], + [ + 10.402978273445056, + 53.391469974338825, + ], + [ + 10.404639717172108, + 53.390884310030295, + ], + [ + 10.406359504852633, + 53.3903619899137, + ], + [ + 10.40813085504439, + 53.389905072981236, + ], + [ + 10.40994678375998, + 53.38951536034293, + ], + [ + 10.41180013192353, + 53.38919438815205, + ], + [ + 10.413683593505114, + 53.38894342157203, + ], + [ + 10.415589744223771, + 53.388763449807975, + ], + [ + 10.417511070707876, + 53.38865518222247, + ], + [ + 10.419439999999998, + 53.3886190455502, + ], + [ + 10.421368929292122, + 53.38865518222247, + ], + [ + 10.423290255776223, + 53.388763449807975, + ], + [ + 10.425196406494882, + 53.38894342157203, + ], + [ + 10.427079868076467, + 53.38919438815205, + ], + [ + 10.428933216240019, + 53.38951536034293, + ], + [ + 10.430749144955607, + 53.389905072981236, + ], + [ + 10.432520495147365, + 53.3903619899137, + ], + [ + 10.43424028282789, + 53.390884310030295, + ], + [ + 10.435901726554942, + 53.391469974338825, + ], + [ + 10.43749827410365, + 53.39211667405355, + ], + [ + 10.439023628250505, + 53.39282185966657, + ], + [ + 10.440471771568454, + 53.393582750966694, + ], + [ + 10.441836990136228, + 53.39439634796702, + ], + [ + 10.443113896068889, + 53.39525944269882, + ], + [ + 10.44429744878105, + 53.396168631825695, + ], + [ + 10.445382974898795, + 53.39712033002935, + ], + [ + 10.446366186741473, + 53.39811078411444, + ], + [ + 10.447243199299836, + 53.39913608777779, + ], + [ + 10.448010545642598, + 53.40019219698435, + ], + [ + 10.44866519068946, + 53.40127494588974, + ], + [ + 10.449204543294869, + 53.402380063247215, + ], + [ + 10.44962646659307, + 53.40350318923486, + ], + [ + 10.449929286561897, + 53.40463989263697, + ], + [ + 10.450111798769262, + 53.40578568831229, + ], + [ + 10.450173273273732, + 53.406936054880454, + ], + [ + 10.450113457657341, + 53.40808645255706, + ], + [ + 10.449932578176417, + 53.40923234106709, + ], + [ + 10.449631339023343, + 53.41036919756612, + ], + [ + 10.449210919699803, + 53.41149253449849, + ], + [ + 10.448672970509406, + 53.41259791732174, + ], + [ + 10.448019606185218, + 53.41368098202743, + ], + [ + 10.447253397675034, + 53.41473745238846, + ], + [ + 10.44637736211485, + 53.41576315686481, + ], + [ + 10.445394951028105, + 53.4167540451004, + ], + [ + 10.44431003679564, + 53.41770620394522, + ], + [ + 10.44312689744829, + 53.418615872939355, + ], + [ + 10.441850199840943, + 53.419479459196715, + ], + [ + 10.440484981273562, + 53.420293551629264, + ], + [ + 10.439036629631056, + 53.421054934454986, + ], + [ + 10.43751086212008, + 53.42176059993533, + ], + [ + 10.435913702686664, + 53.42240776029133, + ], + [ + 10.434251458204102, + 53.42299385875048, + ], + [ + 10.432530693525635, + 53.423516579680225, + ], + [ + 10.43075820550135, + 53.42397385776731, + ], + [ + 10.428940996062943, + 53.42436388620606, + ], + [ + 10.427086244484048, + 53.42468512386286, + ], + [ + 10.425201278927297, + 53.424936301387724, + ], + [ + 10.423293547392253, + 53.4251164262488, + ], + [ + 10.421370588180977, + 53.42522478666907, + ], + [ + 10.419439999999998, + 53.4252609544498, + ], + ], + ], + }, + }, + ], } diff --git a/tests/fixtures/results/aspc-with-simple-polygon.js b/tests/fixtures/results/aspc-with-simple-polygon.js index 1fee0e9..5f690cf 100644 --- a/tests/fixtures/results/aspc-with-simple-polygon.js +++ b/tests/fixtures/results/aspc-with-simple-polygon.js @@ -1,62 +1,61 @@ module.exports = { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "id": "80375e33-8ee0-4072-8b0f-511e40fd4b78", - "properties": { - "name": "ED-R10B Todendorf-Putlos MON-SAT+", - "class": "R", - "upperCeiling": { - "value": 40000, - "unit": "FT", - "referenceDatum": "MSL" - }, - "lowerCeiling": { - "value": 0, - "unit": "FT", - "referenceDatum": "GND" - } - }, - "geometry": { - "type": "Polygon", - "coordinates": [ - [ - [ - 10.666666666666666, - 54.416666666666664 - ], - [ - 10.666666666666666, - 54.333333333333336 - ], - [ - 10.666666666666666, - 54.25527777777778 - ], - [ - 10.683333333333334, - 54.25 - ], - [ - 10.883333333333333, - 54.325 - ], - [ - 10.883333333333333, - 54.43333333333333 - ], - [ - 10.833333333333334, - 54.416666666666664 - ], - [ - 10.666666666666666, - 54.416666666666664 - ] - ] - ] - } - } - ] + type: "FeatureCollection", + features: [ + { + type: "Feature", + properties: { + name: "ED-R10B Todendorf-Putlos MON-SAT+", + class: "R", + upperCeiling: { + value: 40000, + unit: "FT", + referenceDatum: "MSL", + }, + lowerCeiling: { + value: 0, + unit: "FT", + referenceDatum: "GND", + }, + }, + geometry: { + type: "Polygon", + coordinates: [ + [ + [ + 10.66667, + 54.41667, + ], + [ + 10.66667, + 54.33333, + ], + [ + 10.66667, + 54.25528, + ], + [ + 10.68333, + 54.25, + ], + [ + 10.88333, + 54.325, + ], + [ + 10.88333, + 54.43333, + ], + [ + 10.83333, + 54.41667, + ], + [ + 10.66667, + 54.41667, + ], + ], + ], + }, + }, + ], } diff --git a/tests/fixtures/results/aspc-with-very-small-circular-geometry.js b/tests/fixtures/results/aspc-with-very-small-circular-geometry.js index 3fd07f5..5219ca1 100644 --- a/tests/fixtures/results/aspc-with-very-small-circular-geometry.js +++ b/tests/fixtures/results/aspc-with-very-small-circular-geometry.js @@ -1,130 +1,433 @@ module.exports = { - type: 'FeatureCollection', - features: [ - { - type: 'Feature', - properties: { - name: 'Lampedusa(LaserBeam)', - class: 'Q', - upperCeiling: { - value: 999, - unit: 'FL', - referenceDatum: 'STD', - }, - lowerCeiling: { - value: 0, - unit: 'FT', - referenceDatum: 'GND', - }, - }, - geometry: { - type: 'Polygon', - coordinates: [ - [ - [12.630555555555556, 35.51836014854849], - [12.630553486897876, 35.51836009563477], - [12.630551426404253, 35.518359937102424], - [12.63054938220652, 35.518359673577145], - [12.630547362372198, 35.518359306098915], - [12.630545374872659, 35.518358836118004], - [12.630543427551661, 35.51835826548923], - [12.630541528094403, 35.518357596464604], - [12.63053968399717, 35.51835683168446], - [12.630537902537785, 35.51835597416702], - [12.630536190746854, 35.51835502729655], - [12.630534555380038, 35.5183539948099], - [12.630533002891385, 35.51835288078182], - [12.63053153940786, 35.51835168960888], - [12.630530170705162, 35.5183504259921], - [12.630528902184935, 35.5183490949184], - [12.630527738853448, 35.51834770164093], - [12.630526685301833, 35.518346251658315], - [12.630525745687976, 35.51834475069297], - [12.630524923720097, 35.51834320466855], - [12.630524222642123, 35.51834161968647], - [12.630523645220883, 35.518340002001956], - [12.630523193735186, 35.518338357999276], - [12.630522869966834, 35.51833669416654], - [12.630522675193582, 35.518335017070164], - [12.630522610184107, 35.51833333332885], - [12.630522675194964, 35.51833164958757], - [12.630522869969571, 35.5183299724913], - [12.630523193739238, 35.51832830865875], - [12.630523645226186, 35.5183266646563], - [12.630524222648594, 35.518325046972095], - [12.63052492372763, 35.51832346199038], - [12.630525745696456, 35.51832191596636], - [12.630526685311127, 35.51832041500147], - [12.630527738863407, 35.51831896501935], - [12.630528902195401, 35.51831757174241], - [12.630530170715973, 35.51831624066925], - [12.630531539418843, 35.51831497705302], - [12.630533002902371, 35.51831378588064], - [12.630534555390849, 35.51831267185313], - [12.630536190757322, 35.51831163936702], - [12.630537902547744, 35.51831069249707], - [12.630539684006463, 35.51830983498013], - [12.630541528102881, 35.51830907020044], - [12.630543427559196, 35.51830840117622], - [12.630545374879127, 35.5183078305478], - [12.630547362377499, 35.5183073605672], - [12.63054938221057, 35.51830699308921], - [12.63055142640699, 35.518306729564095], - [12.630553486899258, 35.518306571031864], - [12.630555555555556, 35.51830651811819], - [12.630557624211857, 35.518306571031864], - [12.630559684704123, 35.518306729564095], - [12.630561728900544, 35.51830699308921], - [12.630563748733614, 35.5183073605672], - [12.630565736231986, 35.5183078305478], - [12.630567683551917, 35.51830840117622], - [12.630569583008231, 35.51830907020044], - [12.630571427104652, 35.51830983498013], - [12.63057320856337, 35.51831069249707], - [12.630574920353792, 35.51831163936702], - [12.630576555720264, 35.51831267185313], - [12.630578108208745, 35.51831378588064], - [12.630579571692271, 35.51831497705302], - [12.63058094039514, 35.51831624066925], - [12.630582208915712, 35.51831757174241], - [12.630583372247708, 35.51831896501935], - [12.630584425799988, 35.51832041500147], - [12.630585365414657, 35.51832191596636], - [12.630586187383482, 35.51832346199038], - [12.63058688846252, 35.518325046972095], - [12.630587465884927, 35.5183266646563], - [12.630587917371875, 35.51832830865875], - [12.630588241141544, 35.5183299724913], - [12.630588435916149, 35.51833164958757], - [12.630588500927006, 35.51833333332885], - [12.63058843591753, 35.518335017070164], - [12.630588241144281, 35.51833669416654], - [12.630587917375927, 35.518338357999276], - [12.63058746589023, 35.518340002001956], - [12.63058688846899, 35.51834161968647], - [12.630586187391016, 35.51834320466855], - [12.630585365423137, 35.51834475069297], - [12.63058442580928, 35.518346251658315], - [12.630583372257668, 35.51834770164093], - [12.630582208926178, 35.5183490949184], - [12.63058094040595, 35.5183504259921], - [12.630579571703253, 35.51835168960888], - [12.630578108219728, 35.51835288078182], - [12.630576555731075, 35.5183539948099], - [12.630574920364259, 35.51835502729655], - [12.630573208573328, 35.51835597416702], - [12.630571427113942, 35.51835683168446], - [12.630569583016714, 35.518357596464604], - [12.630567683559452, 35.51835826548923], - [12.630565736238454, 35.518358836118004], - [12.630563748738915, 35.518359306098915], - [12.630561728904594, 35.518359673577145], - [12.63055968470686, 35.518359937102424], - [12.630557624213237, 35.51836009563477], - [12.630555555555556, 35.51836014854849], - ], - ], - }, + type: "FeatureCollection", + features: [ + { + type: "Feature", + properties: { + name: "Lampedusa(LaserBeam)", + class: "Q", + upperCeiling: { + value: 999, + unit: "FL", + referenceDatum: "STD", }, - ], + lowerCeiling: { + value: 0, + unit: "FT", + referenceDatum: "GND", + }, + }, + geometry: { + type: "Polygon", + coordinates: [ + [ + [ + 12.630559999999997, + 35.51835681521515, + ], + [ + 12.630557931342404, + 35.51835676230143, + ], + [ + 12.630555870848866, + 35.5183566037691, + ], + [ + 12.630553826651216, + 35.518356340243805, + ], + [ + 12.630551806816978, + 35.518355972765576, + ], + [ + 12.63054981931752, + 35.51835550278467, + ], + [ + 12.630547871996606, + 35.5183549321559, + ], + [ + 12.630545972539425, + 35.518354263131265, + ], + [ + 12.63054412844227, + 35.51835349835112, + ], + [ + 12.63054234698296, + 35.51835264083368, + ], + [ + 12.630540635192098, + 35.51835169396321, + ], + [ + 12.630538999825351, + 35.51835066147655, + ], + [ + 12.630537447336764, + 35.51834954744848, + ], + [ + 12.630535983853298, + 35.51834835627554, + ], + [ + 12.630534615150655, + 35.518347092658765, + ], + [ + 12.630533346630482, + 35.51834576158507, + ], + [ + 12.630532183299044, + 35.51834436830759, + ], + [ + 12.630531129747473, + 35.518342918324976, + ], + [ + 12.630530190133657, + 35.51834141735964, + ], + [ + 12.63052936816581, + 35.51833987133521, + ], + [ + 12.630528667087866, + 35.518338286353135, + ], + [ + 12.630528089666647, + 35.518336668668624, + ], + [ + 12.63052763818097, + 35.51833502466594, + ], + [ + 12.630527314412632, + 35.51833336083322, + ], + [ + 12.630527119639389, + 35.51833168373683, + ], + [ + 12.630527054629917, + 35.51832999999552, + ], + [ + 12.63052711964077, + 35.51832831625424, + ], + [ + 12.630527314415367, + 35.51832663915796, + ], + [ + 12.630527638185024, + 35.51832497532541, + ], + [ + 12.630528089671952, + 35.51832333132296, + ], + [ + 12.630528667094334, + 35.51832171363876, + ], + [ + 12.630529368173343, + 35.518320128657045, + ], + [ + 12.630530190142135, + 35.51831858263302, + ], + [ + 12.630531129756765, + 35.51831708166814, + ], + [ + 12.630532183309002, + 35.51831563168602, + ], + [ + 12.63053334664095, + 35.51831423840907, + ], + [ + 12.630534615161466, + 35.51831290733592, + ], + [ + 12.630535983864283, + 35.5183116437197, + ], + [ + 12.630537447347747, + 35.51831045254732, + ], + [ + 12.630538999836162, + 35.518309338519806, + ], + [ + 12.630540635202566, + 35.51830830603368, + ], + [ + 12.630542346992918, + 35.51830735916373, + ], + [ + 12.630544128451563, + 35.5183065016468, + ], + [ + 12.630545972547905, + 35.5183057368671, + ], + [ + 12.63054787200414, + 35.51830506784288, + ], + [ + 12.630549819323992, + 35.51830449721446, + ], + [ + 12.63055180682228, + 35.51830402723387, + ], + [ + 12.63055382665527, + 35.51830365975588, + ], + [ + 12.630555870851603, + 35.518303396230756, + ], + [ + 12.630557931343784, + 35.51830323769853, + ], + [ + 12.630559999999997, + 35.51830318478485, + ], + [ + 12.63056206865621, + 35.51830323769853, + ], + [ + 12.630564129148393, + 35.518303396230756, + ], + [ + 12.630566173344727, + 35.51830365975588, + ], + [ + 12.630568193177714, + 35.51830402723387, + ], + [ + 12.630570180676004, + 35.51830449721446, + ], + [ + 12.630572127995855, + 35.51830506784288, + ], + [ + 12.630574027452091, + 35.5183057368671, + ], + [ + 12.63057587154843, + 35.5183065016468, + ], + [ + 12.630577653007078, + 35.51830735916373, + ], + [ + 12.630579364797429, + 35.51830830603368, + ], + [ + 12.630581000163833, + 35.518309338519806, + ], + [ + 12.630582552652248, + 35.51831045254732, + ], + [ + 12.630584016135714, + 35.5183116437197, + ], + [ + 12.630585384838527, + 35.51831290733592, + ], + [ + 12.630586653359044, + 35.51831423840907, + ], + [ + 12.630587816690994, + 35.51831563168602, + ], + [ + 12.63058887024323, + 35.51831708166814, + ], + [ + 12.630589809857861, + 35.51831858263302, + ], + [ + 12.630590631826651, + 35.518320128657045, + ], + [ + 12.63059133290566, + 35.51832171363876, + ], + [ + 12.630591910328045, + 35.51832333132296, + ], + [ + 12.630592361814973, + 35.51832497532541, + ], + [ + 12.630592685584626, + 35.51832663915796, + ], + [ + 12.630592880359227, + 35.51832831625424, + ], + [ + 12.630592945370077, + 35.51832999999552, + ], + [ + 12.630592880360604, + 35.51833168373683, + ], + [ + 12.630592685587363, + 35.51833336083322, + ], + [ + 12.630592361819023, + 35.51833502466594, + ], + [ + 12.630591910333345, + 35.518336668668624, + ], + [ + 12.630591332912129, + 35.518338286353135, + ], + [ + 12.630590631834183, + 35.51833987133521, + ], + [ + 12.63058980986634, + 35.51834141735964, + ], + [ + 12.63058887025252, + 35.518342918324976, + ], + [ + 12.630587816700952, + 35.51834436830759, + ], + [ + 12.630586653369512, + 35.51834576158507, + ], + [ + 12.630585384849338, + 35.518347092658765, + ], + [ + 12.630584016146697, + 35.51834835627554, + ], + [ + 12.630582552663233, + 35.51834954744848, + ], + [ + 12.630581000174644, + 35.51835066147655, + ], + [ + 12.630579364807895, + 35.51835169396321, + ], + [ + 12.630577653017037, + 35.51835264083368, + ], + [ + 12.630575871557726, + 35.51835349835112, + ], + [ + 12.630574027460572, + 35.518354263131265, + ], + [ + 12.630572128003388, + 35.5183549321559, + ], + [ + 12.630570180682472, + 35.51835550278467, + ], + [ + 12.630568193183018, + 35.518355972765576, + ], + [ + 12.630566173348777, + 35.518356340243805, + ], + [ + 12.630564129151129, + 35.5183566037691, + ], + [ + 12.630562068657593, + 35.51835676230143, + ], + [ + 12.630559999999997, + 35.51835681521515, + ], + ], + ], + }, + }, + ], } diff --git a/tests/fixtures/results/handle-inline-comments.js b/tests/fixtures/results/handle-inline-comments.js index d2fc10a..181dc13 100644 --- a/tests/fixtures/results/handle-inline-comments.js +++ b/tests/fixtures/results/handle-inline-comments.js @@ -1,36 +1,53 @@ -module.exports = { - type: 'FeatureCollection', - features: [ - { - type: 'Feature', - id: '60091359-1b63-4c32-b42c-cdde70fa85b5', - properties: { - name: 'TMP JSDF X-12-2 till 31Mar22 Height by NOTAM', - class: 'R', - upperCeiling: { - value: 240, - unit: 'FL', - referenceDatum: 'STD', - }, - lowerCeiling: { - value: 0, - unit: 'FT', - referenceDatum: 'GND', - }, - }, - geometry: { - type: 'Polygon', - coordinates: [ - [ - [133.6638888888889, 36.38444444444444], - [132.67749999999998, 36.52055555555555], - [132.76333333333332, 36.265], - [132.83944444444447, 35.87972222222222], - [133.6638888888889, 36.20666666666667], - [133.6638888888889, 36.38444444444444], - ], - ], - }, +module.exports ={ + type: "FeatureCollection", + features: [ + { + type: "Feature", + properties: { + name: "TMP JSDF X-12-2 till 31Mar22 Height by NOTAM", + class: "R", + upperCeiling: { + value: 240, + unit: "FL", + referenceDatum: "STD", }, - ], + lowerCeiling: { + value: 0, + unit: "FT", + referenceDatum: "GND", + }, + }, + geometry: { + type: "Polygon", + coordinates: [ + [ + [ + 133.66389, + 36.38444, + ], + [ + 132.6775, + 36.52056, + ], + [ + 132.76333, + 36.265, + ], + [ + 132.83944, + 35.87972, + ], + [ + 133.66389, + 36.20667, + ], + [ + 133.66389, + 36.38444, + ], + ], + ], + }, + }, + ], } diff --git a/tests/fixtures/results/simple-poly-to-linestring.js b/tests/fixtures/results/simple-poly-to-linestring.js index f3e9d71..a024cad 100644 --- a/tests/fixtures/results/simple-poly-to-linestring.js +++ b/tests/fixtures/results/simple-poly-to-linestring.js @@ -1,60 +1,59 @@ module.exports = { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "id": "83bc2f23-364e-4b69-8934-a80ccb65e57e", - "properties": { - "name": "ED-R10B Todendorf-Putlos MON-SAT+", - "class": "R", - "upperCeiling": { - "value": 40000, - "unit": "FT", - "referenceDatum": "MSL" - }, - "lowerCeiling": { - "value": 0, - "unit": "FT", - "referenceDatum": "GND" - } - }, - "geometry": { - "type": "LineString", - "coordinates": [ - [ - 10.666666666666666, - 54.416666666666664 - ], - [ - 10.833333333333334, - 54.416666666666664 - ], - [ - 10.883333333333333, - 54.43333333333333 - ], - [ - 10.883333333333333, - 54.325 - ], - [ - 10.683333333333334, - 54.25 - ], - [ - 10.666666666666666, - 54.25527777777778 - ], - [ - 10.666666666666666, - 54.333333333333336 - ], - [ - 10.666666666666666, - 54.416666666666664 - ] - ] - } - } - ] + type: "FeatureCollection", + features: [ + { + type: "Feature", + properties: { + name: "ED-R10B Todendorf-Putlos MON-SAT+", + class: "R", + upperCeiling: { + value: 40000, + unit: "FT", + referenceDatum: "MSL", + }, + lowerCeiling: { + value: 0, + unit: "FT", + referenceDatum: "GND", + }, + }, + geometry: { + type: "LineString", + coordinates: [ + [ + 10.66667, + 54.41667, + ], + [ + 10.83333, + 54.41667, + ], + [ + 10.88333, + 54.43333, + ], + [ + 10.88333, + 54.325, + ], + [ + 10.68333, + 54.25, + ], + [ + 10.66667, + 54.25528, + ], + [ + 10.66667, + 54.33333, + ], + [ + 10.66667, + 54.41667, + ], + ], + }, + }, + ], }