百度地图 polygon点击事件_哪里可以“偷”行政区边界地图?

在       的时候,是否苦恼于无图可用?d5f22f207c56f017eec22a3d57bc69bc.png某度搜索半天几乎都是这种

ea834234556914dfb9dee508c047132d.png

货色,大水印、要素过多、边界还夹杂其他区域,简直无法直视69e7d0c8de9d08564c2f6c32cf0739cf.png 

可是别人为什么可以有这样的!

5fb687b287b854a5808a59fa2df41f8b.png

这样!!

 4b99d34f3077b0554c411ccfbbb4dbfe.png

这样!!!

9789b839569d90c4f2ca47d08501fd6a.png

还有这样!!!!

a024c61e90639ac0e3e6e4f07e247e64.png


如何随心制作美观的行政边界地图?

分成三步走!首先要获取数据源,然后转换数据格式,最后使用地理信息化工具调整展示。其中关键是获取源数据。


一、数据源

方法一:从专业网站下载

http://datav.aliyun.com/tools/atlas

2fbaa3c82bf8110543bebe5db52214cd.png

该网站看上去和阿里云平台有着千丝万缕的关系。从这里获取的geojson文件可直接导入QGIS中,这是这个使用数据平台的优势。简便、快捷!个人非常推荐这种方式。

方法二:调用百度地图API

http://lbsyun.baidu.com/

百度地图API接口有很多类型,比如微信小程序、Android、iOS等,这里通过调用百度地图JavaScript API GL接口,实现自行获取区域边界经纬度坐标功能小工具。关键代码如下:

<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.3">script><style type="text/css">body{font-size:13px;margin:10px}#container{width:1200px;height:500px;border:1px solid gray}style>head><body><div id="container">div><br />输入省、直辖市或县名称:<input type="text" id="districtName" style="width:80px" value="广州市"><input type="button" onclick="getBoundary()" value="获取轮廓经纬度"><script type="text/javascript">var map = new BMap.Map("container");map.centerAndZoom(new BMap.Point(116.404355,39.913448), 5);map.addControl(new BMap.NavigationControl({type: BMAP_NAVIGATION_CONTROL_SMALL}));map.enableScrollWheelZoom();function getBoundary(){           var bdary = new BMap.Boundary();    var name = document.getElementById("districtName").value;    bdary.get(name, function(rs){              map.clearOverlays();                  var count = rs.boundaries.length;         for(var i = 0; i < count; i++){            var ply = new BMap.Polygon(rs.boundaries[i], {strokeWeight: 2, strokeColor: "#ff0000"}); //建立多边形覆盖物            map.addOverlay(ply);              map.setViewport(ply.getPath());                  }     download("data.txt",rs.boundaries[0]);    });   }function download(filename, text) {    var pom = document.createElement('a');    pom.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));    pom.setAttribute('download', filename);    if (document.createEvent) {        var event = document.createEvent('MouseEvents');        event.initEvent('click', true, true);        pom.dispatchEvent(event);    } else {        pom.click();    }}script>

示例1:获取广州市行政边界经纬度

efe0f60a47980da05802c8c51898e127.png

获取的data.txt文件内容是一系列的边界采样点经纬度序列,将其转换成需要的数据格式即可。

113.574773, 22.860595;113.596496, 22.839218;113.614839, 22.813938;113.634435, 22.782605;113.645654, 22.761881;113.713945, 22.672352;113.7367, 22.589337;113.692191, 22.520712;113.642473, 22.561004;113.616432, 22.580879;113.602066, 22.601507;113.590005, 22.605898;113.583586, 22.610705;113.562265, 22.629003;113.556519, 22.634702;113.554544, 22.638979;113.549005, 22.646824;113.545934, 22.651538;113.544685, 22.652294;113.544116, 22.653845;113.543054, 22.657192;113.540706, 22.661641;113.541726, 22.662959;113.543881, 22.664787;113.541667, 22.669963;113.511734, 22.699412;113.507654, 22.702599;113.495023, 22.711452;113.489621, 22.715505;113.475566, 22.725791;113.468612, 22.738309;113.461918, 22.7446;113.452791, 22.745354;113.442151, 22.746459;113.427794, 22.75139;113.381463, 22.772899;113.367724, 22.785323;113.363261, 22.798235;113.367869, 22.798332;113.37885, 22.802007;113.380786, 22.801567;113.383258, 22.80135;113.38761, 22.804081;113.395367, 22.810964;113.400091, 22.815921;113.394089, 22.818628;113.387363, 22.825325;113.379891, 22.829015;113.374723, 22.827592;113.370644, 22.829364;113.360924, 22.827313;113.3591, 22.823482;113.355807, 22.823408;113.353828, 22.821186;113.351136, 22.825589;113.343148, 22.823846;113.329648, 22.830856;113.31771, 22.839156;113.316386, 22.853894;113.314453, 22.856562;113.311157, 22.857678;113.309952, 22.859811;113.309003, 22.860699;113.30746, 22.862057;113.306366, 22.864682;113.30299, 22.863189;113.303295, 22.865864;113.302553, 22.868196;113.307331, 22.871819;113.305969, 22.874369;113.306831, 22.880035;113.306454, 22.883571;113.282861, 22.900967;113.284087, 22.906068;113.291967, 22.907766;113.290996, 22.913667;113.289063, 22.93229;113.289999, 22.932283;113.29021, 22.932923;113.291217, 22.933847;113.292691, 22.933467;113.293319, 22.934584;113.294452, 22.933302;113.295376, 22.933757;113.296239, 22.934431;113.30116, 22.936658;113.305598, 22.938952;113.301774, 22.947408;113.294769, 22.956875;113.285299, 22.959752;113.27579, 22.963568;113.273838, 22.962712;113.272302, 22.967338;113.259864, 22.975518;113.256082, 22.983511;113.258024, 22.995339;113.264787, 23.003059;113.258025, 23.013723;113.262389, 23.017879;113.260995, 23.02387;113.264701, 23.025183;113.269166, 23.026804;113.266926, 23.027091;113.265302, 23.031778;113.264082, 23.035804;113.264544, 23.038827;113.262658, 23.040717;113.262718, 23.050133;113.257095, 23.049156;113.244739, 23.04939;113.232707, 23.046978;113.217054, 23.049563;113.208902, 23.05715;113.199778, 23.063032;113.189163, 23.067374;113.184655, 23.073594;113.18417, 23.076574;113.185443, 23.080354;113.183781, 23.082946;113.1877, 23.08362;113.193304, 23.085521;113.201475, 23.089968;113.215672, 23.089004;113.21654, 23.09076;113.215912, 23.09139;113.216494, 23.092954;113.220591, 23.095052;113.219851, 23.096858;113.220981, 23.099077;113.222773, 23.09812;113.22413, 23.098364;113.223664, 23.099953;113.22051, 23.101556;113.222398, 23.101958;113.223264, 23.103641;113.22297, 23.105742;113.221866, 23.106267;113.219771, 23.105431;113.213403, 23.105588;113.213873, 23.106762;113.214351, 23.112124;113.21138, 23.114925;113.209067, 23.115284;113.212486, 23.116813;113.211304, 23.121089;113.21196, 23.123834;113.211218, 23.127343;113.214383, 23.127809;113.217661, 23.12807;113.217104, 23.133348;113.220721, 23.143281;113.220096, 23.147345;113.204057, 23.153031;113.19792, 23.151501;113.195576, 23.15417;113.192817, 23.162301;113.196943, 23.166533;113.207212, 23.178649;113.210033, 23.178887;113.213866, 23.180206;113.216057, 23.185646;113.214901, 23.188316;113.216175, 23.19875;113.205734, 23.211612;113.199426, 23.216732;113.196156, 23.221496;113.192208, 23.222463;113.187004, 23.221871;113.184514, 23.225906;113.18194, 23.230233;113.184399, 23.233896;113.181565, 23.240903;113.189954, 23.250752;113.185602, 23.281124;113.175259, 23.289571;113.158051, 23.305142;113.147581, 23.309577;113.142256, 23.312586;113.130151, 23.313032;113.122559, 23.312391;113.116384, 23.31198;113.114514, 23.308355;113.116337, 23.302822;113.11281, 23.298619;113.103909, 23.297304;113.096834, 23.295458;113.09349, 23.292065;113.08412, 23.290505;113.078067, 23.289659;113.078065, 23.287376;113.081767, 23.280622;113.083812, 23.274855;113.087534, 23.268686;113.088113, 23.261428;113.086002, 23.255733;113.079761, 23.254711;113.074762, 23.255379;113.069352, 23.257954;113.063731, 23.257102;113.058948, 23.257926;113.053744, 23.256826;113.056881, 23.265581;113.058409, 23.279744;113.054299, 23.287194;113.04067, 23.302266;113.042017, 23.322689;113.036846, 23.32743;113.031258, 23.330613;113.031896, 23.334632;113.036258, 23.337532;113.039179, 23.342516;113.044817, 23.34769;113.049204, 23.354935;113.047774, 23.361234;113.040924, 23.363511;113.034678, 23.358509;113.025737, 23.352288;113.022425, 23.353566;113.019331, 23.358471;113.015601, 23.359551;113.012082, 23.358153;113.007518, 23.360178;113.003166, 23.361068;112.996119, 23.360229;112.99279, 23.363062;112.992818, 23.36936;112.992015, 23.37451;112.98973, 23.376599;112.990162, 23.380607;112.988673, 23.384256;112.9921, 23.38908;112.992276, 23.391379;112.989838, 23.39203;112.98978, 23.393111;112.994388, 23.395619;112.992751, 23.398937;112.992285, 23.403636;112.993981, 23.40566;112.995526, 23.407409;113.00313, 23.411129;113.007974, 23.412661;113.001374, 23.416674;112.998986, 23.422936;112.994961, 23.425296;112.99291, 23.431575;112.990224, 23.435571;112.987957, 23.439388;112.990664, 23.441678;112.993179, 23.444935;112.987362, 23.44721;112.983199, 23.446452;112.972349, 23.44216;112.968386, 23.444309;112.970486, 23.449051;112.97802, 23.456025;112.98095, 23.460012;112.978869, 23.461932;112.974699, 23.461016;112.972448, 23.460716;112.973325, 23.464385;112.974236, 23.468671;112.9812, 23.469646;112.985328, 23.471552;112.987298, 23.470536;112.998005, 23.473234;113.003234, 23.468561;113.006467, 23.468597;113.009305, 23.46785;113.013212, 23.469292;113.01494, 23.471562;113.021076, 23.471095;113.024464, 23.475151;113.026299, 23.476638;113.030074, 23.478295;113.034734, 23.477527;113.039066, 23.478761;113.043518, 23.478212;113.046146, 23.481082;113.053056, 23.477331;113.058891, 23.478447;113.06135, 23.486181;113.065638, 23.483712;113.067549, 23.488419;113.073046, 23.490529;113.080582, 23.494295;113.089368, 23.500599;113.096575, 23.501501;113.103665, 23.502395;113.107831, 23.50369;113.11477, 23.504353;113.123483, 23.512493;113.123074, 23.517536;113.125859, 23.513681;113.134305, 23.518386;113.141611, 23.514907;113.149962, 23.515616;113.153722, 23.512671;113.158083, 23.511284;113.160584, 23.509324;113.165171, 23.511973;113.165858, 23.514671;113.171376, 23.515752;113.172544, 23.516802;113.175397, 23.519549;113.17651, 23.520218;113.176845, 23.522511;113.178374, 23.525367;113.177611, 23.521491;113.178285, 23.520599;113.179477, 23.52067;113.17839, 23.518426;113.184725, 23.520674;113.187812, 23.52001;113.193403, 23.52116;113.201985, 23.524161;113.20118, 23.532101;113.212556, 23.542897;113.2157, 23.544013;113.219308, 23.545839;113.21447, 23.555183;113.214898, 23.561738;113.208355, 23.565374;113.209025, 23.572123;113.210216, 23.582396;113.220437, 23.588468;113.223004, 23.587691;113.234184, 23.592922;113.237033, 23.599596;113.241133, 23.595742;113.245874, 23.595437;113.25007, 23.593574;113.250674, 23.598526;113.251282, 23.604287;113.251302, 23.610696;113.256134, 23.606627;113.2659, 23.613423;113.273336, 23.613702;113.281747, 23.620301;113.286759, 23.617064;113.293987, 23.620041;113.302644, 23.631583;113.301414, 23.635489;113.305908, 23.640863;113.296724, 23.64661;113.296307, 23.650148;113.310512, 23.651677;113.314569, 23.649574;113.329531, 23.648671;113.336346, 23.652304;113.333006, 23.656438;113.333891, 23.660766;113.340481, 23.660891;113.342127, 23.66648;113.348033, 23.670187;113.354403, 23.670193;113.359035, 23.676174;113.361004, 23.684971;113.366297, 23.69981;113.369135, 23.704387;113.371633, 23.713351;113.379147, 23.714822;113.382888, 23.724815;113.385365, 23.733274;113.401644, 23.735396;113.40646, 23.730694;113.413719, 23.728186;113.417908, 23.727251;113.428218, 23.730627;113.435836, 23.730049;113.442151, 23.731867;113.449752, 23.732155;113.447529, 23.72755;113.451436, 23.729383;113.451739, 23.722802;113.4541, 23.720807;113.46142, 23.718868;113.468582, 23.7168;113.472781, 23.70851;113.477732, 23.702709;113.475941, 23.698411;113.480697, 23.694477;113.489752, 23.689553;113.491828, 23.690633;113.498702, 23.691809;113.502154, 23.690512;113.507482, 23.690362;113.513823, 23.691043;113.519106, 23.687988;113.526783, 23.692689;113.532118, 23.691633;113.53534, 23.693744;113.552117, 23.701948;113.552657, 23.704704;113.548906, 23.707202;113.563736, 23.707051;113.572239, 23.701264;113.574413, 23.696936;113.579242, 23.693263;113.576211, 23.68754;113.579301, 23.687336;113.587833, 23.683356;113.59616, 23.682302;113.597242, 23.675539;113.604583, 23.674224;113.609007, 23.671663;113.61413, 23.678217;113.62564, 23.687089;113.622508, 23.692639;113.634343, 23.701984;113.636497, 23.707393;113.645873, 23.712627;113.637973, 23.716958;113.640371, 23.72608;113.642206, 23.733787;113.644586, 23.739185;113.641206, 23.746283;113.64435, 23.755459;113.642543, 23.762625;113.640171, 23.770183;113.636203, 23.774571;113.628919, 23.780234;113.623892, 23.785997;113.629747, 23.790574;113.623961, 23.792052;113.628061, 23.793853;113.63732, 23.799353;113.643966, 23.807195;113.643531, 23.810833;113.648762, 23.815969;113.651191, 23.823436;113.659889, 23.826315;113.664342, 23.823603;113.669309, 23.824867;113.674568, 23.821801;113.683761, 23.822209;113.691854, 23.818834;113.695271, 23.819422;113.695847, 23.826401;113.697414, 23.830767;113.703594, 23.828467;113.707609, 23.8279;113.713392, 23.823483;113.726183, 23.828188;113.729713, 23.832087;113.726091, 23.839937;113.728862, 23.850347;113.720661, 23.863329;113.725088, 23.868293;113.734606, 23.866813;113.73687, 23.860942;113.741399, 23.862763;113.747494, 23.8614;113.75651, 23.863785;113.766487, 23.864302;113.770605, 23.870603;113.784852, 23.885488;113.789844, 23.896196;113.791833, 23.904918;113.796709, 23.907629;113.80236, 23.910636;113.808985, 23.91093;113.813161, 23.907204;113.818304, 23.90747;113.821612, 23.911093;113.823505, 23.911624;113.828807, 23.91452;113.833975, 23.915088;113.836644, 23.917758;113.840305, 23.920547;113.845729, 23.923234;113.850951, 23.92607;113.857311, 23.927013;113.862661, 23.928878;113.86523, 23.931802;113.867266, 23.933331;113.869125, 23.934574;113.872839, 23.935057;113.877442, 23.935046;113.882184, 23.936279;113.885732, 23.93709;113.88795, 23.936758;113.890346, 23.936702;113.892302, 23.937422;113.89439, 23.937361;113.897145, 23.937167;113.899414, 23.937667;113.902386, 23.934285;113.903358, 23.930891;113.90637, 23.92571;113.908323, 23.923597;113.910772, 23.923064;113.913044, 23.922489;113.915146, 23.924932;113.915913, 23.92797;113.920733, 23.929953;113.926445, 23.93225;113.93274, 23.934103;113.938345, 23.93392;113.941733, 23.934473;113.942839, 23.931944;113.945994, 23.929958;113.948287, 23.927903;113.952116, 23.930193;113.954803, 23.93151;113.95961, 23.935381;113.964404, 23.936096;113.969134, 23.93435;113.973189, 23.936022;113.97669, 23.937206;113.978106, 23.937134;113.98046, 23.93848;113.982992, 23.939421;113.987517, 23.938602;113.990533, 23.937813;113.996132, 23.937963;114.001517, 23.938982;114.004947, 23.940013;114.006803, 23.937529;114.007815, 23.934992;114.010721, 23.935856;114.012197, 23.937478;114.017936, 23.935387;114.025257, 23.930649;114.034148, 23.92736;114.043628, 23.925488;114.053236, 23.924831;114.052993, 23.920932;114.04978, 23.915826;114.04814, 23.914657;114.046331, 23.910234;114.046017, 23.909033;114.0458, 23.907893;114.044292, 23.907237;114.043931, 23.902678;114.043556, 23.901094;114.045429, 23.898109;114.048034, 23.896031;114.049041, 23.895532;114.050334, 23.893912;114.049843, 23.892086;114.050668, 23.885984;114.050086, 23.885211;114.0479, 23.881721;114.047633, 23.878803;114.048881, 23.877284;114.051936, 23.876168;114.054857, 23.873079;114.054843, 23.8697;114.056145, 23.867388;114.056521, 23.863125;114.057397, 23.861836;114.058213, 23.860969;114.059931, 23.857155;114.062271, 23.855499;114.064689, 23.852012;114.063553, 23.851331;114.06209, 23.850573;114.061758, 23.84785;114.059993, 23.845293;114.059491, 23.842558;114.059401, 23.840964;114.058612, 23.839023;114.059107, 23.836033;114.058032, 23.83502;114.054634, 23.834398;114.053215, 23.833682;114.052118, 23.832526;114.046645, 23.829709;114.044816, 23.827515;114.045128, 23.826507;114.044066, 23.826015;114.043345, 23.822279;114.042906, 23.818438;114.04458, 23.814015;114.047999, 23.813291;114.049693, 23.813011;114.051396, 23.811762;114.054637, 23.809292;114.050015, 23.805754;114.043205, 23.802617;114.043681, 23.798639;114.047457, 23.797301;114.048159, 23.796489;114.051107, 23.795849;114.052313, 23.793409;114.054814, 23.793019;114.056796, 23.793019;114.058391, 23.79184;114.059345, 23.791756;114.06116, 23.791812;114.062679, 23.788642;114.064398, 23.788077;114.064945, 23.78576;114.065169, 23.784597;114.066472, 23.781679;114.061898, 23.781797;114.06083, 23.781372;114.058277, 23.781095;114.0545, 23.781105;114.047171, 23.778272;114.042411, 23.774298;114.042322, 23.771714;114.041934, 23.770967;114.039188, 23.769061;114.037665, 23.769056;114.035313, 23.766361;114.033918, 23.765247;114.032003, 23.761039;114.029856, 23.758564;114.028659, 23.759216;114.028035, 23.760819;114.02745, 23.762903;114.026403, 23.763704;114.025665, 23.764405;114.024631, 23.768931;114.022712, 23.768395;114.020559, 23.768944;114.01674, 23.769716;114.017282, 23.770844;114.017395, 23.773809;114.017536, 23.774881;114.019119, 23.776739;114.021996, 23.778128;114.022399, 23.778752;114.023236, 23.779734;114.023234, 23.780444;114.024253, 23.784556;114.023189, 23.784786;114.019844, 23.78435;114.018696, 23.783701;114.01725, 23.783133;114.016242, 23.780834;114.014154, 23.778293;114.011844, 23.776106;114.009424, 23.772821;114.00688, 23.770286;114.006612, 23.768988;114.005782, 23.769007;114.00276, 23.769213;114.001055, 23.767891;113.996985, 23.767011;113.996466, 23.766145;113.994485, 23.765303;113.992827, 23.765954;113.989126, 23.765973;113.987992, 23.766295;113.984721, 23.764866;113.982302, 23.763543;113.981431, 23.760845;113.980919, 23.75967;113.981992, 23.758143;113.982477, 23.754859;113.981666, 23.751265;113.981712, 23.749877;113.979459, 23.745277;113.977512, 23.744697;113.975941, 23.745388;113.974339, 23.744998;113.973822, 23.747468;113.972201, 23.747767;113.96972, 23.746262;113.968348, 23.744956;113.965113, 23.741147;113.962989, 23.739561;113.96177, 23.738043;113.959662, 23.739422;113.959007, 23.741177;113.957103, 23.742248;113.955749, 23.742315;113.95372, 23.742376;113.950793, 23.743113;113.947869, 23.744774;113.946623, 23.743177;113.945194, 23.739701;113.944563, 23.738976;113.941924, 23.738385;113.938544, 23.737306;113.933555, 23.7364;113.928801, 23.734727;113.928162, 23.735581;113.92627, 23.736541;113.923986, 23.730523;113.921863, 23.728195;113.920545, 23.726394;113.920401, 23.724758;113.918843, 23.722012;113.916091, 23.721518;113.91441, 23.721716;113.910874, 23.722018;113.908001, 23.721971;113.906731, 23.719606;113.906048, 23.717223;113.905906, 23.712952;113.905723, 23.707807;113.903481, 23.704723;113.902362, 23.703743;113.901287, 23.703552;113.899605, 23.699746;113.89925, 23.699106;113.898918, 23.697766;113.896765, 23.69656;113.896229, 23.695451;113.894151, 23.694467;113.891108, 23.693644;113.889396, 23.693072;113.88618, 23.690856;113.883226, 23.690457;113.880012, 23.68913;113.878206, 23.68883;113.874362, 23.689949;113.873076, 23.689804;113.868146, 23.688308;113.866067, 23.688988;113.864283, 23.688025;113.862168, 23.687384;113.858886, 23.685013;113.858556, 23.684327;113.857646, 23.684635;113.856735, 23.685112;113.856078, 23.686294;113.853934, 23.685629;113.853755, 23.680339;113.854669, 23.679554;113.857508, 23.678995;113.857344, 23.67784;113.857573, 23.676889;113.859037, 23.676305;113.858455, 23.674605;113.853117, 23.675777;113.850861, 23.675362;113.849869, 23.67159;113.849633, 23.669524;113.84848, 23.667999;113.847265, 23.662234;113.845793, 23.661439;113.845231, 23.660824;113.841402, 23.660835;113.839681, 23.660762;113.837915, 23.661529;113.835777, 23.662202;113.830266, 23.662888;113.82798, 23.663004;113.825834, 23.663678;113.825344, 23.662723;113.825051, 23.66203;113.826351, 23.660335;113.827065, 23.656654;113.830679, 23.652823;113.832513, 23.652509;113.834591, 23.650434;113.83275, 23.648629;113.832832, 23.646964;113.829984, 23.645574;113.826731, 23.644301;113.82261, 23.641048;113.819659, 23.635329;113.819455, 23.634727;113.821649, 23.633339;113.823171, 23.631979;113.82364, 23.63013;113.824525, 23.629121;113.827167, 23.629832;113.829226, 23.630683;113.831531, 23.630947;113.836435, 23.629805;113.837542, 23.629708;113.839877, 23.62997;113.839463, 23.627244;113.838816, 23.62571;113.840431, 23.624019;113.841747, 23.622719;113.843539, 23.623437;113.844857, 23.622897;113.846705, 23.623253;113.849769, 23.62218;113.850742, 23.622192;113.852494, 23.623707;113.853654, 23.622492;113.857292, 23.621867;113.85803, 23.620397;113.859634, 23.619448;113.86269, 23.617824;113.863979, 23.617277;113.866108, 23.61759;113.867478, 23.616339;113.867739, 23.615042;113.867982, 23.614273;113.866923, 23.611992;113.868782, 23.609794;113.866223, 23.605183;113.865057, 23.602723;113.863802, 23.600551;113.864908, 23.599571;113.866158, 23.597499;113.870658, 23.593873;113.870354, 23.593505;113.867505, 23.59179;113.864575, 23.590817;113.862716, 23.586901;113.861655, 23.584126;113.857092, 23.581343;113.857778, 23.578734;113.859832, 23.578542;113.859007, 23.574348;113.860211, 23.574131;113.864314, 23.575194;113.866693, 23.574122;113.867352, 23.573468;113.870121, 23.570654;113.87039, 23.567241;113.873407, 23.564079;113.873828, 23.561317;113.872725, 23.559219;113.874318, 23.558521;113.874974, 23.554945;113.875949, 23.553343;113.876552, 23.549327;113.878034, 23.546455;113.880507, 23.545857;113.883724, 23.545392;113.88505, 23.543494;113.886753, 23.543218;113.887722, 23.542621;113.892114, 23.541949;113.894977, 23.540602;113.896357, 23.538004;113.89498, 23.534705;113.896311, 23.531868;113.896937, 23.530604;113.899222, 23.526992;113.903319, 23.52589;113.904804, 23.52434;113.905457, 23.523435;113.906204, 23.521226;113.910968, 23.519908;113.911887, 23.517708;113.912333, 23.517037;113.913903, 23.515438;113.915736, 23.51496;113.916307, 23.51436;113.915076, 23.514229;113.915433, 23.513607;113.915247, 23.512836;113.917458, 23.510532;113.918864, 23.510123;113.920967, 23.51068;113.923044, 23.509567;113.929767, 23.50945;113.93051, 23.508467;113.93246, 23.508164;113.932311, 23.505726;113.932647, 23.502685;113.934501, 23.501087;113.935199, 23.500449;113.94024, 23.501144;113.94593, 23.500012;113.946275, 23.499967;113.947034, 23.500369;113.948117, 23.499724;113.950712, 23.499362;113.952741, 23.500275;113.955907, 23.500589;113.956432, 23.500381;113.956, 23.499494;113.953311, 23.498313;113.946893, 23.488851;113.944563, 23.487545;113.941809, 23.488189;113.941008, 23.488089;113.939574, 23.486226;113.940326, 23.484517;113.947171, 23.482345;113.957156, 23.484033;113.961655, 23.483422;113.968848, 23.486292;113.972504, 23.48478;113.976851, 23.483634;113.981728, 23.485468;113.983637, 23.486016;113.983634, 23.485414;113.983377, 23.482514;113.985045, 23.482228;113.987735, 23.479489;113.98783, 23.478685;113.98415, 23.475924;113.982423, 23.473155;113.978663, 23.471493;113.977368, 23.474116;113.972278, 23.475093;113.971622, 23.475332;113.970376, 23.470415;113.968175, 23.470168;113.966361, 23.47062;113.962655, 23.470808;113.961721, 23.471105;113.960772, 23.471526;113.959375, 23.46915;113.959964, 23.468218;113.959219, 23.464479;113.960262, 23.463072;113.959253, 23.460988;113.959203, 23.458758;113.961798, 23.456342;113.96115, 23.454314;113.961459, 23.453156;113.960622, 23.451327;113.958546, 23.450974;113.957636, 23.449222;113.960184, 23.446767;113.960349, 23.443918;113.963794, 23.441758;113.964807, 23.438692;113.965185, 23.437535;113.971369, 23.437588;113.973254, 23.436926;113.974373, 23.436729;113.976444, 23.436697;113.977663, 23.437575;113.978401, 23.437371;113.978674, 23.435714;113.978084, 23.433889;113.97891, 23.43382;113.979745, 23.434846;113.980593, 23.434632;113.981196, 23.435755;113.982245, 23.434886;113.983537, 23.435119;113.985914, 23.436589;113.989975, 23.437167;113.992082, 23.440139;113.994503, 23.436861;113.993611, 23.43435;113.992346, 23.430299;113.989368, 23.427944;113.990447, 23.425873;113.991059, 23.425606;113.992444, 23.422787;113.989614, 23.419327;113.989217, 23.416335;113.990051, 23.413894;113.991017, 23.412088;113.992269, 23.41196;113.995244, 23.411045;113.997485, 23.410085;113.99889, 23.406588;114.000906, 23.406662;114.00512, 23.404074;114.004716, 23.4006;114.005288, 23.398567;114.005308, 23.396764;114.00613, 23.395847;114.005574, 23.395392;114.002452, 23.394244;114.000735, 23.392969;113.997086, 23.391488;113.995662, 23.391547;113.992526, 23.389097;113.99111, 23.387538;113.988325, 23.386645;113.987142, 23.385273;113.987114, 23.383268;113.987938, 23.380349;113.989259, 23.378689;113.990391, 23.377534;113.991359, 23.374289;113.991746, 23.373313;113.991878, 23.371866;113.992075, 23.371266;113.991948, 23.370427;113.99364, 23.368404;113.995364, 23.367029;113.995179, 23.364464;113.996058, 23.360675;114.000305, 23.356761;114.004303, 23.35594;114.006685, 23.352199;114.007144, 23.350525;114.004917, 23.348165;114.004009, 23.345385;114.002435, 23.342638;114.001284, 23.340451;113.998023, 23.341103;113.995958, 23.338952;113.994373, 23.337734;113.991292, 23.338851;113.994625, 23.335441;113.996562, 23.334336;113.995989, 23.328102;113.997816, 23.325808;113.999169, 23.323133;114.003351, 23.31699;114.003435, 23.313238;114.003001, 23.307481;114.001939, 23.307075;114.000675, 23.306334;113.99801, 23.305353;113.993721, 23.306408;113.989855, 23.308432;113.985355, 23.308099;113.983979, 23.309357;113.983833, 23.313381;113.980537, 23.313788;113.978846, 23.315616;113.975704, 23.316176;113.975094, 23.317226;113.973367, 23.318575;113.970365, 23.319379;113.9678, 23.320377;113.965635, 23.322742;113.966728, 23.323692;113.96821, 23.327671;113.968416, 23.332138;113.967223, 23.333729;113.966757, 23.334512;113.967635, 23.336679;113.965273, 23.338237;113.964801, 23.341813;113.960542, 23.342799;113.955285, 23.342837;113.952283, 23.34467;113.950604, 23.3454;113.948856, 23.349392;113.946731, 23.3497;113.945029, 23.348846;113.943223, 23.350194;113.941987, 23.349674;113.939778, 23.348585;113.936465, 23.346669;113.933547, 23.347715;113.930483, 23.348533;113.927739, 23.348388;113.918983, 23.350219;113.917629, 23.351042;113.915317, 23.351652;113.914501, 23.352066;113.913039, 23.353343;113.91001, 23.352805;113.907331, 23.35269;113.903481, 23.351136;113.900361, 23.347045;113.899196, 23.342583;113.897857, 23.340002;113.896828, 23.336746;113.897714, 23.335732;113.900054, 23.337462;113.903722, 23.335504;113.900971, 23.333347;113.901165, 23.329554;113.906133, 23.328147;113.906363, 23.32758;113.904383, 23.325423;113.903205, 23.323627;113.90254, 23.322027;113.903479, 23.320995;113.902599, 23.317809;113.9003, 23.315853;113.899367, 23.309919;113.898528, 23.307831;113.898586, 23.302821;113.896596, 23.30026;113.895631, 23.298591;113.898192, 23.295634;113.897255, 23.290175;113.896466, 23.287447;113.894556, 23.28631;113.891327, 23.280338;113.891232, 23.279288;113.887153, 23.277812;113.883627, 23.273362;113.887609, 23.272181;113.889668, 23.271189;113.890673, 23.271179;113.891756, 23.268058;113.892441, 23.266987;113.896664, 23.265035;113.899155, 23.265206;113.900831, 23.261746;113.903001, 23.259703;113.902311, 23.258324;113.899942, 23.256085;113.897702, 23.255021;113.896792, 23.251021;113.900357, 23.24462;113.902083, 23.240652;113.902643, 23.238922;113.902613, 23.237736;113.906828, 23.230066;113.908143, 23.228534;113.911665, 23.227513;113.912072, 23.226749;113.911482, 23.224429;113.911191, 23.223459;113.910306, 23.221849;113.910869, 23.221084;113.910325, 23.220126;113.908128, 23.218588;113.907425, 23.219079;113.907484, 23.220701;113.904546, 23.220233;113.90437, 23.219;113.902563, 23.220994;113.902708, 23.221981;113.901567, 23.221773;113.900509, 23.220469;113.899634, 23.217118;113.899223, 23.213657;113.899361, 23.209655;113.895843, 23.209918;113.894957, 23.206433;113.894934, 23.204879;113.892933, 23.200496;113.890229, 23.196596;113.893015, 23.194064;113.893565, 23.192356;113.893288, 23.191445;113.894542, 23.188183;113.894289, 23.187098;113.895085, 23.185968;113.897715, 23.183135;113.899566, 23.183006;113.900921, 23.182402;113.901794, 23.18452;113.904054, 23.184193;113.906184, 23.183965;113.90674, 23.182159;113.908361, 23.181655;113.911479, 23.18576;113.912412, 23.185207;113.909915, 23.181794;113.908594, 23.178369;113.908776, 23.177727;113.907288, 23.175067;113.905028, 23.172899;113.903899, 23.172711;113.89861, 23.169713;113.895606, 23.169746;113.890283, 23.17142;113.883478, 23.172023;113.876677, 23.169103;113.876518, 23.166701;113.871936, 23.164728;113.86604, 23.163996;113.863316, 23.15926;113.860181, 23.156904;113.856857, 23.154951;113.856032, 23.148414;113.856688, 23.147658;113.855999, 23.145962;113.853425, 23.138564;113.854131, 23.138113;113.855822, 23.139049;113.856564, 23.137142;113.855248, 23.134757;113.855098, 23.133481;113.852578, 23.136628;113.852028, 23.135014;113.855021, 23.13131;113.854474, 23.129782;113.855403, 23.128019;113.853897, 23.12493;113.852458, 23.124047;113.844335, 23.124053;113.830268, 23.129619;113.820103, 23.135589;113.806744, 23.134538;113.784615, 23.132341;113.771389, 23.132524;113.759577, 23.136271;113.740552, 23.147496;113.72641, 23.148376;113.718216, 23.140841;113.700289, 23.130145;113.680217, 23.123035;113.666785, 23.117881;113.667364, 23.123423;113.660882, 23.121691;113.654983, 23.122428;113.649658, 23.117137;113.648024, 23.11009;113.621552, 23.10993;113.605437, 23.100189;113.590118, 23.091007;113.574526, 23.089434;113.561746, 23.087028;113.555331, 23.082741;113.547178, 23.065418;113.534653, 23.053468;113.528586, 23.041186;113.530364, 23.030326;113.533562, 23.020672;113.537348, 23.003128;113.545566, 22.97574;113.551626, 22.957703;113.561997, 22.938046;113.573615, 22.907719;113.575956, 22.879842;113.574773, 22.860595

示例2:获取广州市海珠区行政边界经纬度

094b4e9689e63b0b047aab573ea0d4b1.png

113.426517, 23.094815;113.422967, 23.096533;113.422254, 23.10206;113.420906, 23.10451;113.416379, 23.107581;113.414751, 23.105268;113.413988, 23.10574;113.412412, 23.106843;113.41303, 23.10797;113.411838, 23.108791;113.411053, 23.108942;113.410576, 23.108723;113.409981, 23.107802;113.408767, 23.108433;113.405783, 23.109753;113.391839, 23.113611;113.38476, 23.113903;113.358184, 23.1131;113.351884, 23.114067;113.341835, 23.115171;113.330957, 23.114734;113.328312, 23.115979;113.298256, 23.113623;113.277167, 23.119577;113.263183, 23.114015;113.257821, 23.111964;113.254391, 23.110572;113.249381, 23.109138;113.248104, 23.108405;113.251331, 23.105604;113.255505, 23.098082;113.258663, 23.088444;113.261204, 23.083672;113.266815, 23.075589;113.273967, 23.068609;113.28073, 23.063263;113.286672, 23.061149;113.307718, 23.057554;113.342506, 23.052258;113.365444, 23.049259;113.374953, 23.058844;113.37568, 23.061254;113.377994, 23.063076;113.388789, 23.072255;113.404412, 23.084741;113.406625, 23.086732;113.415097, 23.089143;113.425628, 23.094156

方法三:从百度坐标拾取

https://api.map.baidu.com/lbsapi/getpoint/index.html

8d34581516970ef55ba65737b08a59e4.png

逐个获取边界点坐标,最后汇聚在一起,转换成需要的数据格式。这种方式虽然耗时最长,但其优点也是很明显的——自定义程度最高。

方法 四: 百度API Demo http://lbsyun.baidu.com/jsdemo.htm#c1_10

9bb10dc22b767eb748b639541b6b7f45.png

二、格式转换

如目标格式是geojson文件,范例如下:

{"type":"FeatureCollection","features":[{           "type":"Feature",           "properties":{                       "adcode":440100,                       "name":"广州市",                                                 "center":[113.280637,23.125178],                       "centroid":[113.544371,23.32925],                       "childrenNum":11,                       "level":"city",                       "acroutes":[100000,440000],                       "parent":{"adcode":440000}                       },            "geometry":{                      "type":"MultiPolygon",                      "coordinates":[[[[113.574773, 22.860595],...]]]                       }          }]}

三、QGIS定制

导入QGIS中,根据喜好或要求调整图层边缘颜色粗细大小、填充颜色和标签等,最后导出到本地图片文件。

效果1:

b81de61ea8fbcfeeda2fb449dda14042.png

效果2:

a024c61e90639ac0e3e6e4f07e247e64.png

效果3:

4b99d34f3077b0554c411ccfbbb4dbfe.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值