Compare commits

...

3 Commits

Author SHA1 Message Date
junh_eee(이준희) 00068f6289 feat/ 제주공항 장애물제한표면 적용 3 weeks ago
junh_eee(이준희) 2e2deddec6 feat/ 제주공항 좌표 파일 생성 3 weeks ago
junh_eee(이준희) 9e005e8862 feat/ 공역관련 테스트 유틸 생성 3 weeks ago
  1. 281
      src/components/map/geojson/_controlArea.json
  2. 562
      src/components/map/geojson/flatJejuAirport.json
  3. 86
      src/components/map/geojson/flatUlsanAirArea.json
  4. 632
      src/components/map/geojson/jejuAirArea.json
  5. 73
      src/components/map/mapbox/MapBoxMap.js
  6. 5
      src/utility/MapUtils.js
  7. 83
      src/utility/airAreaUtil.js
  8. 7
      src/views/control/setting/ControlSetting.js
  9. 57
      test/coordTest.js

281
src/components/map/geojson/_controlArea.json

@ -732,202 +732,6 @@
"type": "0003"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[126.49302049999999, 33.59039132142311, 0],
[126.49652058162755, 33.59034037989149, 0],
[126.50001638656971, 33.590187617541375, 0],
[126.50350364341215, 33.58993322103034, 0],
[126.50697809127597, 33.58957750119874, 0],
[126.51043548506864, 33.589120892686516, 0],
[126.51387160071478, 33.58856395339761, 0],
[126.5172822403602, 33.58790736381239, 0],
[126.5206632375425, 33.58715192614909, 0],
[126.52401046232163, 33.58629856337533, 0],
[126.52731982636419, 33.58534831807094, 0],
[126.53058728797429, 33.58430235114368, 0],
[126.53380885706571, 33.58316194039911, 0],
[126.53698060006784, 33.581928478966994, 0],
[126.54009864476018, 33.580603473585704, 0],
[126.54315918502891, 33.579188542747154, 0],
[126.54615848553917, 33.577685414704426, 0],
[126.5490928863181, 33.57609592534477, 0],
[126.55195880724216, 33.5744220159305, 0],
[126.55475275242301, 33.57266573071086, 0],
[126.55747131448746, 33.57082921440762, 0],
[126.560111178745, 33.56891470957784, 0],
[126.56266912723858, 33.56692455385702, 0],
[126.56514204267312, 33.564861177086, 0],
[126.56752691221742, 33.56272709832555, 0],
[126.56982083117447, 33.560524922761985, 0],
[126.57202100651566, 33.558257338508106, 0],
[126.57412476027481, 33.55592711330321, 0],
[126.57612953279805, 33.55353709111648, 0],
[126.57803288584508, 33.55109018865783, 0],
[126.57983250553892, 33.54858939180082, 0],
[126.58152620515982, 33.546037751921865, 0],
[126.58311192778085, 33.543438382160524, 0],
[126.58458774874148, 33.54079445360535, 0],
[126.58595187795669, 33.53810919141017, 0],
[126.58720266205871, 33.53538587084565, 0],
[126.5883385863691, 33.532627813290844, 0],
[126.58935827669922, 33.52983838217, 0],
[126.59026050097637, 33.5270209788394, 0],
[126.59104417069487, 33.524179038429466, 0],
[126.59170834218978, 33.521316025647145, 0],
[126.59225221773214, 33.51843543054392, 0],
[126.59267514644503, 33.515540764254474, 0],
[126.59297662503914, 33.51263555471136, 0],
[126.59315629836732, 33.509723342340834, 0],
[126.59321395979819, 33.50680767574528, 0],
[126.59314955140785, 33.5038921073773, 0],
[126.59296316399046, 33.500980189210985, 0],
[126.59265503688769, 33.49807546841538, 0],
[126.59222555763728, 33.495181483035644, 0],
[126.59167526144195, 33.49230175768702, 0],
[126.59100483045926, 33.48943979926686, 0],
[126.59021509291357, 33.48659909268996, 0],
[126.58930702203162, 33.48378309665219, 0],
[126.58828173480302, 33.48099523942784, 0],
[126.58714049056792, 33.47823891470537, 0],
[126.58588468943306, 33.4755174774669, 0],
[126.58451587051935, 33.47283423991618, 0],
[126.58303571004225, 33.47019246746004, 0],
[126.58144601922857, 33.46759537474809, 0],
[126.57974874207153, 33.465046121775366, 0],
[126.57794595292752, 33.46254781005271, 0],
[126.57603985395761, 33.46010347884927, 0],
[126.57403277241684, 33.457716101511735, 0],
[126.5719271577949, 33.45538858186464, 0],
[126.56972557881184, 33.45312375069598, 0],
[126.56743072027234, 33.450924362332316, 0],
[126.56504537978277, 33.4487930913075, 0],
[126.56257246433478, 33.44673252912888, 0],
[126.56001498675981, 33.44474518114478, 0],
[126.55737606205882, 33.44283346351705, 0],
[126.55465890361168, 33.44099970030218, 0],
[126.55186681927076, 33.43924612064445, 0],
[126.54900320734366, 33.437574856084375, 0],
[126.54607155246953, 33.43598793798569, 0],
[126.5430754213944, 33.43448729508376, 0],
[126.54001845865007, 33.43307475115841, 0],
[126.53690438214201, 33.431752022833884, 0],
[126.53373697865167, 33.43052071750846, 0],
[126.53052009925783, 33.42938233141609, 0],
[126.52725765468338, 33.4283382478226, 0],
[126.52395361057205, 33.427389735358084, 0],
[126.52061198270147, 33.42653794648801, 0],
[126.51723683213746, 33.42578391612426, 0],
[126.51383226033576, 33.4251285603782, 0],
[126.51040240419678, 33.42457267545686, 0],
[126.50695143107885, 33.4241169367038, 0],
[126.50348353377633, 33.42376189778553, 0],
[126.50000292546788, 33.423507990024675, 0],
[126.4965138346412, 33.42335552188039, 0],
[126.49302049999999, 33.42330467857689, 0],
[126.48952716535878, 33.42335552188039, 0],
[126.4860380745321, 33.423507990024675, 0],
[126.48255746622365, 33.42376189778553, 0],
[126.47908956892114, 33.4241169367038, 0],
[126.4756385958032, 33.42457267545686, 0],
[126.47220873966423, 33.4251285603782, 0],
[126.46880416786253, 33.42578391612426, 0],
[126.46542901729852, 33.42653794648801, 0],
[126.46208738942794, 33.427389735358084, 0],
[126.4587833453166, 33.4283382478226, 0],
[126.45552090074216, 33.42938233141609, 0],
[126.45230402134831, 33.43052071750846, 0],
[126.44913661785797, 33.431752022833884, 0],
[126.44602254134992, 33.43307475115841, 0],
[126.44296557860558, 33.43448729508376, 0],
[126.43996944753046, 33.43598793798569, 0],
[126.43703779265633, 33.437574856084375, 0],
[126.43417418072923, 33.43924612064445, 0],
[126.4313820963883, 33.44099970030218, 0],
[126.42866493794115, 33.44283346351705, 0],
[126.42602601324018, 33.44474518114478, 0],
[126.4234685356652, 33.44673252912888, 0],
[126.42099562021721, 33.4487930913075, 0],
[126.41861027972764, 33.450924362332316, 0],
[126.41631542118814, 33.45312375069598, 0],
[126.41411384220508, 33.45538858186464, 0],
[126.41200822758314, 33.457716101511735, 0],
[126.41000114604238, 33.46010347884927, 0],
[126.40809504707246, 33.46254781005271, 0],
[126.40629225792846, 33.465046121775366, 0],
[126.4045949807714, 33.46759537474809, 0],
[126.40300528995773, 33.47019246746004, 0],
[126.40152512948063, 33.47283423991618, 0],
[126.40015631056693, 33.4755174774669, 0],
[126.39890050943207, 33.47823891470537, 0],
[126.39775926519695, 33.48099523942784, 0],
[126.39673397796837, 33.48378309665219, 0],
[126.39582590708642, 33.48659909268996, 0],
[126.39503616954073, 33.48943979926686, 0],
[126.39436573855804, 33.49230175768702, 0],
[126.39381544236271, 33.495181483035644, 0],
[126.3933859631123, 33.49807546841538, 0],
[126.39307783600951, 33.500980189210985, 0],
[126.39289144859214, 33.5038921073773, 0],
[126.39282704020178, 33.50680767574528, 0],
[126.39288470163265, 33.509723342340834, 0],
[126.39306437496084, 33.51263555471136, 0],
[126.39336585355495, 33.515540764254474, 0],
[126.39378878226785, 33.51843543054392, 0],
[126.39433265781021, 33.521316025647145, 0],
[126.39499682930511, 33.524179038429466, 0],
[126.39578049902362, 33.5270209788394, 0],
[126.39668272330077, 33.52983838217, 0],
[126.39770241363088, 33.532627813290844, 0],
[126.39883833794127, 33.53538587084565, 0],
[126.4000891220433, 33.53810919141017, 0],
[126.4014532512585, 33.54079445360535, 0],
[126.40292907221912, 33.543438382160524, 0],
[126.40451479484017, 33.546037751921865, 0],
[126.40620849446105, 33.54858939180082, 0],
[126.4080081141549, 33.55109018865783, 0],
[126.40991146720194, 33.55353709111648, 0],
[126.41191623972517, 33.55592711330321, 0],
[126.41401999348433, 33.558257338508106, 0],
[126.4162201688255, 33.560524922761985, 0],
[126.41851408778257, 33.56272709832555, 0],
[126.42089895732687, 33.564861177086, 0],
[126.4233718727614, 33.56692455385702, 0],
[126.42592982125498, 33.56891470957784, 0],
[126.42856968551253, 33.57082921440762, 0],
[126.43128824757697, 33.57266573071086, 0],
[126.43408219275783, 33.5744220159305, 0],
[126.43694811368186, 33.57609592534477, 0],
[126.43988251446082, 33.577685414704426, 0],
[126.44288181497107, 33.579188542747154, 0],
[126.4459423552398, 33.580603473585704, 0],
[126.44906039993215, 33.581928478966994, 0],
[126.45223214293428, 33.58316194039911, 0],
[126.4554537120257, 33.58430235114368, 0],
[126.4587211736358, 33.58534831807094, 0],
[126.46203053767834, 33.58629856337533, 0],
[126.46537776245749, 33.58715192614909, 0],
[126.46875875963978, 33.58790736381239, 0],
[126.4721693992852, 33.58856395339761, 0],
[126.47560551493135, 33.589120892686516, 0],
[126.47906290872402, 33.58957750119874, 0],
[126.48253735658784, 33.58993322103034, 0],
[126.48602461343027, 33.590187617541375, 0],
[126.48952041837244, 33.59034037989149, 0],
[126.49302049999999, 33.59039132142311, 0]
]
]
},
"properties": {
"name": "제주국제공항",
"description": "",
"type": "0003"
}
},
{
"type": "Feature",
"geometry": {
@ -1290,91 +1094,6 @@
"type": "0003"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[129.325885, 35.512544, 0],
[129.334653, 35.510984, 0],
[129.343554, 35.510052, 0],
[129.352522, 35.509754, 0],
[129.361487, 35.510092, 0],
[129.370382, 35.511065, 0],
[129.379139, 35.512664, 0],
[129.387692, 35.514878, 0],
[129.395976, 35.51769, 0],
[129.403928, 35.521078, 0],
[129.411488, 35.525017, 0],
[129.420662, 35.53055, 0],
[129.428215, 35.535858, 0],
[129.434395, 35.542284, 0],
[129.440575, 35.549547, 0],
[129.445038, 35.55625, 0],
[129.449071, 35.565034, 0],
[129.451757, 35.572005, 0],
[129.453686, 35.57914, 0],
[129.454843, 35.586385, 0],
[129.455219, 35.593684, 0],
[129.454812, 35.600982, 0],
[129.453623, 35.608224, 0],
[129.451663, 35.615353, 0],
[129.448945, 35.622317, 0],
[129.445491, 35.629061, 0],
[129.441326, 35.635535, 0],
[129.436481, 35.641689, 0],
[129.430995, 35.647476, 0],
[129.424908, 35.652853, 0],
[129.418266, 35.657777, 0],
[129.411121, 35.662212, 0],
[129.403526, 35.666124, 0],
[129.395541, 35.669482, 0],
[129.387224, 35.672262, 0],
[129.378641, 35.674441, 0],
[129.369856, 35.676004, 0],
[129.360936, 35.676939, 0],
[129.354057, 35.6771, 0],
[129.342966, 35.676898, 0],
[129.334053, 35.675924, 0],
[129.325279, 35.674321, 0],
[129.316711, 35.672103, 0],
[129.308413, 35.669285, 0],
[129.300451, 35.665891, 0],
[129.292883, 35.661945, 0],
[129.285768, 35.657478, 0],
[129.279161, 35.652524, 0],
[129.27311, 35.64712, 0],
[129.267663, 35.641308, 0],
[129.262861, 35.635132, 0],
[129.258741, 35.628639, 0],
[129.255332, 35.62188, 0],
[129.251747, 35.61293, 0],
[129.249344, 35.602602, 0],
[129.249254, 35.593219, 0],
[129.24968, 35.585922, 0],
[129.252091, 35.574962, 0],
[129.254494, 35.566305, 0],
[129.259065, 35.557858, 0],
[129.263241, 35.55139, 0],
[129.268093, 35.545243, 0],
[129.273584, 35.539463, 0],
[129.279673, 35.534095, 0],
[129.286313, 35.529178, 0],
[129.293453, 35.52475, 0],
[129.30104, 35.520846, 0],
[129.309014, 35.517494, 0],
[129.317317, 35.51472, 0],
[129.325885, 35.512544, 0]
]
]
},
"properties": {
"name": "울산공항",
"description": "",
"type": "0003"
}
},
{
"type": "Feature",
"geometry": {

562
src/components/map/geojson/flatJejuAirport.json

@ -0,0 +1,562 @@
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[126.49302049999999, 33.59039132142311, 0],
[126.49652058162755, 33.59034037989149, 0],
[126.50001638656971, 33.590187617541375, 0],
[126.50350364341215, 33.58993322103034, 0],
[126.50697809127597, 33.58957750119874, 0],
[126.51043548506864, 33.589120892686516, 0],
[126.51387160071478, 33.58856395339761, 0],
[126.5172822403602, 33.58790736381239, 0],
[126.5206632375425, 33.58715192614909, 0],
[126.52401046232163, 33.58629856337533, 0],
[126.52731982636419, 33.58534831807094, 0],
[126.53058728797429, 33.58430235114368, 0],
[126.53380885706571, 33.58316194039911, 0],
[126.53698060006784, 33.581928478966994, 0],
[126.54009864476018, 33.580603473585704, 0],
[126.54315918502891, 33.579188542747154, 0],
[126.54615848553917, 33.577685414704426, 0],
[126.5490928863181, 33.57609592534477, 0],
[126.55195880724216, 33.5744220159305, 0],
[126.55475275242301, 33.57266573071086, 0],
[126.55747131448746, 33.57082921440762, 0],
[126.560111178745, 33.56891470957784, 0],
[126.56266912723858, 33.56692455385702, 0],
[126.56514204267312, 33.564861177086, 0],
[126.56752691221742, 33.56272709832555, 0],
[126.56982083117447, 33.560524922761985, 0],
[126.57202100651566, 33.558257338508106, 0],
[126.57412476027481, 33.55592711330321, 0],
[126.57612953279805, 33.55353709111648, 0],
[126.57803288584508, 33.55109018865783, 0],
[126.57983250553892, 33.54858939180082, 0],
[126.58152620515982, 33.546037751921865, 0],
[126.58311192778085, 33.543438382160524, 0],
[126.58458774874148, 33.54079445360535, 0],
[126.58595187795669, 33.53810919141017, 0],
[126.58720266205871, 33.53538587084565, 0],
[126.5883385863691, 33.532627813290844, 0],
[126.58935827669922, 33.52983838217, 0],
[126.59026050097637, 33.5270209788394, 0],
[126.59104417069487, 33.524179038429466, 0],
[126.59170834218978, 33.521316025647145, 0],
[126.59225221773214, 33.51843543054392, 0],
[126.59267514644503, 33.515540764254474, 0],
[126.59297662503914, 33.51263555471136, 0],
[126.59315629836732, 33.509723342340834, 0],
[126.59321395979819, 33.50680767574528, 0],
[126.59314955140785, 33.5038921073773, 0],
[126.59296316399046, 33.500980189210985, 0],
[126.59265503688769, 33.49807546841538, 0],
[126.59222555763728, 33.495181483035644, 0],
[126.59167526144195, 33.49230175768702, 0],
[126.59100483045926, 33.48943979926686, 0],
[126.59021509291357, 33.48659909268996, 0],
[126.58930702203162, 33.48378309665219, 0],
[126.58828173480302, 33.48099523942784, 0],
[126.58714049056792, 33.47823891470537, 0],
[126.58588468943306, 33.4755174774669, 0],
[126.58451587051935, 33.47283423991618, 0],
[126.58303571004225, 33.47019246746004, 0],
[126.58144601922857, 33.46759537474809, 0],
[126.57974874207153, 33.465046121775366, 0],
[126.57794595292752, 33.46254781005271, 0],
[126.57603985395761, 33.46010347884927, 0],
[126.57403277241684, 33.457716101511735, 0],
[126.5719271577949, 33.45538858186464, 0],
[126.56972557881184, 33.45312375069598, 0],
[126.56743072027234, 33.450924362332316, 0],
[126.56504537978277, 33.4487930913075, 0],
[126.56257246433478, 33.44673252912888, 0],
[126.56001498675981, 33.44474518114478, 0],
[126.55737606205882, 33.44283346351705, 0],
[126.55465890361168, 33.44099970030218, 0],
[126.55186681927076, 33.43924612064445, 0],
[126.54900320734366, 33.437574856084375, 0],
[126.54607155246953, 33.43598793798569, 0],
[126.5430754213944, 33.43448729508376, 0],
[126.54001845865007, 33.43307475115841, 0],
[126.53690438214201, 33.431752022833884, 0],
[126.53373697865167, 33.43052071750846, 0],
[126.53052009925783, 33.42938233141609, 0],
[126.52725765468338, 33.4283382478226, 0],
[126.52395361057205, 33.427389735358084, 0],
[126.52061198270147, 33.42653794648801, 0],
[126.51723683213746, 33.42578391612426, 0],
[126.51383226033576, 33.4251285603782, 0],
[126.51040240419678, 33.42457267545686, 0],
[126.50695143107885, 33.4241169367038, 0],
[126.50348353377633, 33.42376189778553, 0],
[126.50000292546788, 33.423507990024675, 0],
[126.4965138346412, 33.42335552188039, 0],
[126.49302049999999, 33.42330467857689, 0],
[126.48952716535878, 33.42335552188039, 0],
[126.4860380745321, 33.423507990024675, 0],
[126.48255746622365, 33.42376189778553, 0],
[126.47908956892114, 33.4241169367038, 0],
[126.4756385958032, 33.42457267545686, 0],
[126.47220873966423, 33.4251285603782, 0],
[126.46880416786253, 33.42578391612426, 0],
[126.46542901729852, 33.42653794648801, 0],
[126.46208738942794, 33.427389735358084, 0],
[126.4587833453166, 33.4283382478226, 0],
[126.45552090074216, 33.42938233141609, 0],
[126.45230402134831, 33.43052071750846, 0],
[126.44913661785797, 33.431752022833884, 0],
[126.44602254134992, 33.43307475115841, 0],
[126.44296557860558, 33.43448729508376, 0],
[126.43996944753046, 33.43598793798569, 0],
[126.43703779265633, 33.437574856084375, 0],
[126.43417418072923, 33.43924612064445, 0],
[126.4313820963883, 33.44099970030218, 0],
[126.42866493794115, 33.44283346351705, 0],
[126.42602601324018, 33.44474518114478, 0],
[126.4234685356652, 33.44673252912888, 0],
[126.42099562021721, 33.4487930913075, 0],
[126.41861027972764, 33.450924362332316, 0],
[126.41631542118814, 33.45312375069598, 0],
[126.41411384220508, 33.45538858186464, 0],
[126.41200822758314, 33.457716101511735, 0],
[126.41000114604238, 33.46010347884927, 0],
[126.40809504707246, 33.46254781005271, 0],
[126.40629225792846, 33.465046121775366, 0],
[126.4045949807714, 33.46759537474809, 0],
[126.40300528995773, 33.47019246746004, 0],
[126.40152512948063, 33.47283423991618, 0],
[126.40015631056693, 33.4755174774669, 0],
[126.39890050943207, 33.47823891470537, 0],
[126.39775926519695, 33.48099523942784, 0],
[126.39673397796837, 33.48378309665219, 0],
[126.39582590708642, 33.48659909268996, 0],
[126.39503616954073, 33.48943979926686, 0],
[126.39436573855804, 33.49230175768702, 0],
[126.39381544236271, 33.495181483035644, 0],
[126.3933859631123, 33.49807546841538, 0],
[126.39307783600951, 33.500980189210985, 0],
[126.39289144859214, 33.5038921073773, 0],
[126.39282704020178, 33.50680767574528, 0],
[126.39288470163265, 33.509723342340834, 0],
[126.39306437496084, 33.51263555471136, 0],
[126.39336585355495, 33.515540764254474, 0],
[126.39378878226785, 33.51843543054392, 0],
[126.39433265781021, 33.521316025647145, 0],
[126.39499682930511, 33.524179038429466, 0],
[126.39578049902362, 33.5270209788394, 0],
[126.39668272330077, 33.52983838217, 0],
[126.39770241363088, 33.532627813290844, 0],
[126.39883833794127, 33.53538587084565, 0],
[126.4000891220433, 33.53810919141017, 0],
[126.4014532512585, 33.54079445360535, 0],
[126.40292907221912, 33.543438382160524, 0],
[126.40451479484017, 33.546037751921865, 0],
[126.40620849446105, 33.54858939180082, 0],
[126.4080081141549, 33.55109018865783, 0],
[126.40991146720194, 33.55353709111648, 0],
[126.41191623972517, 33.55592711330321, 0],
[126.41401999348433, 33.558257338508106, 0],
[126.4162201688255, 33.560524922761985, 0],
[126.41851408778257, 33.56272709832555, 0],
[126.42089895732687, 33.564861177086, 0],
[126.4233718727614, 33.56692455385702, 0],
[126.42592982125498, 33.56891470957784, 0],
[126.42856968551253, 33.57082921440762, 0],
[126.43128824757697, 33.57266573071086, 0],
[126.43408219275783, 33.5744220159305, 0],
[126.43694811368186, 33.57609592534477, 0],
[126.43988251446082, 33.577685414704426, 0],
[126.44288181497107, 33.579188542747154, 0],
[126.4459423552398, 33.580603473585704, 0],
[126.44906039993215, 33.581928478966994, 0],
[126.45223214293428, 33.58316194039911, 0],
[126.4554537120257, 33.58430235114368, 0],
[126.4587211736358, 33.58534831807094, 0],
[126.46203053767834, 33.58629856337533, 0],
[126.46537776245749, 33.58715192614909, 0],
[126.46875875963978, 33.58790736381239, 0],
[126.4721693992852, 33.58856395339761, 0],
[126.47560551493135, 33.589120892686516, 0],
[126.47906290872402, 33.58957750119874, 0],
[126.48253735658784, 33.58993322103034, 0],
[126.48602461343027, 33.590187617541375, 0],
[126.48952041837244, 33.59034037989149, 0],
[126.49302049999999, 33.59039132142311, 0]
]
]
},
"properties": {
"name": "원추",
"description": "9.3km",
"type": "0003",
"divCd": "원추"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[126.538427493602, 33.5280000062672, 77.03],
[126.549336124869, 33.531872294019, 117.03],
[126.547318725298, 33.5356843355764, 117.03],
[126.544996541563, 33.5391926488222, 117.03],
[126.542317889515, 33.5425181993202, 117.03],
[126.539303123371, 33.5456354347878, 117.03],
[126.535975074944, 33.5485207047712, 117.03],
[126.533104107146, 33.5506470301044, 117.03],
[126.529277606487, 33.5530606897423, 117.03],
[126.525214275463, 33.5551857157525, 117.03],
[126.520944916618, 33.5570060660592, 117.03],
[126.514684135178, 33.5590166448213, 117.03],
[126.508177146804, 33.5603730008264, 117.03],
[126.501521124932, 33.5610550217542, 117.03],
[126.494815356152, 33.5610525412619, 117.03],
[126.488160043741, 33.5603654254809, 117.03],
[126.481654462031, 33.5590041064186, 117.03],
[126.475395872348, 33.5569888550044, 117.03],
[126.469479506541, 33.5543507706498, 117.03],
[126.438386236486, 33.5383564459621, 117.03],
[126.434465442756, 33.536052281009, 117.03],
[126.431510984256, 33.5340082107928, 117.03],
[126.426776101042, 33.5300341198342, 117.03],
[126.422655345288, 33.5256061506754, 117.03],
[126.420600360872, 33.5228973960519, 117.03],
[126.418776072967, 33.5200750984255, 117.03],
[126.416164821366, 33.5149046787455, 117.03],
[126.414770551249, 33.5110672691261, 117.03],
[126.413780792557, 33.5071425901958, 117.03],
[126.413137629472, 33.5023600623026, 117.03],
[126.413060202387, 33.4983493520673, 117.03],
[126.413400123831, 33.4943481889984, 117.03],
[126.414154978614, 33.4903871217165, 117.03],
[126.415318914076, 33.4864962277968, 117.03],
[126.417242893841, 33.4819614652802, 117.03],
[126.419271039807, 33.4783280245752, 117.03],
[126.421669314856, 33.4748565777621, 117.03],
[126.424419226204, 33.4715734341774, 117.03],
[126.426984087925, 33.4689808917723, 117.03],
[126.436041799461, 33.4753713462788, 77.03],
[126.436041799461, 33.4753713462788, 77.03],
[126.433799757685, 33.477619428593, 77.03],
[126.432052851103, 33.479667061366, 77.03],
[126.430480600029, 33.4818119411417, 77.03],
[126.429090613679, 33.484043380654, 77.03],
[126.427889643706, 33.486350598106, 77.03],
[126.426663236213, 33.489324139012, 77.03],
[126.425907831975, 33.4917604289183, 77.03],
[126.425356908709, 33.4942348970147, 77.03],
[126.425013467703, 33.4967355689038, 77.03],
[126.424878898885, 33.4992501912586, 77.03],
[126.425005647526, 33.5023945211674, 77.03],
[126.425342425241, 33.5048958210509, 77.03],
[126.426054715273, 33.5079847095946, 77.03],
[126.426854403115, 33.5104111518367, 77.03],
[126.427854351106, 33.5127848690182, 77.03],
[126.429049483548, 33.5150942927581, 77.03],
[126.431195383338, 33.5184136109681, 77.03],
[126.432851343614, 33.5205141415862, 77.03],
[126.434205960776, 33.5220231870318, 77.03],
[126.437719612483, 33.5252985031554, 77.03],
[126.441092086049, 33.5278025891914, 77.03],
[126.445395784425, 33.5303316738699, 77.03],
[126.475673294265, 33.545897505025, 77.03],
[126.479633629224, 33.5477008790839, 77.03],
[126.484508230024, 33.5493527742833, 77.03],
[126.488851848072, 33.5503636057461, 77.03],
[126.493297854273, 33.5509885562065, 77.03],
[126.49854936919, 33.5512210877084, 77.03],
[126.503049374246, 33.550992197645, 77.03],
[126.50749613109, 33.550370562735, 77.03],
[126.511840764054, 33.5493631181249, 77.03],
[126.516035781408, 33.5479806878215, 77.03],
[126.520035075197, 33.5462385249422, 77.03],
[126.523794788169, 33.5441557732478, 77.03],
[126.527823459448, 33.5413260658277, 77.03],
[126.531410079318, 33.5381062393013, 77.03],
[126.534091644986, 33.5350720573612, 77.03],
[126.536379739237, 33.5318197811457, 77.03],
[126.538427493602, 33.5280000062672, 77.03]
]
]
},
"properties": {
"name": "수평",
"description": "원추표면 오른쪽위 -> 왼쪽위",
"type": "0003",
"divCd": "수평"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[126.526882137408, 33.4759617196464, 296],
[126.529139862005, 33.4771862992337, 296],
[126.531665490897, 33.478720917349, 296],
[126.535177893085, 33.4811878321284, 296],
[126.500474338439, 33.5067757753313, 296],
[126.493321748287, 33.5110696699773, 296],
[126.468766270098, 33.4984463563465, 296],
[126.426984195498, 33.4689808922696, 296],
[126.428373611666, 33.4677246285861, 296],
[126.430599256274, 33.4658931002955, 296],
[126.434118895607, 33.4633795294713, 296],
[126.437878372419, 33.4611231769063, 296],
[126.43924137968, 33.4603996001182, 296],
[126.441945745625, 33.4590973698792, 296],
[126.446107485884, 33.4574084142953, 296],
[126.450423997522, 33.4560190626222, 296],
[126.454864493371, 33.4549393517789, 296],
[126.459503917359, 33.454162743458, 296],
[126.463991278087, 33.4537363849884, 296],
[126.468720303414, 33.4536231222138, 296],
[126.473336521819, 33.4538427002637, 296],
[126.477914248252, 33.4543871502547, 296],
[126.482524725395, 33.455276609125, 296],
[126.485302452649, 33.4559860972003, 296],
[126.487931267088, 33.4567847072674, 296],
[126.490801915928, 33.4578065889086, 296],
[126.49235472367, 33.4584284766243, 296],
[126.496496668931, 33.4603453014259, 296],
[126.526882137408, 33.4759617196464, 296]
]
]
},
"properties": {
"name": "금지구역",
"description": "수평표면 왼쪽하단",
"type": "0003",
"divCd": "금지"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[126.499032700788, 33.5140078233332, 148],
[126.493317005387, 33.5110709128035, 148],
[126.500469811114, 33.5067770193031, 148],
[126.535177893085, 33.4811878321284, 148],
[126.538093803103, 33.4835882320616, 148],
[126.540923853215, 33.4863039837894, 148],
[126.54349156918, 33.4891971300441, 148],
[126.545564835218, 33.4919380243566, 148],
[126.54740250487, 33.4947945090561, 148],
[126.548318068198, 33.496426218728, 148],
[126.549156572478, 33.4980868526466, 148],
[126.549916737204, 33.4997736127446, 148],
[126.55059771013, 33.5014840630313, 148],
[126.551619429749, 33.5046141289008, 148],
[126.552072365749, 33.5063768483951, 148],
[126.552442486391, 33.5081530610368, 148],
[126.552729262543, 33.5099400608468, 148],
[126.55293227302, 33.5117350519161, 148],
[126.553050988437, 33.5135353279409, 148],
[126.553085417479, 33.5153381843916, 148],
[126.552934733856, 33.5185807541775, 148],
[126.552511252203, 33.5218062884859, 148],
[126.552158813808, 33.5235850244047, 148],
[126.551723431693, 33.5253508363189, 148],
[126.550732899691, 33.5284880248693, 148],
[126.550069070692, 33.5302032327009, 148],
[126.549336017217, 33.5318722936272, 148],
[126.499032700788, 33.5140078233332, 148]
]
]
},
"properties": {
"name": "금지구역",
"description": "수평표면 오른쪽하단",
"type": "0003",
"divCd": "금지"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[126.444758897107, 33.52999757845, 77.03],
[126.44289113925, 33.5289402886938, 77.03],
[126.441092086049, 33.5278025891914, 77.03],
[126.439366671562, 33.5265875706263, 77.03],
[126.437719612483, 33.5252985031554, 77.03],
[126.436155406957, 33.5239390166764, 77.03],
[126.434205960776, 33.5220231870318, 77.03],
[126.432851343614, 33.5205141415862, 77.03],
[126.431592946215, 33.5189477312614, 77.03],
[126.430434073434, 33.5173283918915, 77.03],
[126.429378138096, 33.5156603793776, 77.03],
[126.428427796437, 33.5139483066277, 77.03],
[126.427585810403, 33.5121969671702, 77.03],
[126.426854403115, 33.5104111518367, 77.03],
[126.426054715273, 33.5079847095946, 77.03],
[126.425588636813, 33.5061375448267, 77.03],
[126.425238710222, 33.5042724342608, 77.03],
[126.425005647526, 33.5023945211674, 77.03],
[126.424890268143, 33.5005089489958, 77.03],
[126.424892853283, 33.498620858372, 77.03],
[126.425079702788, 33.4961086421339, 77.03],
[126.425356908709, 33.4942348970147, 77.03],
[126.425750755832, 33.4923759363151, 77.03],
[126.426260127622, 33.4905368026156, 77.03],
[126.426883693314, 33.4887224470482, 77.03],
[126.427619691023, 33.4869379987883, 77.03],
[126.428466146596, 33.4851882251386, 77.03],
[126.429420655533, 33.4834779813425, 77.03],
[126.430480600029, 33.4818119411417, 77.03],
[126.431643041448, 33.4801945963133, 77.03],
[126.432905041953, 33.4786304384978, 77.03],
[126.434262804465, 33.4771238651376, 77.03],
[126.436041799461, 33.4753713462788, 77.03],
[126.468766270098, 33.4984463563465, 77.03],
[126.499036906141, 33.5140064879564, 77.03],
[126.538427493602, 33.5280000062672, 77.03],
[126.537050509521, 33.5306933215044, 77.03],
[126.535662444819, 33.5329259570268, 77.03],
[126.534091644986, 33.5350720573612, 77.03],
[126.532345909087, 33.5371211866397, 77.03],
[126.530433682935, 33.5390632717791, 77.03],
[126.528364273091, 33.5408888739328, 77.03],
[126.525571767244, 33.5429936882956, 77.03],
[126.523186576412, 33.5445256072518, 77.03],
[126.520679452718, 33.5459144668716, 77.03],
[126.518062715428, 33.5471534557775, 77.03],
[126.51465700551, 33.54848225198, 77.03],
[126.511840764054, 33.5493631181249, 77.03],
[126.50895800322, 33.5500772235682, 77.03],
[126.505282496188, 33.5507302148219, 77.03],
[126.502301712582, 33.5510577147968, 77.03],
[126.499300918472, 33.5512103350786, 77.03],
[126.497046031269, 33.551209490198, 77.03],
[126.494794303995, 33.5511098036223, 77.03],
[126.49180747944, 33.5508235888771, 77.03],
[126.489587050759, 33.5504947537329, 77.03],
[126.486664185235, 33.5499058370253, 77.03],
[126.484508230024, 33.5493527742833, 77.03],
[126.482389794059, 33.5487059761733, 77.03],
[126.480314687316, 33.5479671820188, 77.03],
[126.478288716967, 33.5471384921059, 77.03],
[126.475673294265, 33.545897505025, 77.03],
[126.445395784425, 33.5303316738699, 77.03],
[126.444758897107, 33.52999757845, 77.03]
]
]
},
"properties": {
"name": "금지구역",
"description": "수평표면 가운데상단",
"type": "0003",
"divCd": "금지"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[126.467077368135, 33.5007514094515, 26.6399993896484],
[126.437033516533, 33.4900561702122, 86.6399993896484],
[126.316932609032, 33.4472029724612, 461.639999389648],
[126.343989441792, 33.4103509148327, 461.639999389648],
[126.443790684147, 33.4808371837217, 86.6399993896484],
[126.468766270097, 33.4984463563465, 26.6399993896484],
[126.467077368135, 33.5007514094515, 26.6399993896484]
]
]
},
"properties": {
"name": "금지구역",
"description": "전입표면 왼쪽",
"type": "0003",
"divCd": "금지"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[126.499036906141, 33.5140064879564, 23.6000003814697],
[126.529096929494, 33.5246867959666, 83.6000003814697],
[126.649411386762, 33.5673356043697, 458.600000381469],
[126.622433539244, 33.6042540276088, 458.600000381469],
[126.522345276013, 33.5339105125821, 83.6000003814697],
[126.497348600456, 33.5163120432774, 23.6000003814697],
[126.499036906141, 33.5140064879564, 23.6000003814697]
]
]
},
"properties": {
"name": "금지구역",
"description": "전입표면 오른쪽",
"type": "0003",
"divCd": "금지"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[126.487338251857, 33.5163246636911, 20.4799995422363],
[126.462965650038, 33.5342736575117, 95.4799995422363],
[126.458264963782, 33.5287760611572, 95.4799995422363],
[126.486397990376, 33.5152253395272, 20.4799995422363],
[126.487338251857, 33.5163246636911, 20.4799995422363]
]
]
},
"properties": {
"name": "금지구역",
"description": "전입표면 위쪽",
"type": "0003",
"divCd": "금지"
}
},
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[126.500474338439, 33.5067757753312, 32.0299987792968],
[126.528721230646, 33.4859503760529, 148.00333211263],
[126.534025210763, 33.4921475251472, 148.00333211263],
[126.501414689377, 33.5078749949547, 32.0299987792968],
[126.500474338439, 33.5067757753312, 32.0299987792968]
]
]
},
"properties": {
"name": "금지구역",
"description": "전입표면 아래쪽",
"type": "0003",
"divCd": "금지"
}
}
]
}

86
src/components/map/geojson/flatUlsanAirArea.json

@ -1,6 +1,92 @@
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[129.325885, 35.512544, 0],
[129.334653, 35.510984, 0],
[129.343554, 35.510052, 0],
[129.352522, 35.509754, 0],
[129.361487, 35.510092, 0],
[129.370382, 35.511065, 0],
[129.379139, 35.512664, 0],
[129.387692, 35.514878, 0],
[129.395976, 35.51769, 0],
[129.403928, 35.521078, 0],
[129.411488, 35.525017, 0],
[129.420662, 35.53055, 0],
[129.428215, 35.535858, 0],
[129.434395, 35.542284, 0],
[129.440575, 35.549547, 0],
[129.445038, 35.55625, 0],
[129.449071, 35.565034, 0],
[129.451757, 35.572005, 0],
[129.453686, 35.57914, 0],
[129.454843, 35.586385, 0],
[129.455219, 35.593684, 0],
[129.454812, 35.600982, 0],
[129.453623, 35.608224, 0],
[129.451663, 35.615353, 0],
[129.448945, 35.622317, 0],
[129.445491, 35.629061, 0],
[129.441326, 35.635535, 0],
[129.436481, 35.641689, 0],
[129.430995, 35.647476, 0],
[129.424908, 35.652853, 0],
[129.418266, 35.657777, 0],
[129.411121, 35.662212, 0],
[129.403526, 35.666124, 0],
[129.395541, 35.669482, 0],
[129.387224, 35.672262, 0],
[129.378641, 35.674441, 0],
[129.369856, 35.676004, 0],
[129.360936, 35.676939, 0],
[129.354057, 35.6771, 0],
[129.342966, 35.676898, 0],
[129.334053, 35.675924, 0],
[129.325279, 35.674321, 0],
[129.316711, 35.672103, 0],
[129.308413, 35.669285, 0],
[129.300451, 35.665891, 0],
[129.292883, 35.661945, 0],
[129.285768, 35.657478, 0],
[129.279161, 35.652524, 0],
[129.27311, 35.64712, 0],
[129.267663, 35.641308, 0],
[129.262861, 35.635132, 0],
[129.258741, 35.628639, 0],
[129.255332, 35.62188, 0],
[129.251747, 35.61293, 0],
[129.249344, 35.602602, 0],
[129.249254, 35.593219, 0],
[129.24968, 35.585922, 0],
[129.252091, 35.574962, 0],
[129.254494, 35.566305, 0],
[129.259065, 35.557858, 0],
[129.263241, 35.55139, 0],
[129.268093, 35.545243, 0],
[129.273584, 35.539463, 0],
[129.279673, 35.534095, 0],
[129.286313, 35.529178, 0],
[129.293453, 35.52475, 0],
[129.30104, 35.520846, 0],
[129.309014, 35.517494, 0],
[129.317317, 35.51472, 0],
[129.325885, 35.512544, 0]
]
]
},
"properties": {
"name": "원추",
"description": "9.3",
"type": "0003",
"divCd": "원추"
}
},
{
"type": "Feature",
"geometry": {

632
src/components/map/geojson/jejuAirArea.json

@ -0,0 +1,632 @@
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.467077368135, 33.5007514094515, 52.0199993896484],
[126.437033516533, 33.4900561702122, 93.62999938964839],
[126.443790684147, 33.4808371837217, 122.68999938964839],
[126.468766270097, 33.4984463563465, 52.0199993896484],
[126.467077368135, 33.5007514094515, 52.0199993896484]
]
},
"properties": {
"styleUrl": "#line4",
"styleHash": "3b6fa22b",
"description": "APPROACH<BR><BR><B>KML_STYLE</B> = line4",
"stroke": "#ff0000",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "진입표면 왼쪽안"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.437033516533, 33.4900561702122, 93.62999938964839],
[126.316932609032, 33.4472029724612, 519.599999389648],
[126.343989441792, 33.4103509148327, 660.879999389648],
[126.443790684147, 33.4808371837217, 122.68999938964839],
[126.437033516533, 33.4900561702122, 93.62999938964839]
]
},
"properties": {
"styleUrl": "#line4",
"styleHash": "3b6fa22b",
"description": "APPROACH<BR><BR><B>KML_STYLE</B> = line4",
"stroke": "#ff0000",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "진입표면 왼쪽겉"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.499036906141, 33.5140064879564, 42.8700003814697],
[126.529096929494, 33.5246867959666, 83.6000003814697],
[126.522345276013, 33.5339105125821, 83.6000003814697],
[126.497348600456, 33.5163120432774, 44.500000381469704],
[126.499036906141, 33.5140064879564, 42.8700003814697]
]
},
"properties": {
"styleUrl": "#line4",
"styleHash": "3b6fa22b",
"description": "APPROACH<BR><BR><B>KML_STYLE</B> = line4",
"stroke": "#ff0000",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "진입표면 오른쪽안"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.529096929494, 33.5246867959666, 83.6000003814697],
[126.649411386762, 33.5673356043697, 458.600000381469],
[126.622433539244, 33.6042540276088, 458.600000381469],
[126.522345276013, 33.5339105125821, 83.6000003814697],
[126.529096929494, 33.5246867959666, 83.6000003814697]
]
},
"properties": {
"styleUrl": "#line4",
"styleHash": "3b6fa22b",
"description": "APPROACH<BR><BR><B>KML_STYLE</B> = line4",
"stroke": "#ff0000",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "진입표면 오른쪽겉"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.500474338439, 33.5067757753312, 66.43999877929679],
[126.528721230646, 33.4859503760529, 256.89333211263],
[126.534025210763, 33.4921475251472, 237.19333211263],
[126.501414689377, 33.5078749949547, 62.139998779296796],
[126.500474338439, 33.5067757753312, 66.43999877929679]
]
},
"properties": {
"styleUrl": "#line4",
"styleHash": "3b6fa22b",
"description": "APPROACH<BR><BR><B>KML_STYLE</B> = line4",
"stroke": "#ff0000",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "진입표면 하단"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.487338251857, 33.5163246636911, 40.219999542236295],
[126.462965650038, 33.5342736575117, 95.4799995422363],
[126.458264963782, 33.5287760611572, 95.4799995422363],
[126.486397990376, 33.5152253395272, 20.4799995422363],
[126.487338251857, 33.5163246636911, 40.219999542236295]
]
},
"properties": {
"styleUrl": "#line4",
"styleHash": "3b6fa22b",
"description": "APPROACH<BR><BR><B>KML_STYLE</B> = line4",
"stroke": "#ff0000",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "진입표면 상단"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.468766270097, 33.4984463563465, 52.0199993896484],
[126.426984195497, 33.4689808922695, 381.62998535156197],
[126.427127724968, 33.4688465874722, 381.62998535156197],
[126.427416816968, 33.468579429299, 381.62998535156197],
[126.427708475881, 33.4683142657811, 408.139985351562],
[126.428002487154, 33.4680510057514, 408.139985351562],
[126.428299065337, 33.4677897403419, 408.139985351562],
[126.428597888898, 33.4675302877341, 408.139985351562],
[126.428899279364, 33.4672728297116, 408.139985351562],
[126.429203021003, 33.4670174554218, 408.139985351562],
[126.429509222568, 33.4667639850297, 408.139985351562],
[126.429817667738, 33.4665125978407, 408.139985351562],
[126.430128571655, 33.4662632948273, 408.139985351562],
[126.430441827341, 33.4660159853207, 408.139985351562],
[126.430757219071, 33.4657707584718, 418.899985351562],
[126.431074961988, 33.465527615252, 430.469985351562],
[126.431395056683, 33.4652864654869, 430.469985351562],
[126.431717286259, 33.4650475786421, 430.469985351562],
[126.432041760056, 33.4648106847243, 430.469985351562],
[126.432368369335, 33.4645759635368, 430.469985351562],
[126.432697221671, 33.4643434155553, 430.469985351562],
[126.433028317072, 33.4641130407622, 430.469985351562],
[126.433361439824, 33.4638849283132, 430.469985351562],
[126.433696698678, 33.4636588983704, 430.469985351562],
[126.434034200036, 33.4634351317211, 442.749985351562],
[126.434373621795, 33.4632135367185, 442.749985351562],
[126.434715286078, 33.462994204975, 442.749985351562],
[126.4350588702, 33.4627771350021, 452.429985351562],
[126.435404481738, 33.4625623272738, 452.429985351562],
[126.435752120705, 33.4623497817738, 452.429985351562],
[126.436101678965, 33.4621395881526, 452.429985351562],
[126.436365047466, 33.461983367742, 452.429985351562],
[126.493693580113, 33.4910923078032, 375.309985351562],
[126.493321748287, 33.5110696699773, 48.250000381469704],
[126.468766270097, 33.4984463563465, 52.0199993896484]
]
},
"properties": {
"styleUrl": "#line5",
"styleHash": "759ebff8",
"description": "TRANS<BR><BR><B>KML_STYLE</B> = line5",
"stroke": "#ff8040",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "전이표면 왼쪽하단"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.490407676727, 33.5127453109105, 40.5099995422363],
[126.483059961443, 33.5129246671462, 70.4799995422363],
[126.441847077471, 33.4917704070713, 86.07999938964839],
[126.467077475195, 33.5007515000709, 52.0199993896484],
[126.490407676727, 33.5127453109105, 40.5099995422363]
]
},
"properties": {
"styleUrl": "#line5",
"styleHash": "759ebff8",
"description": "TRANS<BR><BR><B>KML_STYLE</B> = line5",
"stroke": "#ff8040",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "전이표면 왼쪽가운데하단"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.494815047696, 33.5118370702115, 45.680000381469696],
[126.494894972965, 33.5117889807924, 45.680000381469696],
[126.510570566561, 33.5106225853189, 176.53],
[126.549724368301, 33.5310129592728, 148],
[126.54966989891, 33.531136910023, 148],
[126.549556948011, 33.5313902965419, 148],
[126.549442061976, 33.5316430447921, 148],
[126.549336017216, 33.5318722936272, 148],
[126.499037227991, 33.5140066695757, 42.8700003814697],
[126.494815047696, 33.5118370702115, 45.680000381469696]
]
},
"properties": {
"styleUrl": "#line5",
"styleHash": "759ebff8",
"description": "TRANS<BR><BR><B>KML_STYLE</B> = line5",
"stroke": "#ff8040",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "전이표면 오른쪽가운데상단"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.492272088953, 33.5176590490094, 79.2099995422363],
[126.492007751135, 33.5135676399287, 41.7599995422363],
[126.497348922311, 33.5163122249011, 44.500000381469704],
[126.519739458932, 33.5320764336648, 73.6000003814697],
[126.492272088953, 33.5176590490094, 79.2099995422363]
]
},
"properties": {
"styleUrl": "#line5",
"styleHash": "759ebff8",
"description": "TRANS<BR><BR><B>KML_STYLE</B> = line5",
"stroke": "#ff8040",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "전이표면 오른쪽상단"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.49196697434, 33.5135465558551, 41.7599995422363],
[126.492007751135, 33.5135676399287, 41.7599995422363],
[126.492272088953, 33.5176590490094, 79.2099995422363],
[126.489819647875, 33.5192254888024, 70.4799995422363],
[126.468963527362, 33.5298576854832, 70.4799995422363],
[126.487338251857, 33.5163246636911, 40.219999542236295],
[126.49196697434, 33.5135465558551, 41.7599995422363]
]
},
"properties": {
"styleUrl": "#line5",
"styleHash": "759ebff8",
"description": "TRANS<BR><BR><B>KML_STYLE</B> = line5",
"stroke": "#ff8040",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "전이표면 왼쪽상단"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.494894972965, 33.5117889807924, 45.680000381469696],
[126.501414797, 33.5078749953879, 62.139998779296796],
[126.534025210763, 33.4921475251472, 237.19],
[126.510570566561, 33.5106225853189, 176.53],
[126.494894972965, 33.5117889807924, 45.680000381469696]
]
},
"properties": {
"styleUrl": "#line5",
"styleHash": "759ebff8",
"description": "TRANS<BR><BR><B>KML_STYLE</B> = line5",
"stroke": "#ff8040",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "전이표면 오른쪽가운데하단"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.483059961443, 33.5129246671462, 70.4799995422363],
[126.490407676727, 33.5127453109105, 40.5099995422363],
[126.490473563212, 33.5127792111741, 40.5099995422363],
[126.486397882745, 33.5152253390809, 20.4799995422363],
[126.465188020892, 33.525442516327, 70.4799995422363],
[126.483059961443, 33.5129246671462, 70.4799995422363],
[126.483059961443, 33.5129246671462, 70.4799995422363]
]
},
"properties": {
"styleUrl": "#line5",
"styleHash": "759ebff8",
"description": "TRANS<BR><BR><B>KML_STYLE</B> = line5",
"stroke": "#ff8040",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "전이표면 왼쪽가운데상단"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.493321748287, 33.5110696699773, 48.250000381469704],
[126.493693580113, 33.4910923078032, 375.309985351562],
[126.522225915656, 33.478359683883, 433.439985351562],
[126.526020422682, 33.4755189896507, 437.259985351562],
[126.526882137408, 33.4759617196463, 440.669985351562],
[126.527974769412, 33.4765379480111, 440.669985351562],
[126.529050947007, 33.4771355622203, 440.669985351562],
[126.530110027069, 33.4777541996216, 440.669985351562],
[126.531151473518, 33.4783935881426, 431.719985351562],
[126.532174751186, 33.4790532754049, 431.719985351562],
[126.533179108702, 33.4797329885447, 431.719985351562],
[126.534164333056, 33.4804323665776, 416.749985351562],
[126.535129459508, 33.4811507752187, 421.169985351562],
[126.535177893085, 33.4811878321283, 421.169985351562],
[126.500474338439, 33.5067757753312, 66.43999877929679],
[126.493321748287, 33.5110696699773, 49.65]
]
},
"properties": {
"styleUrl": "#line5",
"styleHash": "759ebff8",
"description": "TRANS<BR><BR><B>KML_STYLE</B> = line5",
"stroke": "#ff8040",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "전이표면 오른쪽하단"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.499036906141, 33.5140064879564, 42.8700003814697],
[126.497348600456, 33.5163120432774, 44.500000381469704],
[126.467077368135, 33.5007514094515, 52.0199993896484],
[126.468766270097, 33.4984463563465, 52.0199993896484],
[126.499036906141, 33.5140064879564, 42.8700003814697]
]
},
"properties": {
"styleUrl": "#line3",
"styleHash": "37214e2a",
"description": "Unclassified Line Feature<BR><BR><B>KML_STYLE</B> = line3",
"stroke": "#000000",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "착륙대 /"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.504069537613, 33.5046172059628, 67.6299987792968],
[126.505009911374, 33.5057163988828, 67.6299987792968],
[126.487338251857, 33.5163246636911, 40.219999542236295],
[126.486397990376, 33.5152253395272, 20.4799995422363],
[126.504069537613, 33.5046172059628, 67.6299987792968]
]
},
"properties": {
"styleUrl": "#line3",
"styleHash": "37214e2a",
"description": "Unclassified Line Feature<BR><BR><B>KML_STYLE</B> = line3",
"stroke": "#000000",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "착륙대 ₩"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.538427493602, 33.5280000062672, 78.07000000000001],
[126.549336124869, 33.531872294019, 117.03],
[126.547318725298, 33.5356843355764, 117.03],
[126.544996541563, 33.5391926488222, 117.03],
[126.542317889515, 33.5425181993202, 117.03],
[126.539303123371, 33.5456354347878, 117.03],
[126.535975074944, 33.5485207047712, 117.03],
[126.533104107146, 33.5506470301044, 117.03],
[126.529277606487, 33.5530606897423, 117.03],
[126.525214275463, 33.5551857157525, 117.03],
[126.520944916618, 33.5570060660592, 117.03],
[126.514684135178, 33.5590166448213, 117.03],
[126.508177146804, 33.5603730008264, 117.03],
[126.501521124932, 33.5610550217542, 117.03],
[126.494815356152, 33.5610525412619, 117.03],
[126.488160043741, 33.5603654254809, 117.03],
[126.481654462031, 33.5590041064186, 117.03],
[126.475395872348, 33.5569888550044, 117.03],
[126.469479506541, 33.5543507706498, 117.03],
[126.438386236486, 33.5383564459621, 117.03],
[126.434465442756, 33.536052281009, 117.03],
[126.431510984256, 33.5340082107928, 117.03],
[126.426776101042, 33.5300341198342, 117.03],
[126.422655345288, 33.5256061506754, 117.03],
[126.420600360872, 33.5228973960519, 117.03],
[126.418776072967, 33.5200750984255, 117.03],
[126.416164821366, 33.5149046787455, 117.03],
[126.414770551249, 33.5110672691261, 117.03],
[126.413780792557, 33.5071425901958, 117.03],
[126.413137629472, 33.5023600623026, 117.03],
[126.413060202387, 33.4983493520673, 117.03],
[126.413400123831, 33.4943481889984, 117.03],
[126.414154978614, 33.4903871217165, 117.55],
[126.415318914076, 33.4864962277968, 131.73],
[126.417242893841, 33.4819614652802, 146.99],
[126.419271039807, 33.4783280245752, 165.09],
[126.421669314856, 33.4748565777621, 184.72],
[126.424419226204, 33.4715734341774, 190.67000000000002],
[126.426984087925, 33.4689808917723, 203.55],
[126.436041799461, 33.4753713462788, 151.47],
[126.436041799461, 33.4753713462788, 151.47],
[126.433799757685, 33.477619428593, 134.96],
[126.432052851103, 33.479667061366, 126.49000000000001],
[126.430480600029, 33.4818119411417, 120.19],
[126.429090613679, 33.484043380654, 116.00999999999999],
[126.427889643706, 33.486350598106, 107.79],
[126.426663236213, 33.489324139012, 96.05],
[126.425907831975, 33.4917604289183, 92.8],
[126.425356908709, 33.4942348970147, 80.63],
[126.425013467703, 33.4967355689038, 77.03],
[126.424878898885, 33.4992501912586, 77.03],
[126.425005647526, 33.5023945211674, 77.03],
[126.425342425241, 33.5048958210509, 77.03],
[126.426054715273, 33.5079847095946, 77.03],
[126.426854403115, 33.5104111518367, 77.03],
[126.427854351106, 33.5127848690182, 77.03],
[126.429049483548, 33.5150942927581, 77.03],
[126.431195383338, 33.5184136109681, 77.03],
[126.432851343614, 33.5205141415862, 77.03],
[126.434205960776, 33.5220231870318, 77.03],
[126.437719612483, 33.5252985031554, 77.03],
[126.441092086049, 33.5278025891914, 77.03],
[126.445395784425, 33.5303316738699, 77.03],
[126.475673294265, 33.545897505025, 77.03],
[126.479633629224, 33.5477008790839, 77.03],
[126.484508230024, 33.5493527742833, 77.03],
[126.488851848072, 33.5503636057461, 77.03],
[126.493297854273, 33.5509885562065, 77.03],
[126.49854936919, 33.5512210877084, 77.03],
[126.503049374246, 33.550992197645, 77.03],
[126.50749613109, 33.550370562735, 77.03],
[126.511840764054, 33.5493631181249, 77.03],
[126.516035781408, 33.5479806878215, 77.03],
[126.520035075197, 33.5462385249422, 77.03],
[126.523794788169, 33.5441557732478, 77.03],
[126.527823459448, 33.5413260658277, 77.03],
[126.531410079318, 33.5381062393013, 77.03],
[126.534091644986, 33.5350720573612, 77.03],
[126.536379739237, 33.5318197811457, 77.03],
[126.538427493602, 33.5280000062672, 78.07000000000001]
]
},
"properties": {
"styleUrl": "#line2",
"styleHash": "-248ae217",
"description": "Unclassified Line Feature<BR><BR><B>ELEVATION</B> = 112.86<BR><BR><B>ELEVATION</B> = 112.86<BR><B>KML_STYLE</B> = line2<BR><B>ELEVATION</B> = 112.86",
"stroke": "#a4edf5",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "수평(파랑)"
}
},
{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[126.538427493602, 33.5280000062672, 78.07000000000001],
[126.537050509521, 33.5306933215044, 77.03],
[126.535662444819, 33.5329259570268, 77.03],
[126.534091644986, 33.5350720573612, 77.03],
[126.532345909087, 33.5371211866397, 77.03],
[126.530433682935, 33.5390632717791, 77.03],
[126.528364273091, 33.5408888739328, 77.03],
[126.525571767244, 33.5429936882956, 77.03],
[126.523186576412, 33.5445256072518, 77.03],
[126.520679452718, 33.5459144668716, 77.03],
[126.518062715428, 33.5471534557775, 77.03],
[126.51465700551, 33.54848225198, 77.03],
[126.511840764054, 33.5493631181249, 77.03],
[126.50895800322, 33.5500772235682, 77.03],
[126.505282496188, 33.5507302148219, 77.03],
[126.502301712582, 33.5510577147968, 77.03],
[126.499300918472, 33.5512103350786, 77.03],
[126.497046031269, 33.551209490198, 77.03],
[126.494794303995, 33.5511098036223, 77.03],
[126.49180747944, 33.5508235888771, 77.03],
[126.489587050759, 33.5504947537329, 77.03],
[126.486664185235, 33.5499058370253, 77.03],
[126.484508230024, 33.5493527742833, 77.03],
[126.482389794059, 33.5487059761733, 77.03],
[126.480314687316, 33.5479671820188, 77.03],
[126.478288716967, 33.5471384921059, 77.03],
[126.475673294265, 33.545897505025, 77.03],
[126.445395784425, 33.5303316738699, 77.03],
[126.444758897107, 33.52999757845, 77.03],
[126.44289113925, 33.5289402886938, 77.03],
[126.441092086049, 33.5278025891914, 77.03],
[126.439366671562, 33.5265875706263, 77.03],
[126.437719612483, 33.5252985031554, 77.03],
[126.436155406957, 33.5239390166764, 77.03],
[126.434205960776, 33.5220231870318, 77.03],
[126.432851343614, 33.5205141415862, 77.03],
[126.431592946215, 33.5189477312614, 77.03],
[126.430434073434, 33.5173283918915, 77.03],
[126.429378138096, 33.5156603793776, 77.03],
[126.428427796437, 33.5139483066277, 77.03],
[126.427585810403, 33.5121969671702, 77.03],
[126.426854403115, 33.5104111518367, 77.03],
[126.426054715273, 33.5079847095946, 77.03],
[126.425588636813, 33.5061375448267, 77.03],
[126.425238710222, 33.5042724342608, 77.03],
[126.425005647526, 33.5023945211674, 77.03],
[126.424890268143, 33.5005089489958, 77.03],
[126.424892853283, 33.498620858372, 77.03],
[126.425079702788, 33.4961086421339, 77.03],
[126.425356908709, 33.4942348970147, 80.63],
[126.425750755832, 33.4923759363151, 92.8],
[126.426260127622, 33.4905368026156, 92.8],
[126.426883693314, 33.4887224470482, 100.91],
[126.427619691023, 33.4869379987883, 107.79],
[126.428466146596, 33.4851882251386, 116.00999999999999],
[126.429420655533, 33.4834779813425, 116.00999999999999],
[126.430480600029, 33.4818119411417, 120.19],
[126.431643041448, 33.4801945963133, 126.49000000000001],
[126.432905041953, 33.4786304384978, 126.49000000000001],
[126.434262804465, 33.4771238651376, 134.96],
[126.436041799461, 33.4753713462788, 151.47],
[126.426984195498, 33.4689808922696, 382.52],
[126.428373611666, 33.4677246285861, 409.03],
[126.430599256274, 33.4658931002955, 419.79],
[126.434118895607, 33.4633795294713, 443.64],
[126.437878372419, 33.4611231769063, 462.83000000000004],
[126.43924137968, 33.4603996001182, 472.91999999999996],
[126.441945745625, 33.4590973698792, 472.91999999999996],
[126.446107485884, 33.4574084142953, 475.4],
[126.450423997522, 33.4560190626222, 476.93],
[126.454864493371, 33.4549393517789, 483.64],
[126.459503917359, 33.454162743458, 489.96000000000004],
[126.463991278087, 33.4537363849884, 510.7],
[126.468720303414, 33.4536231222138, 519.76],
[126.473336521819, 33.4538427002637, 520.24],
[126.477914248252, 33.4543871502547, 500.38],
[126.482524725395, 33.455276609125, 510.72],
[126.485302452649, 33.4559860972003, 527.05],
[126.487931267088, 33.4567847072674, 539.9300000000001],
[126.490801915928, 33.4578065889086, 547.25],
[126.49235472367, 33.4584284766243, 547.25],
[126.496496668931, 33.4603453014259, 536.75],
[126.526882137408, 33.4759617196464, 441.56],
[126.529139862005, 33.4771862992337, 441.56],
[126.531665490897, 33.478720917349, 432.61],
[126.535177893085, 33.4811878321284, 422.06],
[126.535177893085, 33.4811878321284, 274.06],
[126.538093803103, 33.4835882320616, 268.54],
[126.540923853215, 33.4863039837894, 260.26],
[126.54349156918, 33.4891971300441, 261.14],
[126.545564835218, 33.4919380243566, 257.27],
[126.54740250487, 33.4947945090561, 249.39],
[126.548318068198, 33.496426218728, 236.44],
[126.549156572478, 33.4980868526466, 236.44],
[126.549916737204, 33.4997736127446, 232.47],
[126.55059771013, 33.5014840630313, 232.47],
[126.551619429749, 33.5046141289008, 219.65],
[126.552072365749, 33.5063768483951, 219.65],
[126.552442486391, 33.5081530610368, 216.88],
[126.552729262543, 33.5099400608468, 198.51],
[126.55293227302, 33.5117350519161, 192.61],
[126.553050988437, 33.5135353279409, 192.61],
[126.553085417479, 33.5153381843916, 190.04],
[126.552934733856, 33.5185807541775, 226.1],
[126.552511252203, 33.5218062884859, 148.62],
[126.552158813808, 33.5235850244047, 148.62],
[126.551723431693, 33.5253508363189, 148],
[126.550732899691, 33.5284880248693, 148],
[126.550069070692, 33.5302032327009, 148],
[126.549336017217, 33.5318722936272, 148],
[126.538427493602, 33.5280000062672, 78.07000000000001]
]
},
"properties": {
"styleUrl": "#line1",
"styleHash": "-1df1e618",
"description": "Unclassified Line Feature<BR><BR><B>ELEVATION</B> = 57.86<BR><BR><B>ELEVATION</B> = 57.86<BR><B>KML_STYLE</B> = line1<BR><B>ELEVATION</B> = 57.86",
"stroke": "#FF3648",
"stroke-opacity": 1,
"stroke-width": 2,
"name": "금지(빨강)"
}
}
]
}

73
src/components/map/mapbox/MapBoxMap.js

@ -30,14 +30,18 @@ import FeatureAirZone from './feature/FeatureAirZone';
// v월드 공역
import { airArea } from '../geojson/_AirArea';
import geoJson from '../../map/geojson/airArea.json';
import gimPo from '../../map/geojson/gimpoAirportAirArea.json';
import ulsan from '../../map/geojson/ulsanAirArea.json';
// 김포 격자 공역
import gimPoGrid from '../../../components/map/geojson/airportAirArea.json';
// 김포 선형 공역
// 3d 공역
import gimPo from '../../map/geojson/gimpoAirportAirArea.json';
import ulsan from '../../map/geojson/ulsanAirArea.json';
import jeju from '../../map/geojson/jejuAirArea.json';
// 선형(flat) 공역
import flatGimpo from '../../map/geojson/flatGimpoAirportAirArea.json';
import flatUlsan from '../../map/geojson/flatUlsanAirArea.json';
import flatJeju from '../../map/geojson/flatJejuAirport.json';
import { clientMapInit } from '@src/redux/features/control/map/mapSlice';
import { getDraw } from '@src/utility/MapUtils';
@ -128,11 +132,13 @@ export default function MapBoxMap({ handlerDrawObjInit }) {
...airArea,
...flatGimpo,
...flatUlsan,
...flatJeju,
features: [
// ...geoJson.features,
...airArea.features,
...flatGimpo.features,
...flatUlsan.features
...flatUlsan.features,
...flatJeju.features
]
}
) => {
@ -144,18 +150,19 @@ export default function MapBoxMap({ handlerDrawObjInit }) {
...airArea,
...flatGimpo,
...flatUlsan,
...flatJeju,
features: [
// ...geoJson.features,
...airArea.features,
...flatGimpo.features,
...flatUlsan.features
...flatUlsan.features,
...flatJeju.features
]
}
: {
// ...geoJson,
...airArea,
...gimPoGrid,
// ...ulsan
features: [
// ...geoJson.features,
...airArea.features,
@ -459,12 +466,13 @@ export default function MapBoxMap({ handlerDrawObjInit }) {
},
labelLayerId
);
// 김포 3d 공역
// 3d 공역
map.addLayer({
id: 'route',
type: 'custom',
renderingMode: '3d',
onAdd: function () {
// 김포
for (let i = 0; i < gimPo.features.length; i++) {
let line;
const options = {
@ -478,18 +486,7 @@ export default function MapBoxMap({ handlerDrawObjInit }) {
});
tb.add(line);
}
},
render: function () {
tb.update();
}
});
// 울산
map.addLayer({
id: 'routes',
type: 'custom',
renderingMode: '3d',
onAdd: function () {
for (let i = 0; i < ulsan.features.length; i++) {
let line;
const options = {
@ -503,6 +500,20 @@ export default function MapBoxMap({ handlerDrawObjInit }) {
});
tb.add(line);
}
// 제주
for (let i = 0; i < jeju.features.length; i++) {
let line;
const options = {
path: jeju.features[i].geometry.coordinates
};
let lineGeometry = options.path;
line = tb.line({
geometry: lineGeometry,
width: jeju.features[i].properties['stroke-width'],
color: jeju.features[i].properties.stroke
});
tb.add(line);
}
},
render: function () {
tb.update();
@ -513,6 +524,7 @@ export default function MapBoxMap({ handlerDrawObjInit }) {
map.setMaxPitch(0);
map.setBearing(0);
map.dragRotate.disable();
// 김포
gimPo.features.map((i, idx) => {
map.addSource(`lineRoute${idx}`, {
type: 'geojson',
@ -534,6 +546,7 @@ export default function MapBoxMap({ handlerDrawObjInit }) {
}
});
});
// 울산
ulsan.features.map((i, idx) => {
map.addSource(`lineRoute${idx}`, {
type: 'geojson',
@ -555,6 +568,28 @@ export default function MapBoxMap({ handlerDrawObjInit }) {
}
});
});
// 제주
jeju.features.map((i, idx) => {
map.addSource(`lineRoute${idx}`, {
type: 'geojson',
data: {
...i
}
});
map.addLayer({
id: `lineRoute${idx}`,
type: 'line',
source: `lineRoute${idx}`,
layout: {
'line-join': 'round',
'line-cap': 'round'
},
paint: {
'line-color': i.properties.stroke,
'line-width': i.properties['stroke-width']
}
});
});
}
// 지형 높이 표시

5
src/utility/MapUtils.js

@ -16,6 +16,7 @@ import { airArea } from '../components/map/geojson/_AirArea';
import geoJson from '../components/map/geojson/airArea.json';
import flatGimpo from '../components/map/geojson/flatGimpoAirportAirArea.json';
import flatUlsan from '../components/map/geojson/flatUlsanAirArea.json';
import flatJeju from '../components/map/geojson/flatJejuAirport.json';
/**
* geojson Feature 형식으로 반환
@ -335,11 +336,13 @@ export const handlerCreateAirSpace = (
...airArea,
...flatGimpo,
...flatUlsan,
...flatJeju,
features: [
// ...geoJson.features,
...airArea.features,
...flatGimpo.features,
...flatUlsan.features
...flatUlsan.features,
...flatJeju.features
]
}
) => {

83
src/utility/airAreaUtil.js

@ -0,0 +1,83 @@
import * as turf from '@turf/turf';
import axios from '@src/utility/customAxiosUtil';
// 공역 쪼개기 & 3등분 도우미
const handlerCoordTest = () => {
const line = turf.lineString([
[0, 0],
[0, 0]
]);
if (line.geometry.coordinates.length > 0) {
const coordList = [];
line.geometry.coordinates.map(coord => {
coordList.push({
planAreacoordSno: 0,
planAreaSno: 0,
lat: coord[1],
lon: coord[0],
createUserId: '',
createDt: ''
});
});
const rq = {
planAreaSno: 0,
planSno: 0,
areaType: 'LINE',
fltMethod: '',
fltMothoeRm: '',
bufferZone: 367,
concatBufferZone: 0,
fltElev: 0,
createUserId: '',
createDt: '',
updateUserId: '',
updateDt: '',
coordList: coordList
};
// 3등분 분할시 사용
// dispatch(AreaBufferList([rq])).then(res => {
// const buffer = res.payload[0].bufferCoordList;
// const bufferCoord = [];
// buffer.map(bf => {
// bufferCoord.push([bf.lon, bf.lat]);
// });
// });
}
const line1 = turf.lineString([
[126.468766270098, 33.4984463563465, 296],
[126.426984195498, 33.4689808922696, 296]
]);
const line2 = turf.lineString([
[126.434262804465, 33.4771238651376, 77.03],
[126.436041799461, 33.4753713462788, 77.03]
]);
const intersect = turf.lineIntersect(line1, line2);
// console.log(intersect, '---intersect');
// 고도 재계산
const data = [
// 좌표 기입
];
if (data.length > 0) {
const fetch = data.map(([lon, lat, alt]) => {
return axios.post('api/comn/elev/ground', [{ lat, lon }]).then(res => {
return [lon, lat, res.data[0].elev + alt];
});
});
Promise.all(fetch)
.then(result => {
console.log(result, '----result');
})
.catch(error => {
console.error('Error fetching data:', error);
});
}
};
export { handlerCoordTest };

7
src/views/control/setting/ControlSetting.js

@ -9,6 +9,7 @@ import {
clientFlightAreaClick,
clientMapTypeChange
} from '@src/redux/features/control/map/mapSlice';
import { clientDispatchTopMenu } from '@src/redux/features/layout/layoutSlice';
// v월드 공역
import { airArea } from '../../../components/map/geojson/_AirArea';
@ -19,8 +20,8 @@ import gimPo from '../../../components/map/geojson/gimpoAirportAirArea.json';
import gimPoGrid from '../../../components/map/geojson/airportAirArea.json';
// 김포 선형 공역
import flatGimpo from '../../../components/map/geojson/flatGimpoAirportAirArea.json';
import { clientDispatchTopMenu } from '@src/redux/features/layout/layoutSlice';
import flatUlsan from '../../../components/map/geojson/flatUlsanAirArea.json';
import flatJeju from '../../../components/map/geojson/flatJejuAirport.json';
const ControlSetting = props => {
const [setMapType] = useMapType();
@ -42,11 +43,13 @@ const ControlSetting = props => {
...airArea,
...flatGimpo,
...flatUlsan,
...flatJeju,
features: [
// ...geoJson.features,
...airArea.features,
...flatGimpo.features,
...flatUlsan.features
...flatUlsan.features,
...flatJeju.features
]
};
let arrGeoJson = [];

57
test/coordTest.js

@ -1,57 +0,0 @@
import * as turf from '@turf/turf';
const handlerTest = () => {
const line = turf.lineString([
[0, 0],
[0, 0]
]);
if (line.geometry.coordinates.length > 0) {
const coordList = [];
line.geometry.coordinates.map(coord => {
coordList.push({
planAreacoordSno: 0,
planAreaSno: 0,
lat: coord[1],
lon: coord[0],
createUserId: '',
createDt: ''
});
});
const rq = {
planAreaSno: 0,
planSno: 0,
areaType: 'LINE',
fltMethod: '',
fltMothoeRm: '',
bufferZone: 367,
concatBufferZone: 0,
fltElev: 0,
createUserId: '',
createDt: '',
updateUserId: '',
updateDt: '',
coordList: coordList
};
// dispatch(AreaBufferList([rq])).then(res => {
// const buffer = res.payload[0].bufferCoordList;
// const bufferCoord = [];
// buffer.map(bf => {
// bufferCoord.push([bf.lon, bf.lat]);
// });
// });
}
const linee = turf.lineString([
[126.773741386, 37.5677930496, 18.59],
[126.7461278299, 37.5840418952, 82.81],
[126.6355487467, 37.6489641997, 381.99]
]);
const circle = turf.lineString([
[126.70986209199998, 37.60272668099992],
[126.71112399499998, 37.604222307999976]
]);
const intersect = turf.lineIntersect(linee, circle);
};
Loading…
Cancel
Save