Pythonで世界地図-12(日本地図に都府県境界線を追加するライブラリ-2)

#####ライブラリ japanmapで都府県境界線を描画する方法
japanmapの作者に教えていただきました。

japanmap(県別データの可視化)
https://qiita.com/SaitoTsutomu/items/6d17889ba47357e44131

```python:
#!/usr/bin/python3
# coding: UTF-8

from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt

from japanmap import *

lon1 = 137.0
lat1 = 37.0
lon2 = 10.0
lat2 = 10.0

map = Basemap(llcrnrlon=lon1-lon2,llcrnrlat=lat1-lat2,urcrnrlon=lon1+lon2,urcrnrlat=lat1+lat2,resolution='i',projection='cyl')

map.drawcoastlines() #海岸線

#japanmapで都府県境界線を表示
qp, qo = get_data()
for k in range(len(qo)):  # 各県ごと
    for othr, ls in qo[k]:  # 各線分ごと
        if othr > k:  # 県コードkが小さい県のとき
            plt.plot([qp[i][0][0] for i in ls], [qp[i][0][1] for i in ls])
            #plt.plot([qp[i][0][0] for i in ls], [qp[i][0][1] for i in ls],color = 'r',linewidth = 0.5,linestyle = '--')

plt.show()
```
![image.png](https://qiita-image-store.s3.amazonaws.com/0/238800/44c144c5-0c12-b6ca-b320-3b9b5d86d8b3.png)

多分、境界線の色も変更できると思います。
plt.plot([qp[i][0][0] for i in ls], [qp[i][0][1] for i in ls],color = 'r',linewidth = 0.5,linestyle = '--')
色：アカ、線幅：0.5、線種：破線の場合

これは、japanmapのインストールが必要です。

japanmapのインストール方法

```shell-session
$ pip install japanmap
```

#####このライブラリ専用のデータをjapanmapのデータを元にして作成したものです。
japanmapの作者にご了承いただきました。

上記の方法を教えて頂いたので、もういらないかと思いましたが、せっかく作ったので・・・

#####使い方
japan_border1.py　をPythonパスの通ったフォルダに保存するか、地図のプログラムと同じフォルダに保存します。
専用の境界線データも入っていますので、japanmapのインストールは不要です。

japan_border2.pyにver upしました。
基本的には同じです。'cyl'以外の地図は、座標を変換しなければいけないのですが、ライブラリ側でどのようにすればよいかわからなかったのですが、変数mapを引数に追加したらうまくいきました。
ただし、引数mapは必須です。

```python:japan_border2.py
#この県境データは、ライブラリ(japanmap)を元に作成しました。作者：@SaitoTsutomu　氏
#https://qiita.com/SaitoTsutomu/items/6d17889ba47357e44131

#東北県境
tohoku_x = [[141.68267753023588, 141.68267753023588, 141.59763660308963, 141.58628474468472, 141.54353099225057, 141.44755618937253, #青森県-秋田県・岩手県　県境 
141.41556458841322, 141.3996425012998, 141.36042699044643, 141.3225383201858, 141.29600150833014, 141.10906441148015, 141.11112838573558, 
141.02724257492514, 140.98422345437243, 140.9533563358366, 140.9533563358366, 140.94619681617854, 140.96337966335787, 140.9899721649449, 
140.984449106923, 140.89280725529997, 140.86, 140.87951100450647, 140.8144456733998, 140.80348138043774, 140.767479224443, 140.7347499917205, 
140.7339317609024, 140.71167588265112, 140.6530905560778, 140.59728721428596, 140.56095776596396, 140.56946736647183, 140.545738672748, 
140.52904676405953, 140.53199239500455, 140.4454235744535, 140.43789585092733, 140.39665701769698, 140.3644187234653, 140.3398717989234, 
140.12156781666428, 140.099311938413, 140.06772822883576, 140.0300896112049, 140.02845314956878, 139.94611708229436], 
[141.63533141405455, 141.49790531854364, 141.4870865603022, 141.49531332438164, 141.4551937625696, 141.4591381015118, 141.43907832060577,  #岩手県-秋田県・宮城県　県境 
141.4254421774056, 141.40109997136233, 141.31917041676303, 141.306548532148, 141.28017780893447, 141.23318382782315, 141.19667051875828, 
141.14990192844368, 141.14854958366348, 141.10944428043658, 141.1504654054354, 141.144830635518, 140.99370610633272, 140.93363945901297, 
140.92146835599135, 140.82240910084306, 140.78263252982316, 140.78263252982316, 140.77293644045375, 140.80198363449497, 140.81016594267558, 
140.7659814785002, 140.77559569061245, 140.75841284343315, 140.81241607742527, 140.776209363726, 140.79257398008727, 140.7003184553507, 
140.71504661007583, 140.68374928128492, 140.6612479337882, 140.6900905701249, 140.68763587767074, 140.72854741857387, 140.72159245662033, 
140.74675305427576, 140.73529782282287, 140.80934771185755, 140.82878069378654, 140.82878069378654, 140.78418711420213, 140.85107748357873, 
140.78848282599694, 140.78950561451953, 140.83123538624073, 140.8856477356419, 140.85046381046521, 140.84944102194265, 140.87992011991545, 
140.87051046550775, 140.8844203894148, 140.8631463881452, 140.9533563358366, 140.9533563358366], 
[140.92991086748862, 140.92991086748862, 140.85882318145838, 140.8562729505694, 140.77546250927494, 140.79267656777554, 140.72796445896773,  #宮城県-山形県・福島県　県境 
140.69688352000833, 140.6834948078412, 140.6905079427859, 140.56921258612894, 140.48840214483448, 140.47055052861162, 140.47533221152847, 
140.4072729246789, 140.38687107756706, 140.3543556337326, 140.28247100054958, 140.28247100054958, 140.28263247690217, 140.36946398114023, 
140.4222641357363, 140.4313391623075, 140.48187056026077, 140.4773330469752, 140.50847688816273, 140.53033945217516, 140.52580193888957, 
140.57798334167396, 140.58334585737512, 140.61160219010816, 140.60665217561478, 140.57117707174555, 140.5569457800771, 140.5771583392584, 
140.54023948116193, 140.60376466716033, 140.6272772360039, 140.60830218044592, 140.60953968406926, 140.64769604578908, 140.60809592984202, 
140.59200838273853, 140.54147698478528, 140.54931450773313], 
[140.78263252982316, 140.78263252982316, 140.74949517811163, 140.64998514136997, 140.62045894700267, 140.56715402358384, 140.54931450773313,  #秋田県-山形県・宮城県　県境 
140.54931450773313, 140.4659892637612, 140.43278291653473, 140.3882327860943, 140.36307021241961, 140.3323388724399, 140.31212631325857, 
140.21250727157926, 140.2001322353458, 140.15310709765868, 140.11515698654276, 140.07163810912175, 140.0643780878648, 139.99722289123793, 
139.87812778367436],
[140.28247100054958, 140.28247100054958, 140.2679665623685, 140.29681604930008, 140.2368856234091, 140.17233290403186, 140.12371912771076,  #山形県-新潟県・福島県　県境 
140.05581923029175, 139.98935383774776, 139.94121822971832, 139.8967485785918, 139.86423313475734, 139.8173726421724, 139.78884193410195, 
139.74598116782087, 139.74598116782087, 139.7163244109592, 139.68441524218403, 139.66038951510623, 139.62866804732383, 139.65813710319267, 
139.6924863848742, 139.6924863848742, 139.67446708956587, 139.69173558090304, 139.68629225211197, 139.70618855734827, 139.78614918027904, 
139.84752740492308, 139.89520345709306, 139.8428348801032, 139.74128864300096, 139.7048746503987, 139.7204538328007, 139.55689144949235],
[140.79888514481524, 140.79888514481524, 140.62261965662776, 140.58315503604777, 140.56990199182314, 140.59729161655403, 140.54324864732698,  #福島県-新潟県・栃木県・茨城県　県境 
140.46917885571602, 140.4438508156423, 140.38406486058454, 140.36713041518644, 140.33650115742284, 140.29733104893674, 140.26410900997848, 
140.26410900997848, 140.24434270262623, 140.25105937564024, 140.20441581304294, 140.19490052627307, 140.1426597361641, 140.10161340107845, 
139.9450776050019, 139.84637982654598, 139.81988628299072, 139.8221251739954, 139.78648949217103, 139.68536624846007, 139.620624983575, 
139.58741476700573, 139.49991144357315, 139.4696864150101, 139.39561551734053, 139.39561551734053, 139.34112543023335, 139.24751182614216, 
139.23966897517553, 139.23966897517553, 139.25852168953165, 139.24838583592071, 139.26997145009216, 139.24294250712964, 139.26602972924348, 
139.22736332472766, 139.20746701949136, 139.17255463483144, 139.21929218203746, 139.2446318160648, 139.23937618826653, 139.20746701949136, 
139.2254863147997, 139.36644976038892, 139.40793167979666, 139.4218215532635, 139.45898634983698, 139.4811350669868, 139.58380751004577, 
139.59582037358467, 139.5564031650977, 139.55828017502563, 139.63260976817256, 139.6665836478685, 139.74598116782087]]

tohoku_y = [[40.44609416449402, 40.44609416449402, 40.40771321608381, 40.3735102141365, 40.345204281490446, 40.37174109334612, 40.354049885442336, 40.36201092899904, 40.327218220121594, 40.36820285176536, 40.34225574683981, 40.276798277595816, 40.25674824197153, 40.2154687568627, 40.219620293650785, 40.247329082569166, 40.247329082569166, 40.29028620051746, 40.345925896145715, 40.350017050236026, 40.424066939270695, 40.42161224681651, 40.44,40.50742420386083, 40.488156146581105, 40.445935436369076, 40.4514994059319, 40.437098543534, 40.41418808062824, 40.42662518906279, 40.40076909521201, 40.433171035607295, 40.42040663484552, 40.39553241797641, 40.39913263357589, 40.407969526410966, 40.426952481390025, 40.44822648265965, 40.47702820745546, 40.481937592363835, 40.47244611487431, 40.43611666655232, 40.432189158625626, 40.459681714112534, 40.46426380669369, 40.44495355938741, 40.41942475786385, 40.42498562165252],
[38.966873303557165, 38.99723526887574, 38.98303564868384, 38.911586766130924, 38.87281954909906, 38.81128786160082, 38.80723082726027, 
38.768012828635015, 38.79167886228819, 38.822106619842266, 38.79325659786507, 38.792805816271674, 38.745248358168624, 38.78063471325004, 
38.785593310777365, 38.80835778124376, 38.82188122904557, 38.85073125102277, 38.87281954909907, 38.87169259511559, 38.918348490031846, 38.91136137533424, 
38.958468051843894, 38.95460599641044, 38.95460599641044, 38.99379946929718, 39.02816516365581, 39.06948581996797, 39.079304589784726, 39.11898878446076, 
39.13739897786717, 39.17871963417934, 39.19344778890447, 39.23763225307985, 39.29613575657133, 39.331728797157055, 39.38000441542275, 39.38818672360338, 
39.420915956325885, 39.45159961200323, 39.47614653654511, 39.49373849913346, 39.53137711676435, 39.558378733760414, 39.60501789038998, 39.65124793161053, 
39.68602274137819, 39.7306163209626, 39.79402920936246, 39.826758442084966, 39.866851752170035, 39.88157990689516, 39.87380671412357, 39.97117618147302, 
40.07181857209473, 40.09800195827273, 40.13195853722233, 40.15445988471905, 40.16877892403515, 40.247329082569166, 40.247329082569166],
[37.894415329769224, 37.894415329769224, 37.89027120457464, 37.798462892571465, 37.803563354349414, 37.77264180482057, 37.781248834070865, 
37.80196946004381, 37.82906566323919, 37.88612707938005, 37.918642523214515, 37.896009224074845, 37.91768618663115, 37.94350727438204, 37.97060347757743, 
37.95083918818785, 37.94828895729887, 37.97347248732753, 37.97347248732753, 38.05345095628995, 38.0522134526666, 38.078613529964635, 38.12110115436616, 
38.17802632104005, 38.2675390831287, 38.310851709945794, 38.316626726854736, 38.34797681864616, 38.38881443821655, 38.43212706503364, 38.44945211576048, 
38.47626469426629, 38.4964772534476, 38.53483986577131, 38.57031496964054, 38.63301515322338, 38.64002767375567, 38.69117782352062, 38.70149035371516, 
38.71799040202644, 38.765428040921336, 38.78027808440148, 38.829778229335304, 38.86030331871115, 38.887528398424756],
[38.95460599641044, 38.95460599641044, 38.95125554634959, 38.882285962560346, 38.890400031241434, 38.87079103192881, 38.887528398424756,  
38.887528398424756, 38.915165979346135, 38.98735369070795, 38.98817869312351, 39.02035378733049, 39.02860381148612, 39.01045375834372, 39.03025381631725, 
39.0562413924075, 39.04592886221295, 39.076866452796594, 39.08651898105869, 39.129419106667996, 39.104009032268635, 39.11687906995143],
[37.97347248732753, 37.97347248732753, 37.833209788433784, 37.80069434459933, 37.74140147643061, 37.75192117884764, 37.73024421629134, 37.77232302595946, 
37.75606530404223, 37.82428398032237, 37.805794806377286, 37.82141497057227, 37.800056786877086, 37.825559095766856, 37.81789688093951, 37.81789688093951, 
37.85055685368588, 37.8456766278732, 37.86181891325359, 37.913624387265074, 38.03150061074049, 38.05402472987592, 38.07204402518426, 38.08030286886725, 
38.11258743962803, 38.17603037519282, 38.20531173006888, 38.194800474472345, 38.22445723133399, 38.28639855895642, 38.34120724885263, 38.361854358060114, 
38.39301272286412, 38.492869651031185, 38.54200990185169],
[36.85445131308342, 36.85445131308342, 36.89980617554102, 36.938976284027135, 36.914237268141164, 36.87388911127953, 36.8532732647079, 36.78700804358478, 
36.81616474087895, 36.832951930230145, 36.88095740153267, 36.885964107128636, 36.92719580027192, 36.93222071236355, 36.93222071236355, 36.94484438225589, 
37.022086121917035, 37.02320556741937, 37.06201301150033, 37.10082045558129, 37.12171677162489, 37.15044920618483, 37.13253807814746, 37.11350750460776, 
37.081043585040035, 37.086267664050936, 37.0556694869871, 37.0105185183929, 37.01201111239602, 36.96536754979871, 36.968352737804935, 36.8997397121249, 
36.8997397121249, 36.922132492572025, 36.924802399284076, 36.94616165298046, 36.94616165298046, 36.98337826697187, 37.01228421986233, 37.043442584666344, 
37.10350690236082, 37.15794019027144, 37.201862222585525, 37.18872315308986, 37.234146793346305, 37.28219824750188, 37.35314922277849, 37.38130437169777, 
37.406080902746744, 37.43874087549311, 37.46426821051327, 37.456760170801466, 37.50143300708673, 37.512695066654445, 37.50030680112996, 37.50218381105791, 
37.51907690040948, 37.60692096503766, 37.64783978146702, 37.68613078399725, 37.75182613147558, 37.81789688093951]]

#関東県境
kanto_x = [[140.26410900997848, 140.29733104893674, 140.33650115742284, 140.36713041518644, 140.38406486058454, 140.4438508156423, 140.46917885571602, #茨城県-福島県　県境
140.54324864732698, 140.59729161655403, 140.56990199182314, 140.58315503604777, 140.62261965662776, 140.79888514481524, 140.79888514481524],
[139.39561551734053, 139.4696864150101, 139.49991144357315, 139.58741476700573, 139.620624983575, 139.68536624846007, 139.78648949217103, #栃木県-福島県・茨城県　県境
139.8221251739954, 139.81988628299072, 139.84637982654598, 139.9450776050019, 140.10161340107845, 140.1426597361641, 140.19490052627307, 
140.20441581304294, 140.25105937564024, 140.24434270262623, 140.26410900997848, 140.26410900997848, 140.25087280138985, 140.26990337492956, 
140.26038808815971, 140.29098626522352, 140.22437925783458, 140.24527557387816, 140.26225383066358, 140.2120653573089, 140.19844543703047, 
140.16225003245495, 140.12754722188257, 140.10702405433975, 140.0713883725154, 140.0732541150193, 140.05123835347337, 139.97455633656338, 
139.96149613903614, 139.92100952670165, 139.91653174469232, 139.87959004311526, 139.84675297504674, 139.8254461956523, 139.68945890798042, 
139.68945890798042],
[138.71482701330035, 138.63093024482842, 138.64302825961738, 138.63093024482842, 138.64719998885496, 138.5781578699731, 138.6348933876041, #群馬県-長野県・新潟県・福島県・栃木県・埼玉県　県境
138.62425547804827, 138.63660379659152, 138.6145770662171, 138.60623360774196, 138.65429192855882, 138.64961959181275, 138.59955884096183, 
138.4655628978509, 138.45855439273177, 138.40448878181277, 138.4001501834057, 138.4323559331198, 138.43185532561128, 138.4602230844268, 
138.46205864529134, 138.53297804233014, 138.525635798872, 138.69917854129926, 138.69917854129926, 138.7292161856657, 138.79512950761944, 
138.8311732482321, 138.82516595813, 138.93296344162894, 138.92728988986585, 138.98352479998837, 138.9706758739366, 139.045767000213, 139.09265723684334, 
139.10333686369154, 139.17592495242536, 139.18627084093455, 139.23966897517553, 139.23966897517553, 139.24751182614216, 139.34112543023335, 
139.39561551734053, 139.39561551734053, 139.3536406179461, 139.40403510713602, 139.3551424404716, 139.36815823569285, 139.34229351441988, 
139.3329488409277, 139.3995296395594, 139.46911408324218, 139.4871359535485, 139.46711165320812, 139.44241501612169, 139.42355879996782, 
139.44057945525714, 139.38234211510056, 139.37399865662542, 139.4280642675444, 139.4225575849508, 139.4672785223776, 139.6368175985927, 
139.6736739565329, 139.6736739565329],
[138.73344503877428, 138.74140306238246, 138.71482701330035, 138.71482701330035, 138.75896438002664, 138.8239550831193, 138.85257864809842, #埼玉県-群馬県・栃木県・茨城県・千葉県・東京都・山梨県・長野県　県境
138.94536324762007, 138.9644456242728, 139.04796559165143, 139.0691221396795, 139.07161114532985, 139.1378463512477, 139.32590455594132, 
139.36476069970524, 139.46611854091145, 139.59457888808822, 139.6263828491761, 139.6736739565329, 139.6736739565329, 139.68945890798042, 
139.68945890798042, 139.73230386740798, 139.77434040728068, 139.77434040728068, 139.8961634060565, 139.89831337748814, 139.89831337748814, 
139.77461696346407, 139.75830014864508, 139.75622597726976, 139.69870229112817, 139.64518866964548, 139.6222345064255, 139.59609994709675, 
139.55627585669103, 139.54991506447345, 139.52447189560314, 139.54569758267704, 139.53359824965446, 139.3899618819151, 139.3688744729329, 
139.32596505260642, 139.2985254937874, 139.19222421080337, 139.06626151165767, 139.01959265571347, 138.9530463240893, 138.94469033004688, 
138.94469033004688, 138.89365207032589, 138.85794213283134, 138.8130941570864, 138.78193218332936, 138.73344503877428],
[139.77434040728068, 139.77434040728068, 139.79505598745268, 139.8889464429818, 139.93712862154064, 139.9397203279668, 140.07319320891338, #千葉県-茨城県　県境
140.12060965602814, 140.1522697061203, 140.2082270039576, 140.23988705404975, 140.27846813834807, 140.3224976963832, 140.36431841371422, 
140.4623909409764, 140.50215007365026, 140.49508178339713, 140.51628665415652, 140.61126680443297, 140.63541679613118, 140.71066463611763, 
140.7468896236649, 140.82213746365136, 140.85343421475076],
[139.89831337748814, 139.89831337748814, 139.88534479810681, 139.91897849665338, 139.88894198511716, 139.88678367291095, 139.88678367291095, #東京都-千葉県　県境
139.8716754874676],
[139.77388494441055, 139.7101650806816, 139.7084608155296, 139.6709669821856, 139.53434172583357, 139.49798406925754, 139.46815942909754, #東京都-神奈川県・山梨県　県境
139.45395721949754, 139.51019796951357, 139.47597064437755, 139.48988880978555, 139.48108343983355, 139.41457271700054, 139.35532287382551, 
139.2456995684755, 139.21330077782548, 139.17513233952548, 139.13352666822036, 139.13352666822036, 139.02773277903185, 138.94469033004688, 
138.94469033004688],
[139.11406251047714, 139.11406251047714, 139.0339031564891, 139.02688741743356, 138.9904360775581, 138.9767096315799, 139.02078677477658, #神奈川県-山梨県・静岡県　県境
139.00278987893847, 138.92060296654822, 138.92060296654822, 138.95496535923164, 139.10774325219185, 139.13115684328497, 139.12088181410022, 
139.13352666822036]]

kanto_y = [[36.93222071236355, 36.92719580027192, 36.885964107128636, 36.88095740153267, 36.832951930230145, 36.81616474087895, 36.78700804358478, 
36.8532732647079, 36.87388911127953, 36.914237268141164, 36.938976284027135, 36.89980617554102, 36.85445131308342, 36.85445131308342],
[36.8997397121249, 36.968352737804935, 36.96536754979871, 37.01201111239602, 37.0105185183929, 37.0556694869871, 37.086267664050936, 37.081043585040035, 
37.11350750460776, 37.13253807814746, 37.15044920618483, 37.12171677162489, 37.10082045558129, 37.06201301150033, 37.02320556741937, 37.022086121917035, 
36.94484438225589, 36.93222071236355, 36.93222071236355, 36.91723139319828, 36.82095907999743, 36.75453864685886, 36.71311916327245, 36.685133025714066, 
36.64669873013388, 36.51721620036375, 36.4590050342423, 36.40303275912553, 36.394077195106846, 36.4104957291411, 36.39183830410217, 36.400793868120864, 
36.38474848258738, 36.37168828506014, 36.37019569105703, 36.34743363250954, 36.33400028648152, 36.30265581241613, 36.31982064345193, 36.303028960916905, 
36.23653389807818, 36.196830097289585, 36.196830097289585],
[35.97962009681651, 36.024793533569344, 36.049823908994796, 36.08611795336171, 36.106142253702075, 36.167049500570684, 36.17288992150329, 
36.19424917519968, 36.210936092149986, 36.22461936404923, 36.27067525483208, 36.30171292035964, 36.40817545050259, 36.42185872240184, 36.40116694538347, 
36.41585143229974, 36.431203395894016, 36.48560274515201, 36.56002639475037, 36.594401443668005, 36.61242331397433, 36.6321138759757, 36.65747798974016, 
36.6925205153358, 36.7341545223588, 36.7341545223588, 36.76026939815404, 36.74458369622075, 36.76627668825615, 36.811998840699985, 36.8290194959893, 
36.88041520019624, 36.88875865867139, 36.97553062681298, 36.981204178576085, 37.010573152408625, 37.05128922976737, 36.99288502044131, 36.95784249484567, 
36.94616165298046, 36.94616165298046, 36.924802399284076, 36.922132492572025, 36.8997397121249, 36.8997397121249, 36.849043796329696, 36.820008560836165, 
36.76427425822215, 36.71488098404925, 36.6845107951997, 36.627107800890656, 36.600408733770166, 36.603078640482224, 36.57571209668372, 
36.551349197936275, 36.548011814546214, 36.49494741864425, 36.46524470647271, 36.407174235485655, 36.36211955971983, 36.331081894192266, 
36.31139133219091, 36.2723439465272, 36.26533544140808, 36.207265811488384, 36.207265811488384],
[35.90337075645406, 35.934028302315866, 35.97962009681651, 35.97962009681651, 36.03248230359666, 36.03358852833016, 36.0648393770513, 36.090005989738245, 
36.11849127662566, 36.124852068843246, 36.15333735573066, 36.19648012033685, 36.27668141351503, 36.22745441287462, 36.24681334571073, 36.186247541552035, 
36.206436142938266, 36.18514131681854, 36.207265811488384, 36.207265811488384, 36.196830097289585, 36.196830097289585, 36.08834665263798, 
36.08281552897052, 36.08281552897052, 35.87650461617424, 35.782074001573385, 35.782074001573385, 35.81400291873192, 35.80681245796422, 35.78109273291053, 
35.7998985533799, 35.794090873529065, 35.76781803610862, 35.77362571595946, 35.750394996556125, 35.76781803610863, 35.76449936190815, 35.7762529997015, 
35.791809285016235, 35.76035101915755, 35.78800663749485, 35.794488423042665, 35.836836088621666, 35.838132445731226, 35.86967713539721, 
35.896468515661475, 35.86838077828765, 35.85022492414765, 35.85022492414765, 35.83540193122538, 35.86033151023101, 35.86016306712961, 35.89469390291444, 
35.90337075645406],
[36.08281552897052, 36.08281552897052, 36.09724893923286, 35.983732197767566, 35.96323415603348, 35.94014440787325, 35.872760040793395, 
35.86893138357295, 35.83948017418491, 35.85656187562997, 35.84978809747072, 35.8698149198546, 35.86097955703818, 35.89396491155279, 35.91929295162652, 
35.903389298556974, 35.92312160884696, 35.95316184242277, 35.89308137527115, 35.85656187562997, 35.83388444440117, 35.78175580378433, 35.73816801389002, 
35.74050953670946],
[35.782074001573385, 35.782074001573385, 35.764569125443934, 35.69550313484569, 35.67553874693838, 35.64316406384544, 35.64316406384544, 
35.63399123696911],
[35.53488966130758, 35.53231555823086, 35.552198651670864, 35.578046673142865, 35.63854808603887, 35.600770208502865, 35.621789478710866, 
35.610143666838866, 35.57179770091886, 35.56469659611886, 35.52578254181485, 35.49538981327085, 35.569046022808855, 35.595231346758865, 
35.602332451558866, 35.64538289940888, 35.644939080358874, 35.66843127150357, 35.66843127150357, 35.715807329238906, 35.85022492414765, 
35.85022492414765],
[35.13808018045543, 35.13808018045543, 35.14745455892899, 35.17460241875257, 35.20480059990464, 35.25635103035614, 35.32284803531725, 35.39727587573243, 
35.39630286616761, 35.39630286616761, 35.452025432463095, 35.52411907985776, 35.56252410697454, 35.65415715413038, 35.66843127150357]]

#中部県境
chubu_x = [[139.55689144949235, 139.55689144949235, 139.7204538328007, 139.7048746503987, 139.74128864300096, 139.8428348801032, 139.89520345709306, #新潟県-山形県・福島県・群馬県・長野県・富山県　県境
139.84752740492308, 139.78614918027904, 139.70618855734827, 139.68629225211197, 139.69173558090304, 139.67446708956587, 139.6924863848742, 
139.6924863848742, 139.65813710319267, 139.62866804732383, 139.66038951510623, 139.68441524218403, 139.7163244109592, 139.74598116782087, 
139.74598116782087, 139.6665836478685, 139.63260976817256, 139.55828017502563, 139.5564031650977, 139.59582037358467, 139.58380751004577, 
139.4811350669868, 139.45898634983698, 139.4218215532635, 139.40793167979666, 139.36644976038892, 139.2254863147997, 139.20746701949136, 
139.23937618826653, 139.2446318160648, 139.21929218203746, 139.17255463483144, 139.20746701949136, 139.22736332472766, 139.26602972924348, 
139.24294250712964, 139.26997145009216, 139.24838583592071, 139.25852168953165, 139.23966897517553, 139.23966897517553, 139.18627084093455, 
139.17592495242536, 139.10333686369154, 139.09265723684334, 139.045767000213, 138.9706758739366, 138.98352479998837, 138.92728988986585, 
138.93296344162894, 138.82516595813, 138.8311732482321, 138.79512950761944, 138.7292161856657, 138.69917854129926, 138.69917854129926, 138.6673860290451, 
138.6906640989761, 138.67837845095696, 138.69829413300906, 138.64294405561753, 138.61281188731797, 138.59030975305132, 138.58733533300457, 
138.56573845701303, 138.516337219715, 138.3927048038592, 138.34420882483624, 138.2957128458133, 138.29390232926312, 138.2794181968616, 
138.25756267564861, 138.21488621410842, 138.1720804299575, 138.115307803848, 138.0753471171331, 138.0549141446381, 138.00965123088335, 
138.03461049475385, 138.00331442295771, 137.96516425279302, 137.91873743554171, 137.87295723134406, 137.8800376442814, 137.81727576476257, 
137.76212081094255, 137.76212081094255, 137.73345151739719, 137.7328286585102, 137.71507718023034, 137.71403908208532, 137.668881812777, 
137.63711600953943],
[137.5867335028175, 137.5440917202103, 137.50743390930606, 137.46298631358468, 137.40586122492556, 137.3915035823214, 137.31834070139166, #富山県-岐阜県　県境
137.31131462096835, 137.25220390088526, 137.21401868119335, 137.19599525749877, 137.1669744905329, 137.09686642717855, 137.0638743973647, 
137.05608461254755, 137.0062910860693, 136.96260719474174, 136.973604538013, 136.95252629674306, 136.91235544562716, 136.88394564217637, 
136.87691956175306, 136.8427056049091, 136.8332356704255, 136.79902369244175],
[137.05392544789453, 137.05392544789453, 136.99391039888562, 136.97963654939159, 136.93730160941504, 136.89902174031747, 136.85474036631896, #石川県-富山県・岐阜県　県境
136.8562001918354, 136.7961851428265, 136.82781469568252, 136.78629076988176, 136.79464421589248, 136.8191773947103, 136.79849653322748, 
136.7948469694364, 136.77080039912406, 136.8068094285294, 136.78507424861806, 136.79902369244175, 136.79902369244175, 136.8181143234275, 
136.85293924378652, 136.8005491223692, 136.7739722094636, 136.78451133009858, 136.7588508624656],
[136.24847687179584, 136.24847687179584, 136.26719234048034, 136.30344373150365, 136.33419057291385, 136.35518649786664, 136.41439972441881, #福井県-石川県・岐阜県・滋賀県・京都府　県境
136.443259291676, 136.4898906905411, 136.50923525060992, 136.5583043785894, 136.66729446092847, 136.7588508624656, 136.7588508624656, 136.76954272397936, 
136.74067469789227, 136.73456506274155, 136.75503234049643, 136.75640700840535, 136.79611963688495, 136.7897045199767, 136.82559862648708, 
136.8359850062433, 136.80543683048975, 136.79184289227945, 136.72952461374223, 136.66216588620568, 136.64628083481384, 136.57372891739917, 
136.52607376322365, 136.50759211689277, 136.49140158374337, 136.38035896487926, 136.33117640191608, 136.32842706609827, 136.28385836134527, 
136.28385836134527, 136.19408722252746, 136.15627317732063, 136.13930151923566, 136.17354258379305, 136.1742869547617, 136.11563052243298, 
136.10818681274662, 136.08674892884983, 136.0742434965767, 136.03106998039567, 136.00873885133652, 135.98744984163346, 135.94397857706497, 
135.89395684797248, 135.8655218769705, 135.852123199535, 135.81758438659017, 135.8107361736787, 135.7708702379708, 135.7708702379708, 135.70764488584433, 
135.53250888759928, 135.5294555554886, 135.50142753252405, 135.46204737735314, 135.4793495926469, 135.45327883385585, 135.48590801359396],
[138.73344503877428, 138.78193218332936, 138.8130941570864, 138.85794213283134, 138.89365207032589, 138.94469033004688, 138.94469033004688, #山梨県-埼玉県・東京都・神奈川県　県境
139.02773277903185, 139.13352666822036, 139.13352666822036, 139.12088181410022, 139.13115684328497, 139.10774325219185, 138.95496535923164, 
138.92060296654822, 138.92060296654822],
[138.69917854129926, 138.69917854129926, 138.525635798872, 138.53297804233014, 138.46205864529134, 138.4602230844268, 138.43185532561128, #長野県-群馬県・埼玉県・山梨県　県境
138.4323559331198, 138.4001501834057, 138.40448878181277, 138.45855439273177, 138.4655628978509, 138.59955884096183, 138.64961959181275, 
138.65429192855882, 138.60623360774196, 138.6145770662171, 138.63660379659152, 138.62425547804827, 138.6348933876041, 138.5781578699731, 
138.64719998885496, 138.63093024482842, 138.64302825961738, 138.63093024482842, 138.71482701330035, 138.71482701330035, 138.74140306238246, 
138.73344503877428, 138.73344503877428, 138.70950164973192, 138.67644469108427, 138.6267539761744, 138.59896086444513, 138.5128443288598, 
138.49663168035107, 138.47136521514267, 138.45009927359226, 138.37050990818577, 138.292478641467, 138.2449776868752, 138.19259188234307, 
138.24042972313768, 138.18534882898334, 138.22211373588755, 138.22211373588755],
[137.56654462938914, 137.56654462938914, 137.5705158922371, 137.61145044774685, 137.60213325414202, 137.58074953111455, 137.640929437349, #長野県-岐阜県・富山県　県境
137.6003003635968, 137.63375061604694, 137.63558350659216, 137.61389430180714, 137.55768565842064, 137.53706563978702, 137.54164786615004, 
137.52011140224377, 137.54852120569458, 137.50468457348825, 137.46741579906893, 137.3985296627447, 137.38753231947342, 137.34002990617665, 
137.32933804466293, 137.38844876474604, 137.4287723567407, 137.48116247815804, 137.5492849100884, 137.59953665920298, 137.61710186026127, 
137.55386713645143, 137.55631099051172, 137.59495443283993, 137.5743344142063, 137.64535892283328, 137.64780277689357, 137.5899139838406, 
137.5867335028175, 137.5867335028175, 137.6420988806355, 137.67386468387306, 137.7079143030297, 137.71227431523877, 137.68922853641936, 
137.69389997807195, 137.75410967048305, 137.76212081094255],
[136.6729855880087, 136.6729855880087, 136.64704453920766, 136.6446006851474, 136.61985666278702, 136.52973954431408, 136.5070193385974,  #岐阜県-三重県・滋賀県　県境
136.4152755255945, 136.4152755255945, 136.38285970017418, 136.39834261632186, 136.39625837760966, 136.4260332163552, 136.4159097711817, 
136.4477688486394, 136.4185895066688, 136.42350235506183, 136.38926129050444, 136.40489308084588, 136.3745227453254, 136.34951188077918, 
136.320630287196, 136.32405439365172, 136.2883245871571, 136.28385836134527],
[137.83776807973862, 137.87665377609957, 137.8930406817454, 137.92219413016176, 137.93477012751785, 138.0231831998394, 138.063007191467, #静岡県-長野県・山梨県・神奈川県　県境
138.09197009446888, 138.1441795380381, 138.15427844500584, 138.124934451175, 138.1630435340722, 138.1643773519736, 138.1426551747222, 138.16361517031567, 
138.15027699130164, 138.16895044192128, 138.1971511632652, 138.22211373588755, 138.22211373588755, 138.2336919990821, 138.26923349347527, 
138.24784121959883, 138.26030600910164, 138.23621864560297, 138.25575804536413, 138.25845313498638, 138.2820351691809, 138.3300414530769, 
138.3613718699353, 138.39859779534237, 138.43565527764804, 138.49595790794547, 138.53571047987336, 138.51684485251775, 138.53537359367058, 
138.5367211384817, 138.56737778293459, 138.58860161370964, 138.6131943065125, 138.66793831446407, 138.6894990314419, 138.92060296654822, 
138.92060296654822, 139.00278987893847, 139.02078677477658, 138.9767096315799, 138.9904360775581, 139.02688741743356, 139.0339031564891, 
139.11406251047714, 139.11406251047714],
[136.75269629739756, 136.75034088978646, 136.6729855880087, 136.6729855880087, 136.68095301429412, 136.76541872025265, 136.79199563315822, #愛知県-三重県・岐阜県・長野県・静岡県　県境
136.83659596975838, 136.92136715747444, 136.96581475319584, 136.9792559505274, 137.00827671749326, 137.05119690442697, 137.0505859409119, 
137.07059499603048, 137.08617456566478, 137.10603087990458, 137.16605804526029, 137.19324592168093, 137.31589684733137, 137.43656214155783, 
137.52301347894036, 137.5289703732123, 137.56654462938914, 137.56654462938914, 137.5494789751004, 137.58247964464582, 137.64672955155407, 
137.6836939886706, 137.76785491407549, 137.7765198943472, 137.83776807973862, 137.83776807973862, 137.81136417671638, 137.8339484338075, 
137.79541692579082, 137.80067122233856, 137.7105185552564, 137.70941238756214, 137.66433605402108, 137.64326355944544, 137.60336777793916, 
137.59348601320374, 137.50403391899462, 137.48213179864828, 137.48832633773617, 137.48832633773617]]

chubu_y = [[38.54200990185169, 38.54200990185169, 38.492869651031185, 38.39301272286412, 38.361854358060114, 38.34120724885263, 38.28639855895642, 
38.22445723133399, 38.194800474472345, 38.20531173006888, 38.17603037519282, 38.11258743962803, 38.08030286886725, 38.07204402518426, 38.05402472987592, 
38.03150061074049, 37.913624387265074, 37.86181891325359, 37.8456766278732, 37.85055685368588, 37.81789688093951, 37.81789688093951, 37.75182613147558, 
37.68613078399725, 37.64783978146702, 37.60692096503766, 37.51907690040948, 37.50218381105791, 37.50030680112996, 37.512695066654445, 37.50143300708673, 
37.456760170801466, 37.46426821051327, 37.43874087549311, 37.406080902746744, 37.38130437169777, 37.35314922277849, 37.28219824750188, 
37.234146793346305, 37.18872315308986, 37.201862222585525, 37.15794019027144, 37.10350690236082, 37.043442584666344, 37.01228421986233, 
36.98337826697187, 36.94616165298046, 36.94616165298046, 36.95784249484567, 36.99288502044131, 37.05128922976737, 37.010573152408625, 36.981204178576085, 
36.97553062681298, 36.88875865867139, 36.88041520019624, 36.8290194959893, 36.811998840699985, 36.76627668825615, 36.74458369622075, 36.76026939815404, 
36.7341545223588, 36.7341545223588, 36.77190759286149, 36.800358567221615, 36.822343411045345, 36.852863547177115, 36.86786497002155, 36.904075301025344, 
36.90717904368281, 36.97390951081838, 37.01296493925819, 37.02486261944515, 36.99253196676319, 36.91881807864832, 36.90562717235408, 36.84794928796946, 
36.83734483388978, 36.86295071081389, 36.862433420370984, 36.83967264088288, 36.84329367398326, 36.800099922000165, 36.79725482456415, 
36.823377991931174, 36.884418264194714, 36.9043339462468, 36.89838510615332, 36.91467975510503, 36.90795497934718, 36.86411461431044, 36.789996593037046, 
36.76515123969298, 36.76515123969298, 36.82053026301764, 36.87015135434955, 36.88696854429887, 36.94032678895285, 36.948216334855, 36.977283082915534],
[36.387103710407224, 36.38864031947952, 36.41979945874812, 36.410024042507, 36.42224331280841, 36.45523534262223, 36.42163234929334, 36.45859564195512, 
36.45156956153181, 36.4246871668687, 36.44668185341125, 36.451264079774276, 36.37947586675347, 36.36817304172466, 36.32723848621492, 36.28294363137229, 
36.27347369688869, 36.30616024494498, 36.34037420178894, 36.35350991736296, 36.34190161057662, 36.36145244305888, 36.34281805584922, 36.29363549288603, 
36.29730127397645],
[36.955220331262666, 36.955220331262666, 36.963792997521054, 36.944328657301945, 36.948545931016085, 36.918700609346786, 36.81132233247136, 
36.76331029326422, 36.71789349941963, 36.669881460212494, 36.62122060966472, 36.56542283436993, 36.54717501541452, 36.5086518420642, 36.44133766547311, 
36.42349535360559, 36.361209464904434, 36.340771907674366, 36.29730127397645, 36.29730127397645, 36.264003762405096, 36.245369375195445, 
36.166860563508855, 36.15800159254033, 36.130508234362146, 36.08224211667156],
[36.29056935658374, 36.29056935658374, 36.26210297144179, 36.254082056291296, 36.22184112284324, 36.165065625405425, 36.166481081020216, 
36.13109469065039, 36.153741980487084, 36.142103789876565, 36.14886652225835, 36.063624639678594, 36.08224211667156, 36.08224211667156, 
36.06452417473451, 36.04741719631253, 35.992124998198626, 35.9832660272301, 35.955161705536845, 35.94141502644776, 35.92339160275317, 35.89589824457499, 
35.853130798520034, 35.836940265370664, 35.79661667337599, 35.80303179028424, 35.78042614022662, 35.79997697270888, 35.774316505075916, 
35.78225903077184, 35.74835055568541, 35.76881783344029, 35.7905070382253, 35.770650723985504, 35.723606533325054, 35.65838175251251, 35.65838175251251, 
35.69738679126917, 35.69470705578207, 35.66552771381144, 35.60478704277054, 35.56399551368915, 35.57709644273719, 35.52618146848232, 35.53660266204326, 
35.52320398460777, 35.52767021041959, 35.48806967488803, 35.483305700688746, 35.51605802330884, 35.401424894138515, 35.39130144896504, 35.40916635221236, 
35.410059597374726, 35.38266674572883, 35.350078809959285, 35.350078809959285, 35.33975193255749, 35.37576559334997, 35.41459771455227, 
35.41929514856868, 35.46251154151963, 35.48787768520823, 35.523734764866816, 35.55222054011574],
[35.90337075645406, 35.89469390291444, 35.86016306712961, 35.86033151023101, 35.83540193122538, 35.85022492414765, 35.85022492414765, 35.715807329238906, 
35.66843127150357, 35.66843127150357, 35.65415715413038, 35.56252410697454, 35.52411907985776, 35.452025432463095, 35.39630286616761, 35.39630286616761],
[36.7341545223588, 36.7341545223588, 36.6925205153358, 36.65747798974016, 36.6321138759757, 36.61242331397433, 36.594401443668005, 36.56002639475037, 
36.48560274515201, 36.431203395894016, 36.41585143229974, 36.40116694538347, 36.42185872240184, 36.40817545050259, 36.30171292035964, 36.27067525483208, 
36.22461936404923, 36.210936092149986, 36.19424917519968, 36.17288992150329, 36.167049500570684, 36.106142253702075, 36.08611795336171, 
36.049823908994796, 36.024793533569344, 35.97962009681651, 35.97962009681651, 35.934028302315866, 35.90337075645406, 35.90337075645406, 
35.902273842476966, 35.86647968343171, 35.86732189893866, 35.91448596732769, 35.91659150609506, 35.89553611842138, 35.89637833392833, 35.94564794108473, 
35.96291335897714, 35.85729953440605, 35.87784959277556, 35.79261738347252, 35.7579181045863, 35.712101581008376, 35.64391465056147, 35.64391465056147],
[35.284018284231585, 35.284018284231585, 35.306623934289206, 35.332895365437246, 35.378412147310016, 35.39490816221692, 35.39857394330735, 
35.44622909748286, 35.46822378402541, 35.50549255844473, 35.530236580805095, 35.51404604765572, 35.53298591662291, 35.57361499037512, 35.60905087424923, 
35.64845802097129, 35.68022812375497, 35.75323826380592, 35.77248361453065, 35.796616673375944, 35.79600570986087, 35.81280720652532, 35.8894831276667, 
35.90109143445304, 35.89039957293931, 35.98204410019992, 36.014730648256204, 36.074299590975606, 36.107291620789425, 36.13478497896761, 
36.16411122769101, 36.21176638186653, 36.28844230300792, 36.34006872003139, 36.369700450512326, 36.387103710407224, 36.387103710407224, 
36.42522248939435, 36.506194144705844, 36.51346083172098, 36.53297707684734, 36.5367142301694, 36.56059048750485, 36.58737341964634, 36.76515123969298],
[35.133003711128126, 35.133003711128126, 35.160909135944806, 35.14288571225022, 35.145024084552965, 35.25140810661466, 35.23183818152255, 
35.216238560998214, 35.216238560998214, 35.24123626168752, 35.250466461698636, 35.287089513355646, 35.34098197148507, 35.364504094094045, 
35.386537474765746, 35.41184608769945, 35.46037907485468, 35.48747417811312, 35.52052424912067, 35.55446756529058, 35.53302968139379, 35.54523736527947, 
35.61401724278166, 35.62265194601786, 35.65838175251251],
[35.20853304824395, 35.21575573423718, 35.24852954552879, 35.25081609050262, 35.26948954112226, 35.29730917163723, 35.34075352614006, 35.333893891218565, 
35.36514333919428, 35.393344060538226, 35.44250477747564, 35.46041604643734, 35.48861676778128, 35.4966196751897, 35.542350574666365, 35.55378329953553, 
35.57779202176078, 35.57969747590564, 35.64391465056147, 35.64391465056147, 35.641692364627595, 35.51131740415219, 35.45505740828812, 35.41126220192687, 
35.375552264432315, 35.35533909226558, 35.31626029274324, 35.30244795842931, 35.32501933401549, 35.312891430715446, 35.20138209759566, 35.17577874618447, 
35.164661501492766, 35.19835012177065, 35.310533227296, 35.3280513098405, 35.40418759166851, 35.433159805107486, 35.4409081877714, 35.390038371151796, 
35.392733460774025, 35.349948913021116, 35.39630286616761, 35.39630286616761, 35.39727587573243, 35.32284803531725, 35.25635103035614, 35.20480059990464, 
35.17460241875257, 35.14745455892899, 35.13808018045543, 35.13808018045543],
[35.03389452797843, 35.07761089324075, 35.133003711128126, 35.133003711128126, 35.238501502358794, 35.356417460767446, 35.36588739525104, 
35.351529752646876, 35.37352443918943, 35.39368623518677, 35.41720833051699, 35.37688473852232, 35.36008324185788, 35.33656114652766, 35.33197892016463, 
35.28890599235214, 35.29776496332067, 35.27851961259594, 35.249804327387615, 35.286156656534324, 35.22017259690669, 35.26507841526439, 35.28187991192884, 
35.284018284231585, 35.284018284231585, 35.24858099931871, 35.195853672559004, 35.20617790437209, 35.231619761340056, 35.21816138772656, 
35.2021219561598, 35.20853304824395, 35.20853304824395, 35.17981424099223, 35.14662921016444, 35.13003669475055, 35.10182941854693, 35.0137047255709, 
34.96872057267101, 34.942356909291156, 34.88778596970768, 34.86979230854772, 34.84825891076614, 34.82672551298456, 34.77230206242699, 34.66964970039971, 
34.66964970039971]]

#関西県境
kansai_x = [[136.05657566971172, 136.05657566971172, 136.02584560455733, 136.02584560455733, 136.09568138047345, 136.09032190949927, 136.12858257728726, #三重県-愛知県・岐阜県・滋賀県・京都府　県境
136.08660005465606, 136.1130996611396, 136.13245330632418, 136.1791998031547, 136.25192484679067, 136.3669301614453, 136.38293413727104, 
136.41978050021865, 136.42182752038238, 136.44564739137883, 136.4431537486339, 136.45744567123174, 136.41397440666327, 136.4152755255945, 
136.4152755255945, 136.5070193385974, 136.52973954431408, 136.61985666278702, 136.6446006851474, 136.64704453920766, 136.6729855880087, 
136.6729855880087, 136.75034088978646, 136.75269629739756],
[135.7708702379708, 135.7708702379708, 135.8107361736787, 135.81758438659017, 135.852123199535, 135.8655218769705, 135.89395684797248, #滋賀県-福井県・岐阜県　県境
135.94397857706497, 135.98744984163346, 136.00873885133652, 136.03106998039567, 136.0742434965767, 136.08674892884983, 136.10818681274662, 
136.11563052243298, 136.1742869547617, 136.17354258379305, 136.13930151923566, 136.15627317732063, 136.19408722252746, 136.28385836134527, 
136.28385836134527, 136.2883245871571, 136.32405439365172, 136.320630287196, 136.34951188077918, 136.3745227453254, 136.40489308084588, 
136.38926129050444, 136.42350235506183, 136.4185895066688, 136.4477688486394, 136.4159097711817, 136.4260332163552, 136.39625837760966, 
136.39834261632186, 136.38285970017418, 136.4152755255945, 136.4152755255945],
[135.48590801359396, 135.48590801359396, 135.45327883385585, 135.4793495926469, 135.46204737735314, 135.50142753252405, 135.5294555554886, #京都府-福井県・滋賀県 県境
135.53250888759928, 135.70764488584433, 135.7708702379708, 135.7708702379708, 135.83366279951275, 135.86433088342065, 135.83381167370646, 
135.85897141244644, 135.83812902532455, 135.8196686253023, 135.83530041564376, 135.87936717698713, 135.86433088342065, 135.89708320604072, 
135.94382970287123, 135.9512734125576, 136.00531474488076, 136.00591024165567, 136.028687993296, 136.0126095803734, 136.02584560455733],
[135.37352001753285, 135.38609115041254, 135.49114216648528, 135.48891452217123, 135.54413665227196, 135.58353078329924, 135.58095140567244, #大阪府-京都府・奈良県・和歌山県　県境
135.56219229565946, 135.5804824279221, 135.61647647025953, 135.60826935962885, 135.63570455802284, 135.675684911238, 135.69608544337711, 
135.74263148509684, 135.73383845211288, 135.73383845211288, 135.71120997582508, 135.70358908738228, 135.67486420017488, 135.68189886642975, 
135.65434642359816, 135.6813126442418, 135.6603258899148, 135.6806091776163, 135.68776108830875, 135.67005717823398, 135.67967122211564, 
135.65466771602584, 135.65466771602584, 135.579075494671, 135.5130668763128, 135.4861006556691, 135.38761532810094, 135.34071755306846, 
135.30296484416732, 135.21256938279222, 135.18384449558485, 135.11537374403744, 135.09579392296138, 135.09579392296138],
[134.86840419156005, 134.86840419156005, 134.87565876542183, 134.85714294768255, 134.91758538719938, 134.92831179195872, 135.0330219336569, #兵庫県-京都府・大阪府　県境
135.0464725047043, 135.05311266003153, 134.9982888134839, 134.935632988858, 134.92643892763576, 135.05873125300076, 135.07218182404816, 
135.11304431836942, 135.16088748880387, 135.1613982699829, 135.2046444098062, 135.19289644268886, 135.20634701373626, 135.2802400243005, 
135.29607424084998, 135.2867099192347, 135.34170402617536, 135.34800366071656, 135.39295240446992, 135.40538141315932, 135.37352001753285, 
135.37352001753285, 135.33676647477824, 135.35958136744094, 135.3551545972228, 135.47059114368034, 135.42751526425002, 135.44743573023163, 
135.425301879141, 135.46582385267627, 135.40828064587507, 135.40828064587507],
[134.4020482498653, 134.44177473519255, 134.5197539951889, 134.51805139125884, 134.47804019890262, 134.48399931265777, 134.44705280737566, #兵庫県-鳥取県　県境
134.43615614222333, 134.42134348803188, 134.4284944245381, 134.40346614676633, 134.37792708781555, 134.37792708781555],
[134.4020482498653, 134.4020482498653, 134.38193061634595, 134.3866753412326, 134.4140049565796, 134.40982959867935, 134.3692147536498, #兵庫県-岡山県　県境
134.3506154320942, 134.32100834880163, 134.31854109186057, 134.26558996212574, 134.28570759564505, 134.2574290353207, 134.2963357793911, 
134.2672980630849, 134.2574290353207, 134.2667286960985, 134.31967982583333, 134.3346731564751, 134.32145119796377, 134.32145119796377],
[135.73383845211288, 135.75989781384018, 135.8229805370459, 135.89289589777772, 135.9294425636148, 135.93166714327444, 135.97854221467418, #奈良県-京都府・三重県・和歌山県　県境
135.9912540984436, 136.0233516049614, 136.05657566971172, 136.05657566971172, 136.0710211690967, 136.05783258968592, 136.07944279209394, 
136.0880233136383, 136.07404024149193, 136.04353172044532, 136.07594702405734, 136.05004656087715, 136.1167839506666, 136.15841537001145, 
136.17192174651643, 136.21609554261516, 136.23103200604422, 136.20815061525929, 136.09628603808838, 136.0724512560207, 136.12933693588883, 
136.0978750235595, 136.13616957341486, 136.09580934244696, 136.11630725502513, 136.10661444365093, 136.1186907332319, 136.09771612501234, 
136.09422035697574, 136.105343255274, 136.02319270641408, 135.90219146278392, 135.88672644223195, 135.87597320250947, 135.8630649185521, 
135.8630649185521, 135.8529329131774, 135.81658487052422, 135.7558061762517, 135.66463813484287, 135.65272074380906, 135.62411900532786, 
135.62570799079904, 135.600681469628, 135.61895480254654, 135.63841987456846, 135.63841987456846, 135.6267011067185, 135.59651038276616, 
135.58737371630687, 135.54685458679185, 135.59591451321447, 135.62650248353464, 135.64249164983835, 135.6717885694632, 135.71349943808158, 
135.73187208259208, 135.7100235323634, 135.67576103314113, 135.65466771602584, 135.65466771602584],
[135.8630649185521, 135.86289512487164, 135.89595632487655, 135.91076235846654, 135.96956586687222, 135.98100689282813, 136.00792116259532, #和歌山県-三重県　県境
136.00792116259532]]

kansai_y = [[34.73402673584134, 34.73402673584134, 34.78752189203203, 34.78752189203203, 34.81128759020198, 34.83332097087368, 34.86041607413211, 
34.87411249995506, 34.8985278677264, 34.88096071286653, 34.88364044835363, 34.85635460003443, 34.900388795147954, 34.945795424234895, 34.97891993233931, 
35.04479676306382, 35.06601133567001, 35.131664855103935, 35.15697346803765, 35.18525956484591, 35.216238560998214, 35.216238560998214, 
35.23183818152255, 35.25140810661466, 35.145024084552965, 35.14288571225022, 35.160909135944806, 35.133003711128126, 35.133003711128126, 
35.07761089324075, 35.03389452797843],
[35.350078809959285, 35.350078809959285, 35.38266674572883, 35.410059597374726, 35.40916635221236, 35.39130144896504, 35.401424894138515, 
35.51605802330884, 35.483305700688746, 35.48806967488803, 35.52767021041959, 35.52320398460777, 35.53660266204326, 35.52618146848232, 35.57709644273719, 
35.56399551368915, 35.60478704277054, 35.66552771381144, 35.69470705578207, 35.69738679126917, 35.65838175251251, 35.65838175251251, 35.62265194601786, 
35.61401724278166, 35.54523736527947, 35.53302968139379, 35.55446756529058, 35.52052424912067, 35.48747417811312, 35.46037907485468, 35.41184608769945, 
35.386537474765746, 35.364504094094045, 35.34098197148507, 35.287089513355646, 35.250466461698636, 35.24123626168752, 35.216238560998214, 
35.216238560998214],
[35.55222054011574, 35.55222054011574, 35.523734764866816, 35.48787768520823, 35.46251154151963, 35.41929514856868, 35.41459771455227, 35.37576559334997, 
35.33975193255749, 35.350078809959285, 35.350078809959285, 35.275477326244896, 35.27994355205673, 35.21622539714128, 35.15042300351364, 
35.05425027436556, 35.04174484209243, 34.99082986783756, 34.94557211294434, 34.897336874176574, 34.86934852575577, 34.88899991932782, 34.85029262895863, 
34.84016918378515, 34.825579512799834, 34.81843355150091, 34.795804674054295, 34.78752189203203],
[35.04244699002565, 35.007325141103706, 34.98645563121426, 34.9426062115589, 34.913295102163616, 34.91915732404267, 34.934399100928225, 
34.935806034179194, 34.97074487657839, 34.96488265469932, 34.92290914604527, 34.930647278925626, 34.898522303028386, 34.84623128386719, 
34.805899197339265, 34.77754317815167, 34.77754317815167, 34.776822576819136, 34.71866933577888, 34.7017861367672, 34.674819916123525, 34.60447325357483, 
34.58899698781411, 34.55312018991428, 34.517243392014436, 34.45322792909512, 34.418289086695935, 34.40328179868555, 34.38057145833301, 34.38057145833301, 
34.37232926716412, 34.33387309163749, 34.357790956904054, 34.32613495875714, 34.33293513613685, 34.29893424923831, 34.30432749336704, 34.27595433947239, 
34.26915416209268, 34.308548293119955, 34.308548293119955],
[35.654771120298115, 35.654771120298115, 35.619405074431384, 35.58516145288822, 35.53919114677684, 35.51101305173449, 35.53433872557619, 
35.51373721802257, 35.40732447239435, 35.3825515852121, 35.40323822296223, 35.310446308774424, 35.25783584733583, 35.23485069428014, 35.260815404213425, 
35.25749532654982, 35.22216629500125, 35.19662723605048, 35.17270565083326, 35.16129820450191, 35.172109739457746, 35.15848890801733, 35.1407818271448, 
35.14597476913145, 35.13235393769104, 35.12579891256034, 35.07957321585945, 35.04244699002565, 35.04244699002565, 35.034539341909586, 35.016321479858036, 
34.9588585972188, 34.92242287311569, 34.907269698138236, 34.89143548158876, 34.825033928316756, 34.73956321102817, 34.695247549596615, 
34.695247549596615],
[35.2383310580419, 35.2260278539209, 35.27259407140781, 35.351084112583194, 35.37270718249485, 35.42233808705586, 35.43893847537387, 35.50116864901725, 
35.51223557456259, 35.55607762576142, 35.593449782026056, 35.60264384324834, 35.60264384324834],
[35.2383310580419, 35.2383310580419, 35.209712071477156, 35.19130253891703, 35.18152840565057, 35.14451955153484, 35.1414829276074, 35.08720327490434, 
35.078283192117475, 35.041179443504014, 35.011667254709174, 34.9937321946377, 34.93745975748225, 34.90320284380078, 34.88061795334041, 34.84806914061812, 
34.826338300637346, 34.79853421280169, 34.766649661563534, 34.72504735442972, 34.72504735442972],
[34.77754317815167, 34.72603359843734, 34.70919035244285, 34.71046154081979, 34.75241075725888, 34.7355675112644, 34.73683869964134, 34.712368323385206, 
34.70442339602932, 34.73402673584134, 34.73402673584134, 34.715228497233326, 34.69870304833308, 34.69457168610802, 34.67200809241729, 34.652622469668934, 
34.65611823770552, 34.63387244110904, 34.5788935438063, 34.54425366053463, 34.55601215302134, 34.51724090752462, 34.525821429068976, 34.48895696613766, 
34.446372155510105, 34.4311178949868, 34.39202885239583, 34.31416856430814, 34.299232100879074, 34.24679558033022, 34.18895650917936, 34.16321494454629, 
34.114274192034024, 34.080269902950825, 34.08217668551624, 34.04912578771575, 34.025291005648086, 34.0316469475328, 33.90039674761355, 
33.903445455141096, 33.85590515442058, 33.868434062260505, 33.868434062260505, 33.888479356579715, 33.902780225820315, 33.88410964653398, 
33.897218776671195, 33.874972980074716, 33.8690142845578, 33.88887660294752, 33.89960225487796, 33.94488834080652, 33.951641529059025, 
33.984215731218164, 34.00566703507906, 34.01043399149259, 34.049761381904226, 34.07359616397189, 34.144306017439284, 34.15423717663414, 
34.207468189918586, 34.22137181279139, 34.207468189918586, 34.22683395034856, 34.269041376926715, 34.273510398564405, 34.38057145833301, 
34.38057145833301],
[33.868434062260505, 33.814235128868106, 33.79623233802573, 33.766620270845756, 33.72253867083921, 33.73397969679511, 33.726458622496196, 
33.726458622496196]]

#中国県境
chugoku_x = [[134.37792708781555, 134.37792708781555, 134.40346614676633, 134.4284944245381, 134.42134348803188, 134.43615614222333, 134.44705280737566, #鳥取県-兵庫県・岡山県　県境
134.48399931265777, 134.47804019890262, 134.51805139125884, 134.5197539951889, 134.44177473519255, 134.4020482498653, 134.4020482498653, 
134.3878140752054, 134.32328581674722, 134.27887519180834, 134.2600860812573, 134.17942575818458, 134.1564612897333, 134.1625345375882, 
134.14241690406885, 134.1520961428376, 134.14146795909153, 134.09117387529324, 134.01013397422957, 134.01677658907084, 133.93440816503895, 
133.92890428417044, 133.8685513836125, 133.84330944721563, 133.75240051838776, 133.60208763397927, 133.56934903226153, 133.5128868061106, 
133.53139123316848, 133.50576971878067, 133.45120538258442, 133.40399536996244, 133.4125358747584, 133.32926595299799, 133.30127207616687, 
133.29249433512658, 133.2679370669107, 133.2679370669107],
[133.24799263668717, 133.19670191186034, 133.2234615901583, 133.31126934188217, 133.3198618991338, 133.2943310679798, 133.29240667664823, #島根県-鳥取県・広島県・山口県　県境
133.31056492766976, 133.1559097750669, 133.15404966154762, 133.18257140217656, 133.19550361997725, 133.15112662601732, 133.13580283369183, 
133.13580283369183, 133.06751009448405, 133.0424428503909, 132.99345986104993, 132.95537182232184, 132.90001130091474, 132.87361540430786, 
132.83579309608254, 132.8398676304581, 132.7519108340465, 132.75306233289177, 132.68840124388828, 132.63640664218275, 132.702042076363, 
132.71160837446214, 132.70106773118624, 132.6863639767005, 132.6665227658282, 132.62205719503405, 132.54357811988737, 132.46022731885685, 
132.44127187632708, 132.4026523765935, 132.36810741123546, 132.33807902021672, 132.3177191383299, 132.29668633183036, 132.28203848444676, 
132.2491284653096, 132.2225833641083, 132.1360843953154, 132.16623797985642, 132.12265834672417, 132.1320125609066, 132.12012720641596, 
132.04254225349104, 132.06015018606976, 132.06165894423484, 132.06165894423484, 132.02368217169945, 131.995841091834, 132.0134181791223, 
131.95863411874188, 131.9242497436085, 131.88652957088752, 131.88242397385667, 131.82045511867224, 131.77708975003387, 131.7673389570856, 
131.79428193760057, 131.7010720550095, 131.69997894599803, 131.67049305382403, 131.7268864754035, 131.71895305150016, 131.69969797056814, 
131.69065652954873, 131.69065652954873],
[134.4020482498653, 134.4020482498653, 134.38193061634595, 134.3866753412326, 134.4140049565796, 134.40982959867935, 134.3692147536498, #岡山県-兵庫県　県境
134.3506154320942, 134.32100834880163, 134.31854109186057, 134.26558996212574, 134.28570759564505, 134.2574290353207, 134.2963357793911, 
134.2672980630849, 134.2574290353207, 134.2667286960985, 134.31967982583333, 134.3346731564751, 134.32145119796377, 134.32145119796377],
[133.13580283369183, 133.1448341993632, 133.24457338458114, 133.2679370669107, 133.2679370669107, 133.3183510192588, 133.29512128541822, #広島県-鳥取県・岡山県　県境
133.338142752491, 133.37874832724432, 133.36137248633156, 133.405601899564, 133.38748270716837, 133.45243304298663, 133.45053765091876, 
133.45053765091876],
[132.06165894423484, 132.07808133235824, 132.07117879735011, 132.10751333107316, 132.12855451585628, 132.1425135457612, 132.17227912423488, #山口県-広島県　県境
132.1980417456035, 132.19639950679115, 132.23287274202522, 132.23287274202522, 132.2480172657897]]

chugoku_y = [[35.60264384324834, 35.60264384324834, 35.593449782026056, 35.55607762576142, 35.51223557456259, 35.50116864901725, 35.43893847537387, 
35.42233808705586, 35.37270718249485, 35.351084112583194, 35.27259407140781, 35.2260278539209, 35.2383310580419, 35.2383310580419, 35.24785965956567, 
35.1990838877311, 35.1938646903558, 35.206200975061044, 35.168148281470266, 35.194528951839935, 35.228690971023674, 35.23191738394659, 35.25706442584573, 
35.277182059365046, 35.302518890259655, 35.30546061968936, 35.347783565678114, 35.327571037661066, 35.304132096721105, 35.28771534861336, 
35.245771980615544, 35.31181855103745, 35.33990732236631, 35.24859509192309, 35.22937895613224, 35.18003381731127, 35.18726952276338, 35.16900233194985, 
35.1795593448226, 35.11479385012008, 35.092730879397244, 35.10032243921585, 35.06521147505478, 35.05471211277933, 35.05471211277933],
[35.548764300781755, 35.52450723702554, 35.474588571087466, 35.425160908420914, 35.372132555096535, 35.348750720687796, 35.31835827576734, 
35.271944014619635, 35.21507768703027, 35.20055108621305, 35.19877954952803, 35.164943198844014, 35.1374843802261, 35.07069744720059, 35.07069744720059, 
35.081149513642245, 35.06343414679198, 35.09603042179648, 35.072114676548615, 35.09939634149803, 35.09603042179648, 35.06059968809594, 35.04270716757717, 
34.973085775855616, 34.956610484684866, 34.94739849392273, 34.89549246905144, 34.87547410451064, 34.84748382488721, 34.83720891211406, 34.84606659553919, 
34.825871077329886, 34.83472876075502, 34.78920026794983, 34.79522349267892, 34.814533242545714, 34.77485082080111, 34.79664072202694, 34.78505128776017, 
34.79487911698763, 34.77271955299705, 34.7936271642198, 34.80114015979889, 34.742703161295125, 34.70352551130752, 34.68173569474138, 34.612624559369976, 
34.587973453759794, 34.56442284393578, 34.50015389002351, 34.48848863469013, 34.46357544162566, 34.46357544162566, 34.45510764774952, 34.41777237475021, 
34.36863351028719, 34.30307225770077, 34.33258123636002, 34.321034244710745, 34.306664655102765, 34.3006345594637, 34.332966136081666, 34.36401471362749, 
34.43021746574999, 34.432719313940666, 34.472679196756026, 34.50110729907625, 34.572871729468375, 34.60460542508166, 34.615596522781054, 
34.675837727190284, 34.675837727190284],
[35.2383310580419, 35.2383310580419, 35.209712071477156, 35.19130253891703, 35.18152840565057, 35.14451955153484, 35.1414829276074, 35.08720327490434, 
35.078283192117475, 35.041179443504014, 35.011667254709174, 34.9937321946377, 34.93745975748225, 34.90320284380078, 34.88061795334041, 34.84806914061812, 
34.826338300637346, 34.79853421280169, 34.766649661563534, 34.72504735442972, 34.72504735442972],
[35.07069744720059, 35.059923297118566, 35.075422175537, 35.05471211277933, 35.05471211277933, 35.00498962253236, 34.89367273796828, 34.83160288914625, 
34.80577142511552, 34.728648708764794, 34.667322211425656, 34.6164026348471, 34.5387224048842, 34.473679921198205, 34.473679921198205],
[34.46357544162566, 34.443304056285825, 34.35562389969568, 34.32688472047971, 34.32924543877245, 34.23255862869588, 34.2206523973064, 34.2310190298093, 
34.200637611781, 34.205545780686485, 34.205545780686485, 34.203587206601]]

#四国県境
shikoku_x = [[134.31072520563927, 134.31072520563927, 134.1966361866333, 134.1753377609687, 134.15526026416384, 134.18171372279187, 134.17316722077356, #徳島県-香川県・愛媛県・高知県　県境
134.06301230587124, 134.05812859043218, 134.03208210809075, 133.99735346496882, 133.9653379970908, 133.94526050028594, 133.9082256582067, 
133.83686914929214, 133.75031885901177, 133.68303211296305, 133.66031091720555, 133.66031091720555, 133.69070826729893, 133.6764965192033, 
133.69130042346958, 133.68442572531077, 133.68442572531077, 133.7206287009542, 133.78259472438108, 133.8166086828926, 133.82586990921996, 
133.85735807873309, 133.93902525634732, 133.94660262334244, 133.9996441923084, 134.05420123467337, 134.12879620309215, 134.14125676215085, 
134.1751023347291, 134.2697352292017, 134.30896915164317, 134.36083201907655, 134.41791485043987, 134.43492182969564, 134.44227004669872], 
[133.68442572531077, 133.60106534809066, 133.60106534809066], #香川県・愛媛県　県境
[133.66031091720555, 133.66031091720555, 133.57898813643624, 133.54760385939176, 133.50042875112996, 133.4151582625563, 133.3249531392272, #愛媛県・高知県　県境
133.28251528033059, 133.25118034963367, 133.19714609906183, 133.1467093683284, 133.12482674754318, 133.11960858412516, 133.07988321100746, 
133.08055652241623, 133.05109914828233, 133.06709029424073, 133.01726524999137, 132.81611346661978, 132.83934271022252, 132.89825745849035, 
132.9049905725781, 132.7949041572434, 132.77672474920644, 132.745079112994, 132.69474908518808, 132.6238582885846, 132.6310342594034, 132.66633227802566, 
132.66070786846495, 132.680490274506, 132.69663910885578, 132.6568755373749, 132.6568755373749]]

shikoku_y = [[33.54839724679985, 33.54839724679985, 33.56040304725409, 33.605102609397335, 33.613920428940006, 33.645596749912535, 33.6816141512753, 
33.68717616052529, 33.775150867808726, 33.82541243920197, 33.81815469542453, 33.83172057164403, 33.797873710476374, 33.78844542650382, 33.8402670736623, 
33.832941500503765, 33.85295116792752, 33.87865702815412, 33.87865702815412, 33.91408770569804, 33.92356220442844, 33.944090285010994, 34.00848872640096, 
34.00848872640096, 34.01867607536109, 34.07668502935718, 34.06818153972931, 34.08922978138246, 34.100848410775, 34.111877689401254, 34.08906139544924, 
34.07020217092801, 34.11086737380191, 34.117181846297854, 34.15144838370919, 34.16828697703171, 34.178726904891676, 34.16677150363269, 34.18116850092345, 
34.15464771644048, 34.166266345833016, 34.20459045681294], 
[34.00848872640096, 34.04038897435246, 34.04038897435246], 
[33.87865702815412, 33.87865702815412, 33.864741358143846, 33.876979252337286, 33.82674467052711, 33.83513354961133, 33.81213815165107, 
33.82743551939287, 33.78487429462737, 33.78857527069394, 33.7004171100238, 33.68922330785291, 33.65732517986219, 33.64874045940031, 33.60236613612092, 
33.57635948295698, 33.540758142217996, 33.476036083049486, 33.46231736309569, 33.39692199251841, 33.34751776789953, 33.317639574135136, 
33.26932948055552, 33.2022508314563, 33.19602270092513, 33.132983920278555, 33.17534507188015, 33.12773153577156, 33.104458116899735, 33.05277173248857, 
33.03357116191932, 32.970152522572356, 32.92138105822251, 32.92138105822251]]

#九州県境
kyushu_x = [[130.8422441593718, 130.8422441593718, 130.77346241765474, 130.73682866391414, 130.69982109635987, 130.68318638165113, 130.6615051804577, #福岡県・熊本県　県境
130.5773970723798, 130.5661826579694, 130.50169977510967, 130.50992367901063, 130.41740476012492, 130.41740476012492],
[130.0443296375459, 130.0443296375459, 130.17700958231327, 130.21165165605458, 130.27548111236803, 130.39682406679896, 130.4134752293155, #佐賀県・福岡県　県境
130.50419535612983, 130.54515338806706, 130.54840706350134, 130.5324257753389, 130.48065405739953, 130.48735280094067, 130.46218466449324, 
130.4694575860522, 130.4503183187918, 130.43500690498345, 130.4167289047498, 130.39663267412638, 130.37443112410432, 130.3785460665653, 
130.34332981480617, 130.36261841820817, 130.36261841820817],
[129.7974044551528, 129.77885512322018, 129.76233129813477, 129.8141137077334, 129.82097924069143, 129.89673283316048, 129.94351154924738, #長崎県・佐賀県　県境
129.95677715530186, 129.9335041622238, 129.926405899335, 130.05813104015678, 130.2131291740566, 130.2131291740566],
[131.88762805939655, 131.8495625072933, 131.86159472203857, 131.79793336765906, 131.76861851718874, 131.7388661316368, 131.7123952591972, #大分県-福岡県・熊本県・宮崎県　県境
131.5999487432141, 131.57216526552955, 131.512222959344, 131.51834845048705, 131.47590754756737, 131.36674254469662, 131.33033228441442, 
131.33033228441442, 131.2597652172341, 131.2501394454379, 131.26217166018316, 131.21557417398785, 131.1744458763131, 131.1641638018944, 
131.11078452193354, 131.06134305770752, 131.01715201446123, 130.99308758497068, 130.98346181317447, 131.02371504068594, 130.99308758497068, 
130.8422441593718, 130.8422441593718, 130.86130866386947, 130.8897185137091, 130.84149653174444, 130.8596265017079, 130.82897376898617, 
130.8304690242409, 130.87383142662773, 130.85663599119846, 130.867663498702, 130.8437394146265, 130.88766253773386, 130.900372207399, 130.9781628620257, 
131.0343844596031, 131.17224101306718, 131.19128458399126, 131.17377215444802, 131.18597557607038, 131.18597557607038],
[130.72308705491992, 130.72308705491992, 130.86147240407578, 130.90960254787586, 130.97787474698885, 131.01382597362297, 131.06418111190527, #宮崎県-熊本県　県境
131.11324809548734, 131.10434811755835, 131.04684957593832, 131.0562179737583, 131.08174685781768, 131.1120770457598, 131.08092712300842, 
131.0716758301612, 131.0482548356113, 131.0248338410614, 131.0113667691952, 131.0217891117699, 131.05211929971202, 131.11125731095052, 131.1192204490975, 
131.14931642709413, 131.1751966260718, 131.18714133329223, 131.2376135765473, 131.2366767367653, 131.25693589705097, 131.33033228441442, 
131.33033228441442],
[130.36157469640256, 130.3978303959658, 130.4571089331716, 130.481700977449, 130.5239758726116, 130.58557308827787, 130.60700329829103, #鹿児島県-熊本県・宮崎県　県境
130.62480325414896, 130.72308705491992, 130.72308705491992, 130.7053245487907, 130.77812729315787, 130.80692240846727, 130.86390142201583, 
130.91455909279787, 130.87954423258165, 130.88406452238115, 130.99098676186966, 130.9795121800709, 131.01706535686688, 131.02315036236624, 
131.05479239096283, 131.0773938399604, 131.11512087405634, 131.16519177645097, 131.18779322544853, 131.20691752844647, 131.20257109594695, 
131.1723199257502, 131.1622336086536, 131.1622336086536]]

kyushu_y = [[33.10186354017798, 33.10186354017798, 33.120928044675644, 33.14896408070161, 33.14709501163321, 33.165785702317194, 33.113825582215725, 
33.107844561196856, 33.08279903568032, 33.04990342007651, 33.00467194862128, 32.99794329997505, 32.99794329997505],
[33.47082815476513, 33.47082815476513, 33.462728443351835, 33.47880542785057, 33.47593453776151, 33.42100484072416, 33.3896164424171, 33.44148385669279, 
33.434019542461236, 33.36588375101421, 33.340428525557876, 33.32377736304132, 33.30482948845353, 33.293154535424684, 33.28071401170542, 
33.263680063843665, 33.287412755246564, 33.24932561339837, 33.25391903754086, 33.233440021572235, 33.21698025172829, 33.20166883791997, 
33.13823430116092, 33.13823430116092],
[33.33364003528496, 33.327376725077116, 33.28734717698286, 33.23847389151895, 33.18005867889304, 33.15422565657641, 33.16004390484592, 33.10861059014343, 
33.10628329083562, 33.087432166442404, 32.98735829620678, 32.95477610589751, 32.95477610589751],
[32.74336003399244, 32.735422388192, 32.81724144845985, 32.81811651862314, 32.833430246480766, 32.827304755337714, 32.769550124560396, 32.77436301045851, 
32.74986104588631, 32.766924914070515, 32.798864975030696, 32.831680106154174, 32.79930251011234, 32.83053348579394, 32.83053348579394, 
32.87980896513526, 32.94762690279044, 32.9699411919544, 33.048697506650726, 33.08020003252926, 33.13532945281669, 33.17908296098132, 33.191333943267416, 
33.16989472426674, 33.175145145246496, 33.13489191773503, 33.08337216187118, 33.019929575032464, 33.10186354017798, 33.10186354017798, 33.11046125789261, 
33.181859696305416, 33.20765284944931, 33.227091167760655, 33.2353150716616, 33.251762879463506, 33.26148203861918, 33.27269645302957, 
33.290265702272514, 33.34334726381502, 33.375869065605144, 33.44502462113587, 33.50012477727225, 33.515077329819434, 33.503988516850434, 
33.55068832896581, 33.578631659166, 33.61745082327309, 33.61745082327309],
[32.096362030679366, 32.096362030679366, 32.09543610044206, 32.127757072920936, 32.116046575645974, 32.170149073056265, 32.15328595698033, 
32.15750173599931, 32.19591216706116, 32.246969935179955, 32.28303826678682, 32.27952511760433, 32.32543026692215, 32.352832830545545, 32.40248533899135, 
32.40599848817383, 32.43480631147022, 32.48750354920751, 32.54441656596378, 32.58165594729813, 32.58118752740714, 32.63927159389091, 32.67651097522526, 
32.671358356424285, 32.70953457754063, 32.743963439529, 32.78213966064535, 32.81352379334222, 32.83053348579394, 32.83053348579394],
[32.163263300658585, 32.12073077455596, 32.1106597468995, 32.1345491613404, 32.13009917237592, 32.15047543763434, 32.18349903994971, 32.15445700670782, 
32.096362030679366, 32.096362030679366, 32.053614291174014, 32.01232318242845, 31.946040086810587, 31.931506703140276, 31.885108536207767, 
31.837610721852876, 31.803882405656502, 31.773631235459757, 31.750334357262265, 31.744075494462937, 31.67870514966997, 31.633502251674834, 
31.6561037006724, 31.627938818075428, 31.63315453707487, 31.617855094676514, 31.577867915680816, 31.513193000087774, 31.495807270089646, 
31.456068424402794, 31.456068424402794]]

from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt

color1 = 'gray' #色・線幅・線種のデフォルト値
linewidth1 = 0.5
linestyle1 = '--'

def opt(color, linewidth, linestyle): #色・線幅・線種の指定
    global color1
    global linewidth1
    global linestyle1

    color1 = color
    linewidth1 = linewidth
    linestyle1 = linestyle

def prefectural_bound(map, color = color1, linewidth = linewidth1, linestyle = linestyle1): #県境

    shikoku_bound(map, color, linewidth, linestyle)
    kyushu_bound(map, color, linewidth, linestyle)
    chugoku_bound(map, color, linewidth, linestyle)
    kansai_bound(map, color, linewidth, linestyle)
    chubu_bound(map, color, linewidth, linestyle)
    kanto_bound(map, color, linewidth, linestyle)
    tohoku_bound(map, color, linewidth, linestyle)

def print_bound(map, no, x, y): #県境の描画
    for n in range(no):
        x1 = x[n]
        y1 = y[n]

        if map.projection != 'cyl':
            x1,y1 = map(x1,y1)

        plt.plot(x1, y1, linewidth = linewidth1, color = color1, linestyle = linestyle1)

def shikoku_bound(map, color = color1, linewidth = linewidth1, linestyle = linestyle1): #四国県境
    opt(color, linewidth, linestyle)

    no = 3

    print_bound(map, no, x = shikoku_x, y = shikoku_y)

def kyushu_bound(map, color = color1, linewidth = linewidth1, linestyle = linestyle1): #九州県境
    opt(color, linewidth, linestyle)

    no =  6

    print_bound(map, no, x = kyushu_x, y = kyushu_y)

def chugoku_bound(map, color = color1, linewidth = linewidth1, linestyle = linestyle1): #中国県境
    opt(color, linewidth, linestyle)

    no = 5

    print_bound(map, no, x = chugoku_x, y = chugoku_y)

def kansai_bound(map, color = color1, linewidth = linewidth1, linestyle = linestyle1): #関西県境
    opt(color, linewidth, linestyle)

    no = 9 

    print_bound(map, no, x = kansai_x, y = kansai_y)

def chubu_bound(map, color = color1, linewidth = linewidth1, linestyle = linestyle1):
    opt(color, linewidth, linestyle)

    no = 10 

    print_bound(map, no, x = chubu_x, y = chubu_y)

def kanto_bound(map, color = color1, linewidth = linewidth1, linestyle = linestyle1):
    opt(color, linewidth, linestyle)

    no = 8 

    print_bound(map, no, x = kanto_x, y = kanto_y)

def tohoku_bound(map, color = color1, linewidth = linewidth1, linestyle = linestyle1): #東北県境
    opt(color, linewidth, linestyle)

    no = 6 

    print_bound(map, no, x = tohoku_x, y = tohoku_y)
```

#####使い方の例です

```python:
#!/usr/bin/python3
# coding: UTF-8

from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt

import japan_border2 as jb2 #都府県境界線

#font = {'family': 'IPAGothic'}  # 日本語Fontを指定

lon1 = 137.0
lat1 = 35.5
lon2 = 10.0
lat2 = 10.5

map = Basemap(llcrnrlon = lon1 - lon2, llcrnrlat = lat1 - lat2, urcrnrlon = lon1 + lon2, urcrnrlat = lat1 + lat2, resolution = 'h', projection='cyl')

map.drawcoastlines() #海岸線

#都府県境界線を表示
#jb2.prefectural_bound(map = map, color = 'b', linewidth = 1, linestyle = '-') #色（青）、線幅、線種を指定
jb2.prefectural_bound(map = map) #デフォルト表示　color = 'gray', linewidth = 0.5, linestyle = '--'破線

#各地方ごとに表示する場合
#jb2.tohoku_bound(map = map)
#jb2.tohoku_bound(map = map, color = 'b', linewidth = 1, linestyle = '-')
#jb2.chugoku_bound(map = map)
#jb2.shikoku_bound(map = map)
#jb2.kyushu_bound(map = map)
#jb2.kansai_bound(map = map)
#jb2.chubu_bound(map = map)
#jb2.kanto_bound(map = map)

plt.show()
```

![image.png](https://qiita-image-store.s3.amazonaws.com/0/238800/aeff3a76-b547-89fd-bfa5-100e1c3c40f6.png)

都道府県庁の位置にドットを表示し都道府県名も表示する。
地図をズームしないと、都道府県名の文字が重なります。

都道府県庁.csv

```shell-session
県名,都道府県庁所在地lon,lat
 北海道,141.3446438,43.0643131
 青森県,140.7379599,40.8249144
 岩手県,141.1504733,39.7035346
 宮城県,140.869989,38.2687412
 秋田県,140.1001398,39.7186038
 山形県,140.3613468,38.2404133
 福島県,140.4645075,37.7501556
 茨城県,140.444599,36.3418213
 栃木県,139.8811548,36.5658986
 群馬県,139.0581216,36.390608
 埼玉県,139.6467954,35.8572556
 千葉県,140.121134,35.6050836
 東京都,139.6899067,35.6896385
 神奈川県,139.6393517,35.4484063
 新潟県,139.0210275,37.9024226
 富山県,137.2101969,36.695445
 石川県,136.62572,36.594554
 福井県,136.2194467,36.0652239
 山梨県,138.5662306,35.6641304
 長野県,138.178778,36.6512863
 岐阜県,136.720008,35.3911654
 静岡県,138.3807869,34.9768921
 愛知県,136.904504,35.1802514
 三重県,136.5064145,34.7301943
 滋賀県,135.8663618,35.0044326
 京都府,135.75338,35.0209608
 大阪府,135.5175445,34.6863402
 兵庫県,135.1808544,34.6912659
 奈良県,135.832867,34.685198
 和歌山県,135.165273,34.2260344
 鳥取県,134.2360639,35.5034671
 島根県,133.048636,35.4722523
 岡山県,133.9324812,34.661777
 広島県,132.459559,34.396556
 山口県,131.4683064,34.1861249
 徳島県,134.557063,34.0657524
 香川県,134.041166,34.3401644
 愛媛県,132.7631676,33.8416643
 高知県,133.5286869,33.5595947
 福岡県,130.416011,33.6067524
 佐賀県,130.296625,33.2493715
 長崎県,129.8654337,32.7499944
 熊本県,130.739359,32.7897845
 大分県,131.610394,33.2381985
 宮崎県,131.4217036,31.9109129
 鹿児島県,130.5557117,31.5602232
 沖縄県,127.6785136,26.212391
```

```python:
#!/usr/bin/python3
# coding: UTF-8

from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import csv

import japan_border2 #都府県境界線

font = {'family': 'IPAGothic'}  # 日本語Fontを指定

filename = '都道府県庁.csv'
names, lats, lons = [], [], []
lon1 = 137.0
lat1 = 35.5
lon2 = 10.0
lat2 = 10.5

with open(filename) as f:
    reader = csv.reader(f)

    next(reader)

    for row in reader:
        lats.append(float(row[2]))  #latitude
        lons.append(float(row[1]))  #longitude
        names.append(row[0])  #都道府県名

map = Basemap(llcrnrlon = lon1 - lon2, llcrnrlat = lat1 - lat2, urcrnrlon = lon1 + lon2, urcrnrlat = lat1 + lat2, resolution = 'h', projection='cyl')

map.drawcoastlines() #海岸線

#都府県境界線を表示
japan_border2.prefectural_bound(map = map) #デフォルト表示　color = 'gray', linewidth = 0.5, linestyle = '--'破線

x,y = map(lons, lats)
map.plot(x, y, 'ro', markersize=3)

for i in range(len(names)):  #都道府県名を表示
    plt.text(x[i], y[i], names[i], fontsize=8, color='red', **font) 

plt.title('都道府県庁所在地', **font, fontsize = 20)

plt.show()
```

![image.png](https://qiita-image-store.s3.amazonaws.com/0/238800/addb77b6-04dd-3c96-21d8-54753edfb0ab.png)


#####使い方（projection='ortho'の場合）
japan_border1.py には必要ですが、japan_border2.py ではprojection以外は'cyl'と同じコードでOKです。

```python:
#!/usr/bin/python3
# coding: UTF-8

#'ortho'の地図に県境を表示

from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
import japan_border1 as jb1      #県境

def print_bound_ortho(no, x, y): #県境の描画
    for n in range(no):
        x1,y1=map(x[n],y[n])
        plt.plot(x1, y1, linewidth = jb1.linewidth1, color = jb1.color1, linestyle = jb1.linestyle1)

def prefectural_bound(): #県境
    pb = [
    [3,jb1.shikoku_x,jb1.shikoku_y],
    [6,jb1.kyushu_x,jb1.kyushu_y],
    [5,jb1.chugoku_x,jb1.chugoku_y],
    [9,jb1.kansai_x,jb1.kansai_y],
    [10,jb1.chubu_x,jb1.chubu_y],
    [8,jb1.kanto_x,	jb1.kanto_y],
    [6,jb1.tohoku_x,jb1.tohoku_y]
    ]
    for i in range(7):
        print_bound_ortho(pb[i][0], x = pb[i][1], y = pb[i][2])

map = Basemap(projection='ortho', lat_0=35, lon_0=185,
              resolution='l', area_thresh=1000.0)

map.drawcoastlines() #海岸線

#no = 3
#print_bound_ortho(no, x = jb1.shikoku_x, y = jb1.shikoku_y)
prefectural_bound() #県境

plt.show()
```

![image.png](https://qiita-image-store.s3.amazonaws.com/0/238800/5b0222e3-564c-f343-a3c0-7921791aa535.png)