麻辣GIS微信平台

更多 GIS 干货

微信关注不错过

「GIS思维」用prim最小生成树看武汉的中心地位

武汉号称九省通衢,是全国性甚至全球性的交通枢纽,那么,我们就用prim最小生成树来检验一下武汉的中心地位。

什么是最小生成树

所谓最小生成树,给定n个点,用n-1条边将这些点都连起来,就可以构成一棵生成树,而要使得这n-1条边的距离(权值)总和最小,就是最小生成树。

最小生成树的算法,最常见的是prim算法和Kruskal算法,prim算法是首先选定第一个点,然后取连接这个点的最短边,此时相当于已经有两个选定点了,然后再在剩余的边中选择连接这两个点的最短边,以此类推。而Kruskal算法是先选最短边,然后选次短边,以此类推,直至可以访问所有的节点。概括来讲的话,前者是用点选边,后者是用边选点。

36城实验结果

我们首先选择了全国的36个大城市做实验,最后的结果如下图所示。

实验结果

从上图来看,武汉在华中地区处于中心地位,和华东、华北和西北地区的联系较为密切,和华南地区的距离也不算远。

400城实验结果

然后我们用全国的四百个城市来做重复实验,发现形状有一些变化,但是结论基本上还是一致的,和武汉联系较为紧密的是华东、华北和华南、西北地区,和西南地区的联系相对来说要少一些。

四百个城市来做重复实验

更多关于最小生成数

参考:最小生成树 - 维基百科,自由的百科全书

实现代码

#coding=utf-8

from arcpy import env,da
from os import path
from math import sqrt

def prim(graph, root):
    nodes = graph.keys()
    nodes.remove(root)

    visited = [root]
    path = []
    next = None

    while nodes:
        distance = float('inf')
        for s in visited:
            for d in graph[s]:
                if d in visited or s == d:
                    continue
                if graph[s][d] < distance:
                    distance = graph[s][d]
                    pre = s
                    next = d
        path.append((pre, next))
        visited.append(next)
        nodes.remove(next)

    return path

if __name__ == '__main__':
    flayer=r'F:\data\202003\WDL\city.shp'
    linkLayer=r'F:\data\202003\WDL\link.shp'
    env.workspace=path.dirname(flayer)

    datas=[['北京市',(116.731393998507,39.9104331589131)],['天津市',(117.208087452974,39.0910913972032)],['重庆市',(106.556901017363,29.5700450613673)],['上海市',(121.480248078682,31.2362760166229)],['石家庄市',(114.489776611,38.0451278687)],['太原市',(112.569351196,37.8711128235)],['呼和浩特市',(111.663299561,40.820941925)],['沈阳市',(123.411682129,41.7966156006)],['长春市',(125.315429688,43.8925628662)],['哈尔滨市',(126.643341064,45.7414932251)],['南京市',(118.772781372,32.0476150513)],['杭州市',(120.159248352,30.2659950256)],['合肥市',(117.27570343,31.8632545471)],['福州市',(119.297813416,26.0785903931)],['南昌市',(115.899917603,28.6759910583)],['济南市',(117.005599976,36.6670722961)],['郑州市',(113.650047302,34.7570343018)],['武汉市',(114.291938782,30.5675144196)],['长沙市',(112.981269836,28.2008247375)],['广州市',(113.261428833,23.1189117432)],['南宁市',(108.311767578,22.8065433502)],['海口市',(110.346511841,20.0317935944)],['成都市',(104.081756592,30.6610565186)],['贵阳市',(106.711372375,26.5768737793)],['昆明市',(102.704566956,25.043844223)],['拉萨市',(91.08,29.39)],['西安市',(108.949028015,34.2616844177)],['兰州市',(103.750053406,36.0680389404)],['西宁市',(101.787452698,36.6094474792)],['银川市',(106.271942139,38.4680099487)],['乌鲁木齐市',(87.6061172485,43.7909393311)],['大连市',(121.600837708,38.917804718)],['宁波市',(121.541282654,29.8706684113)],['青岛市',(120.358169556,36.1338615417)],['深圳市',(114.110671997,22.5563964844)],['厦门市',(118.087516785,24.4574356079)],['唐山市',(118.201728821,39.6253395081)],['秦皇岛市',(119.598297119,39.9243087769)],['邯郸市',(114.472953796,36.6015167236)],['邢台市',(114.49508667,37.0655899048)],['保定市',(115.500183105,38.8570709229)],['张家口市',(114.87877655,40.817440033)],['承德市',(117.922340393,40.9676017761)],['沧州市',(116.860771179,38.3088417053)],['廊坊市',(116.689857483,39.5151100159)],['衡水市',(115.708190918,37.7278213501)],['大同市',(113.296333313,40.0971488953)],['阳泉市',(113.574256897,37.8606567383)],['长治市',(113.105567932,36.1819114685)],['晋城市',(112.842720032,35.5065116882)],['朔州市',(112.423271179,39.3131332397)],['忻州市',(112.731552124,38.3992080688)],['吕梁市',(111.13,37.52)],['晋中市',(112.75,37.68)],['临汾市',(111.514167786,36.082824707)],['运城市',(110.991149902,35.0139160156)],['包头市',(109.851707458,40.6664237976)],['乌海市',(106.814872742,39.6742019653)],['赤峰市',(118.949821472,42.2679824829)],['呼伦贝尔市',(119.77,49.22)],['兴安盟',(122.044364525825,46.088463713219)],['通辽市',(122.2603302,43.6115608215)],['锡林郭勒盟',(116.054391440746,43.9394226653386)],['乌兰察布盟',(113.139467674463,41.0007483276738)],['伊克昭盟',(110.016960596358,39.8256924203703)],['巴彦淖尔盟',(107.394398083725,40.7493594895728)],['阿拉善盟',(105.735377464494,38.858275883057)],['鞍山市',(122.984382629,41.1152572632)],['抚顺市',(123.9295578,41.8478660583)],['本溪市',(123.764503479,41.2875862122)],['丹东市',(124.381462097,40.135181427)],['锦州市',(121.133369446,41.111125946)],['营口市',(122.224151611,40.6683502197)],['阜新市',(121.648803711,42.0079536438)],['辽阳市',(123.161743164,41.2651367188)],['盘锦市',(122.04763031,41.1884765625)],['铁岭市',(123.844429016,42.2955818176)],['朝阳市',(120.451469421,41.5778579712)],['葫芦岛市',(120.83,40.72)],['吉林市',(126.566818237,43.8866767883)],['四平市',(124.377449036,43.1656074524)],['辽源市',(125.137283325,42.9085922241)],['通化市',(125.923126221,41.7232933044)],['白山市',(126.42,41.93)],['松原市',(124.82,45.13)],['白城市',(122.839576721,45.6164169312)],['延边朝鲜族自治州',(129.477376320227,42.9157430337218)],['齐齐哈尔市',(123.959266663,47.3413696289)],['鸡西市',(130.947753906,45.2970046997)],['鹤岗市',(130.276199341,47.3372840881)],['双鸭山市',(131.152160645,46.6376914978)],['大庆市',(125.024856567,46.595451355)],['伊春市',(128.904312134,47.7236442566)],['佳木斯',(130.327359092573,46.8056899908578)],['七台河市',(130.875396729,45.8092727661)],['牡丹江市',(129.598495483,44.5839233398)],['黑河市',(127.486938477,50.2444877625)],['绥化市',(126.98348999,46.6370124817)],['大兴安岭地区',(116.348625212231,39.7325552365545)],['无锡市',(120.299133301,31.5772304535)],['徐州市',(117.18560791,34.2675285339)],['常州市',(119.950286865,31.7839336395)],['苏州市',(120.618728638,31.3164520264)],['南通市',(120.855567932,32.0150680542)],['连云港市',(119.166801453,34.605178833)],['淮阴市',(119.041421741161,33.6381504247676)],['盐城市',(120.135177612,33.3898277283)],['扬州市',(119.436836243,32.3918876648)],['镇江市',(119.444297791,32.2058982849)],['泰州市',(119.91124,32.495872)],['宿迁市',(118.29706,33.958302)],['温州市',(120.650291443,28.0164756775)],['嘉兴市',(120.753631592,30.7711143494)],['湖州市',(120.097129822,30.8660392761)],['绍兴市',(120.573928833,30.010931015)],['金华市',(119.652206421,29.1108169556)],['衢州市',(118.869178772,28.9584445953)],['舟山市',(122.101608276,30.0200424194)],['台州市',(121.43,28.68)],['丽水市',(119.916557312,28.4488372803)],['芜湖市',(118.359832764,31.3344955444)],['蚌埠市',(117.361381531,32.9392433167)],['淮南市',(117.020729065,32.6166954041)],['马鞍山市',(118.480712891,31.7249240875)],['淮北市',(116.787498474,33.970489502)],['铜陵市',(117.813179016,30.9252471924)],['安庆市',(117.034431458,30.5126457214)],['黄山市',(118.309066772,29.7208442688)],['滁州市',(118.30116272,32.316532135)],['阜阳市',(115.80973053,32.9022064209)],['宿州市',(116.970153809,33.6401329041)],['六安市',(116.492790222,31.7535228729)],['宣城市',(118.75,30.95)],['巢湖市',(117.895576200446,31.6290024288163)],['池州市',(117.48,30.67)],['宁德市',(119.518318176,26.6664772034)],['莆田市',(119.010322571,25.4381370544)],['泉州市',(118.589637756,24.9159183502)],['漳州市',(117.653091431,24.518163681)],['龙岩',(117.023447566775,25.0812198448717)],['三明市',(117.601226807,26.2230129242)],['南平市',(118.169120789,26.6448421478)],['景德镇市',(117.11794281,29.1951675415)],['萍乡市',(113.841423035,27.6329898834)],['九江市',(115.984580994,29.7232112885)],['新余市',(114.929382324,27.8065471649)],['鹰潭市',(117.030281067,28.2455863953)],['赣州市',(114.933677673,25.8528823853)],['宜春市',(114.374610901,27.7955741882)],['上饶市',(117.963401794,28.4532661438)],['吉安市',(114.970428467,27.1062088013)],['抚州市',(116.35,28)],['淄博市',(118.056053162,36.7935791016)],['枣庄市',(117.556282043,34.8726463318)],['东营市',(118.495956421,37.4619140625)],['烟台市',(121.379936218,37.5356140137)],['潍坊市',(119.10684967,36.7040863037)],['济宁市',(116.576560974,35.4092407227)],['泰安市',(117.124107361,36.1871109009)],['威海市',(122.111686707,37.5007629395)],['日照市',(119.451553345,35.4275627136)],['莱芜市',(117.666590670017,36.2088414268169)],['临沂市',(118.33795929,35.0694503784)],['德州市',(116.287872314,37.4536933899)],['聊城市',(115.988426208,36.449432373)],['滨州地区',(117.977404017147,37.3881961960769)],['菏泽地区',(115.26,35.14)],['开封市',(114.346168518,34.785194397)],['洛阳市',(112.424797058,34.6680412292)],['平顶山市',(113.300193787,33.7436294556)],['安阳市',(114.35005188,36.0968513489)],['鹤壁市',(114.154670715,35.94008255)],['新乡市',(113.868553162,35.3074684143)],['焦作市',(113.221786499,35.2473564148)],['濮阳市',(115.014953613,35.7018966675)],['许昌市',(113.821586609,34.0268592834)],['漯河市',(114.041091919,33.5725097656)],['三门峡市',(111.195259094,34.7807693481)],['南阳市',(112.537513733,32.9990196228)],['商丘市',(115.647186279,34.4435844421)],['信阳市',(114.067718506,32.1306304932)],['周口市',(114.637252808,33.6280403137)],['驻马店地区',(114.028470781733,33.0178424167437)],['省直辖行政单位',(114.516203512611,36.7725405092822)],['黄石市',(115.074989319,30.2137985229)],['十堰市',(110.782798767,32.652130127)],['宜昌市',(111.285270691,30.7039527893)],['襄樊市',(112.2,32.08)],['鄂州市',(114.881187439,30.4027671814)],['荆门市',(112.200210571,31.030216217)],['孝感市',(113.911331177,30.9284553528)],['荆州市',(112.23,30.33)],['黄冈市',(114.87,30.45)],['咸宁市',(114.268737793,29.8943271637)],['恩施土家族苗族自治州',(109.494592618575,30.2779395753011)],['随州市',(113.36982,31.715105)],['株洲市',(113.152061462,27.8542232513)],['湘潭市',(112.915023804,27.8733501434)],['衡阳市',(112.599357605,26.900554657)],['邵阳市',(111.477378845,27.2502365112)],['岳阳市',(113.098068237,29.3746185303)],['常德市',(111.6876297,29.0382099152)],['张家界市',(110.47,29.13)],['益阳市',(112.334068298,28.6019706726)],['郴州市',(113.028648376,25.8022918701)],['永州市',(111.612197876,26.2112998962)],['怀化市',(109.954231262,27.5474071503)],['娄底地区',(112.001503492884,27.7032085969915)],['湘西土家族苗族自治州',(109.745576649467,28.3173691047012)],['韶关市',(113.605392456,24.8087768555)],['珠海市',(113.568260193,22.2725887299)],['汕头市',(116.683799744,23.3626918793)],['佛山市',(113.114517212,23.0348777771)],['江门市',(113.084747314,22.5911903381)],['湛江市',(110.399223328,21.1949977875)],['茂名市',(110.888847351,21.6707172394)],['肇庆市',(112.451408386,23.057882309)],['惠州市',(114.392402649,23.0879573822)],['梅州市',(116.107940674,24.3145008087)],['汕尾市',(115.364013672,22.7786865234)],['河源市',(114.693817139,23.7348403931)],['阳江市',(111.957893372,21.8452339172)],['清远市',(113.021263123,23.7195968628)],['东莞市',(113.748771667,23.0485363007)],['中山市',(113.371452332,22.5268535614)],['潮州市',(116.63666,23.667706)],['揭阳市',(116.34977,23.542976)],['云浮市',(112.03999,22.933193)],['柳州市',(109.402809143,24.3104057312)],['桂林市',(110.286682129,25.2818832397)],['梧州市',(111.30594635,23.4866199493)],['北海市',(109.119171143,21.4797973633)],['防城港市',(108.35,21.7)],['钦州市',(108.614700317,21.9498691559)],['贵港市',(109.60844,23.099092)],['玉林市',(110.141471863,22.6318969727)],['崇左市',(107.35506,22.420197)],['来宾市',(109.23294,23.73144)],['贺州市',(111.55,24.42)],['百色市',(106.612106323,23.9015827179)],['河池市',(108.051628113,24.6968917847)],['三亚市',(109.507820129,18.2340431213)],['自贡市',(104.776351929,29.3677215576)],['攀枝花市',(101.698417664,26.5547981262)],['泸州市',(105.437843323,28.8819942474)],['德阳市',(104.391548157,31.1304454803)],['绵阳市',(104.748550415,31.4563484192)],['广元市',(105.831703186,32.4439697266)],['遂宁市',(105.569709778,30.5033931732)],['内江市',(105.053436279,29.5775680542)],['乐山市',(103.751403809,29.5682239532)],['南充市',(106.081626892,30.7958221436)],['宜宾市',(104.616867065,28.7702560425)],['广安市',(106.63175,30.474428)],['达川地区',(107.518410596666,31.202393360554)],['雅安地区',(103.049542623604,30.016792545706)],['阿坝藏族羌族自治州',(102.23141546175,31.9055115772665)],['甘孜藏族自治州',(101.96854674579,30.0552788435184)],['凉山彝族自治州',(102.27350268097,27.8877523003697)],['巴中地区',(106.751585303165,31.8728885859565)],['眉山地区',(103.856563315795,30.0825261194211)],['资阳地区',(104.634435341644,30.1349565592531)],['六盘水市',(104.873252869,26.5767745972)],['遵义市',(106.929397583,27.6953868866)],['铜仁地区',(109.196438898176,27.7377864564052)],['黔西南布依族苗族自治州',(106.038573977258,27.014344747084)],['毕节地区',(105.298588795011,27.2902150834259)],['安顺地区',(105.954417123889,26.2592523787149)],['黔东南苗族侗族自治州',(107.97,26.58)],['黔南布依族苗族自治州',(107.528402705737,26.2606161960738)],['曲靖市',(103.794700623,25.4961662292)],['玉溪市',(102.533233643,24.3549728394)],['昭通地区',(103.723511771968,27.3440838602468)],['楚雄彝族自治州',(101.534412480503,25.0517735653404)],['红河哈尼族彝族自治州',(102.42755057757,23.3744887383648)],['文山壮族苗族自治州',(104.222568991094,23.4059942936117)],['思茅市',(100.983555102975,22.7924979843596)],['西双版纳傣族自治州',(100.803446824556,22.0136012547642)],['大理白族自治州',(100.236519300444,25.5976049054519)],['保山地区',(99.1772732858179,25.139038793266)],['德宏傣族景颇族自治州',(98.5913593561141,24.4380107027581)],['丽江地区',(100.25,26.86)],['怒江傈僳族自治州',(98.8632883813579,25.8237074176578)],['迪庆藏族自治州',(99.7095299901396,27.8251846836433)],['临沧地区',(100.095440420148,23.8904685562785)],['昌都地区',(97.179583594086,31.147346549327)],['山南地区',(91.778675138519,29.2430269392492)],['日喀则地区',(88.8937030348255,29.2756578225115)],['那曲地区',(92.0573384981749,31.4824383884547)],['阿里地区',(80.1127769219265,32.5068660176333)],['林芝地区',(94.3680582871326,29.6540421769515)],['铜川市',(109.057281494,35.0754585266)],['宝鸡市',(107.13835907,34.3822860718)],['咸阳市',(108.710128784,34.3372154236)],['渭南市',(109.500839233,34.5015258789)],['延安市',(109.471282959,36.5938720703)],['汉中市',(107.034393311,33.0781478882)],['安康地区',(109.035601082657,32.6905127705737)],['商洛地区',(109.924417881364,33.8786338522077)],['榆林地区',(109.77,38.3)],['嘉峪关市',(98.2747116089,39.8026542664)],['金昌市',(102.165748596,38.4951934814)],['白银市',(104.183776855,36.5394172668)],['天水市',(105.715240479,34.5842666626)],['酒泉地区',(98.52,39.75)],['张掖地区',(100.456411474056,38.9320660070049)],['武威地区',(102.644554340369,37.9343778081581)],['定西地区',(104.632420083063,35.5868329265619)],['陇南地区',(104.928574970712,33.4066202299513)],['平凉地区',(106.671442348278,35.5492320504635)],['庆阳地区',(107.649385695954,35.715215983562)],['临夏回族自治州',(103.216390565297,35.6075621835031)],['甘南藏族自治州',(102.917584688258,34.9891399099682)],['海东地区',(102.12,36.5)],['海北藏族自治州',(100.907434321456,36.9606628241298)],['黄南藏族自治州',(102.022428278076,35.5258045865155)],['海南藏族自治州',(100.626621144459,36.2921024798988)],['果洛藏族自治州',(100.251591978796,34.4771938664709)],['玉树藏族自治州',(97.0131807627733,33.0109795851427)],['海西蒙古族藏族自治州',(97.3762991160191,37.3827504625274)],['石嘴山市',(106.38205719,39.0242805481)],['吴忠市',(106.199111938,37.985496521)],['固原地区',(106.248577426071,36.0216172580109)],['中卫市',(105.691300667357,37.4980023546252)],['克拉玛依市',(84.863609314,45.5965118408)],['吐鲁番地区',(89.1972972460079,42.9569848487712)],['哈密地区',(93.521215540285,42.8258243681126)],['昌吉回族自治州',(87.3150016244744,44.0168541599199)],['博尔塔拉蒙古自治州',(82.0729147582743,44.9121964134647)],['巴音郭楞蒙古自治州',(86.1517138653326,41.7702873304504)],['阿克苏地区',(80.266943484735,41.1750298600775)],['克孜勒苏柯尔克孜自治州',(76.174308676212,39.7204712048707)],['喀什地区',(75.9963905563975,39.4760967486448)],['和田地区',(79.92,37.12)],['伊犁哈萨克自治州',(81.3305377475322,43.9227231374921)],['塔城地区',(82.9872355184064,46.7509482543734)],['阿勒泰地区',(88.1479262037353,47.8507278701019)],['昭通市',(103.714927673,27.3422794342)],['昌都市',(97.1742,31.1491)],['海东市',(102.11071,36.50824)],['三沙市',(112.34502,16.83704)],['山南市',(91.7781,29.24366)],['吐鲁番市',(89.11,42.54)],['佳木斯市',(130.362319946,46.8136634827)],['儋州市',(109.34,19.31)],['铜仁市',(109.192680359,27.7221660614)],['日喀则市',(87.2341,29.3048)],['固原市',(106.278587341,36.0132598877)],['哈密市',(93.5215990269072,42.8252994627921)],['毕节市',(105.282417297,27.3062953949)],['普洱市',(100.972758458885,22.830950790286)],['那曲市',(92.0579351526946,31.4841315524952)],['龙岩市',(117.030387878,25.109703064)],['安顺市',(105.926071167,26.2442588806)],['保山市',(99.1687240601,25.1168022156)],['林芝市',(94.3682289651794,29.6547599913432)],['酒泉市',(98.5111160278,39.7449684143)],['乌兰察布市',(113.12,40.98)],['丽江市',(100.23425293,26.8766651154)],['安康市',(109.025787354,32.6898651123)],['张掖市',(100.450286865,38.9350585938)],['鄂尔多斯市',(109.8,39.62)],['淮安市',(119.14111,33.502789)],['临沧市',(100.087806702,23.8799304962)],['商洛市',(109.93,33.87)],['武威市',(102.633460999,37.9269104004)],['巴彦淖尔市',(107.393779959703,40.7492309808487)],['定西市',(104.61856842,35.5752372742)],['娄底市',(111.993896484,27.7413349152)],['榆林市',(109.757446289,38.2972755432)],['陇南市',(104.92,33.4)],['资阳市',(104.65019,30.122671)],['平凉市',(106.683067322,35.5355186462)],['滨州市',(118.021766663,37.3678131104)],['庆阳市',(107.63,35.73)],['达州市',(107.5,31.22)],['驻马店市',(114.035690308,32.9790420532)],['雅安市',(102.982696533,29.9822940826)],['亳州市',(115.7709,33.879292)],['菏泽市',(115.445762634,35.2485389709)],['巴中市',(106.75476,31.849014)],['眉山市',(103.83146,30.050497)],['石河子市',(86.0868856719329,44.311976478063)],['仙桃市',(113.449609358564,30.3335877511464)],['五家渠市',(87.5499366322961,44.172444518901)],['潜江市',(112.905474090816,30.4083579324189)],['文昌市',(110.4,18.8)],['济源市',(112.57,35.08)],['阿拉尔市',(81.2873542253954,40.553263894706)],['天门市',(113.172409166328,30.6696218300995)],['神农架林区',(110.6825248504,31.7504960112464)],['琼海市',(110.48054452595,19.2642540199176)],['五指山市',(109.523540320706,18.7809941007061)],['万宁市',(110.399434365548,18.8001069883034)],['东方市',(108.658566526792,19.1011047312886)],['定安县',(110.36553348341,19.6871199479102)],['屯昌县',(110.108577324571,19.3573749242783)],['澄迈县',(110.013510910109,19.7443486716464)],['临高县',(109.697443014833,19.919474770278)],['白沙黎族自治县',(109.457470669113,19.2313787330127)],['昌江黎族自治县',(109.062464087343,19.3039978766843)],['乐东黎族自治县',(109.180507988946,18.7558714938549)],['陵水黎族自治县',(110.044464092548,18.5123315956988)],['保亭黎族苗族自治县',(109.7034815143,18.6469099553758)],['琼中黎族苗族自治县',(109.84451062847,19.0391637891806)],['西南中沙群岛办事处',(114.360429910397,15.9143599539542)],['图木舒克市',(79.0756162868964,39.871209077425)]]

    with da.UpdateCursor(flayer,["OID@"]) as cursor:
        for row in cursor:
            cursor.deleteRow()

    with da.UpdateCursor(linkLayer,["OID@"]) as cursor:
        for row in cursor:
            cursor.deleteRow()

    with da.InsertCursor(flayer,["NAME","SHAPE@XY"]) as cursor:
        for data in datas:
            cursor.insertRow(data)

    graph_dict=dict()
    for i in range(len(datas)):
        graph_dict[i]=dict()
        for j in range(len(datas)):
            graph_dict[i][j]=sqrt((datas[i][1][0]-datas[j][1][0])**2+(datas[i][1][1]-datas[j][1][1])**2)

    path = prim(graph_dict, 0)

    count=0
    with da.InsertCursor(linkLayer,["SHAPE@JSON"]) as cursor:
        for link in path:
            count+=1
            print count,str([datas[link[0]][1], datas[link[1]][1]]).replace('(','[').replace(')',']')
            cursor.insertRow(['{"paths":[' + str([datas[link[0]][1], datas[link[1]][1]]).replace('(','[').replace(')',']') + '],"spatialReference":{"wkid":4326,"latestWkid":4326}}'])

相关阅读

麻辣GIS-盛光晓

作者:

一名精通 ArcPy 的 GISer。

声明

1.本文所分享的所有需要用户下载使用的内容(包括但不限于软件、数据、图片)来自于网络或者麻辣GIS粉丝自行分享,版权归该下载资源的合法拥有者所有,如有侵权请第一时间联系本站删除。

2.下载内容仅限个人学习使用,请切勿用作商用等其他用途,否则后果自负。

手机阅读
公众号关注
知识星球
手机阅读
麻辣GIS微信公众号关注
最新GIS干货
关注麻辣GIS知识星球
私享圈子

留言板(小编看到第一时间回复)