Java调用echarts提供的地图压缩方法来压缩地图

时间:2021-05-20

由于默认情况下的 GeoJSON 文件太大,ECharts 提供了方法可以压缩地图。

GeoJSON 介绍:http://geojson.org/

ECharts 提供了压缩算法,但是代码是 JavaScript 的,参考代码写个 Java 的也可以,但是通过 Java 提供的脚本引擎可以很方便的直接执行 JS。

本文压缩代码参考下面的项目:

https://github.com/giscafer/mapshaper-plus
这里的算法也是来源于 ECharts

从该项目提取出压缩地图的 JS 代码,简化后如下:

function convert2Echarts(rawStr,fileName,type){ var results=""; var json = JSON.parse(rawStr); // Meta tag json.UTF8Encoding = true; var features = json.features; if (!features) { return; } features.forEach(function (feature){ var encodeOffsets = feature.geometry.encodeOffsets = []; var coordinates = feature.geometry.coordinates; if (feature.geometry.type === 'Polygon') { coordinates.forEach(function (coordinate, idx){ coordinates[idx] = encodePolygon( coordinate, encodeOffsets[idx] = [] ); }); } else if(feature.geometry.type === 'MultiPolygon') { coordinates.forEach(function (polygon, idx1){ encodeOffsets[idx1] = []; polygon.forEach(function (coordinate, idx2) { coordinates[idx1][idx2] = encodePolygon( coordinate, encodeOffsets[idx1][idx2] = [] ); }); }); } }); if(type==='json'){ results=JSON.stringify(json); }else{ results=addEchartsJsWrapper(JSON.stringify(json), fileName); } return results;};function encodePolygon(coordinate, encodeOffsets) { var result = ''; var prevX = quantize(coordinate[0][0]); var prevY = quantize(coordinate[0][1]); // Store the origin offset encodeOffsets[0] = prevX; encodeOffsets[1] = prevY; for (var i = 0; i < coordinate.length; i++) { var point = coordinate[i]; result+=encode(point[0], prevX); result+=encode(point[1], prevY); prevX = quantize(point[0]); prevY = quantize(point[1]); } return result;}function addAMDWrapper(jsonStr) { return ['define(function() {', ' return ' + jsonStr + ';', '});'].join('\n');}function addEchartsJsWrapper(jsonStr,fileName) { return ['(function (root, factory) {', " if (typeof define === 'function' && define.amd) {", " define(['exports', 'echarts'], factory);", " } else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {", " factory(exports, require('echarts'));", " } else {", " factory({}, root.echarts);", " }", " }(this, function (exports, echarts) {", " var log = function (msg) {", " if (typeof console !== 'undefined') {", " console && console.error && console.error(msg);", " }", " }", " if (!echarts) {", " log('ECharts is not Loaded');", " return;", " }", " if (!echarts.registerMap) {", " log('ECharts Map is not loaded')", " return;", " }", " echarts.registerMap('"+fileName+"',"+ jsonStr, ' )}));'].join('\n');}function encode(val, prev){ // Quantization val = quantize(val); // var tmp = val; // Delta val = val - prev; if (((val << 1) ^ (val >> 15)) + 64 === 8232) { //WTF, 8232 will get syntax error in js code val--; } // ZigZag val = (val << 1) ^ (val >> 15); // add offset and get unicode return String.fromCharCode(val+64); // var tmp = {'tmp' : str}; // try{ // eval("(" + JSON.stringify(tmp) + ")"); // }catch(e) { // console.log(val + 64); // }}function quantize(val) { return Math.ceil(val * 1024);}

一个河北省的 GeoJSON 示例(文件大小为 55 kb):

{"type": "FeatureCollection","cp":[115.4004,39.4688],"size":"1300","features":[{"type": "Feature","properties":{"id":"1308","name":"承德市","cp":[117.5757,41.4075],"childNum":11},"geometry":{"type":"Polygon","coordinates":[[[116.0815,41.781],[116.1035,41.7865],[116.1255,41.8085],[116.1035,41.8359],[116.1255,41.8689],[116.1584,41.8634],[116.1694,41.8744],[116.1914,41.8634],[116.2134,41.8799],[116.2134,41.8909],[116.2244,41.9183],[116.2354,41.9238],[116.2244,41.9293],[116.2244,41.9348],[116.3013,41.9733],[116.3123,41.9952],[116.3342,42.0062],[116.3672,42.0117],[116.4111,41.9952],[116.4111,41.9678],[116.3892,41.9458],[116.4331,41.9403],[116.4661,41.9568],[116.499,41.9843],[116.532,41.9568],[116.543,41.9348],[116.5869,41.9238],[116.5979,41.9348],[116.6418,41.9293],[116.6638,41.9458],[116.7188,41.9403],[116.7188,41.9623],[116.7297,41.9733],[116.7407,41.9897],[116.7737,41.9952],[116.7737,41.9843],[116.7957,41.9733],[116.8506,42.0062],[116.8726,42.0007],[116.8835,42.0227],[116.8726,42.0282],[116.8835,42.0557],[116.8835,42.0667],[116.8945,42.0831],[116.8945,42.1051],[116.8286,42.1655],[116.8066,42.1765],[116.7957,42.1875],[116.8176,42.204],[116.9055,42.1875],[116.9165,42.1985],[116.9165,42.2534],[116.9055,42.2699],[116.9055,42.2919],[116.8945,42.3083],[116.9055,42.3523],[116.9055,42.3688],[116.9055,42.3853],[116.9165,42.4017],[116.9714,42.4292],[117.0044,42.4292],[117.0154,42.4567],[117.0813,42.4622],[117.0923,42.4841],[117.1362,42.4677],[117.2021,42.4677],[117.2791,42.4841],[117.334,42.4622],[117.3889,42.4622],[117.4109,42.4731],[117.3999,42.5116],[117.3999,42.5226],[117.4219,42.5226],[117.4329,42.5116],[117.4658,42.5171],[117.4768,42.5336],[117.4768,42.583],[117.4878,42.594],[117.5317,42.5885],[117.5427,42.5995],[117.5537,42.605],[117.5757,42.583],[117.6306,42.5665],[117.8064,42.616],[117.8064,42.5995],[117.7954,42.594],[117.8064,42.5775],[117.8394,42.561],[117.8613,42.5391],[117.8723,42.4951],[117.9272,42.4731],[117.9602,42.4292],[117.9712,42.4292],[118.0042,42.4127],[118.0261,42.3853],[118.0151,42.3468],[118.0261,42.3193],[118.0591,42.3083],[118.0591,42.2864],[117.9712,42.2424],[118.0261,42.2095],[118.0481,42.193],[118.103,42.182],[118.114,42.171],[118.103,42.149],[118.092,42.1106],[118.158,42.0831],[118.158,42.0612],[118.136,42.0667],[118.147,42.0557],[118.114,42.0447],[118.125,42.0392],[118.158,42.0282],[118.2019,42.0337],[118.2239,42.0557],[118.2239,42.0831],[118.2458,42.0941],[118.2678,42.0886],[118.3008,42.0557],[118.2788,42.0282],[118.2678,42.0282],[118.2349,42.0172],[118.2898,42.0062],[118.3008,41.9897],[118.3118,41.9897],[118.3008,41.9403],[118.2678,41.9293],[118.2678,41.9183],[118.3337,41.8744],[118.3337,41.8579],[118.3447,41.8469],[118.3228,41.8359],[118.3118,41.781],[118.2788,41.7645],[118.2678,41.7645],[118.2568,41.77],[118.2458,41.781],[118.2458,41.7975],[118.2239,41.814],[118.2019,41.8085],[118.1909,41.814],[118.1689,41.8085],[118.147,41.7975],[118.158,41.7865],[118.136,41.7645],[118.147,41.759],[118.136,41.7316],[118.158,41.7206],[118.1689,41.6821],[118.2239,41.6382],[118.2129,41.6162],[118.2349,41.5833],[118.2898,41.5723],[118.2898,41.5613],[118.3228,41.5668],[118.3118,41.5393],[118.3228,41.5173],[118.3228,41.5063],[118.3118,41.5009],[118.3118,41.4844],[118.2788,41.4789],[118.2678,41.4679],[118.3447,41.4514],[118.3557,41.424],[118.3557,41.391],[118.3667,41.3855],[118.3557,41.3745],[118.3557,41.3525],[118.3667,41.347],[118.3557,41.3361],[118.3777,41.3141],[118.3997,41.3086],[118.4106,41.3196],[118.4216,41.3361],[118.4875,41.347],[118.5095,41.3416],[118.5315,41.358],[118.5425,41.3525],[118.5864,41.3525],[118.6084,41.347],[118.6523,41.347],[118.6743,41.358],[118.6963,41.3306],[118.7073,41.3361],[118.7183,41.3306],[118.7512,41.3251],[118.7842,41.358],[118.8281,41.369],[118.8501,41.3855],[118.8501,41.369],[118.8391,41.3635],[118.8501,41.3525],[118.8501,41.347],[118.8721,41.3031],[118.927,41.3031],[118.949,41.3141],[118.9709,41.3086],[119.0149,41.3086],[119.0369,41.2976],[119.1467,41.2976],[119.2017,41.2866],[119.2126,41.2921],[119.2126,41.3086],[119.2456,41.3086],[119.2566,41.2811],[119.2456,41.2701],[119.2126,41.2537],[119.2126,41.2262],[119.1797,41.2262],[119.1687,41.2152],[119.1907,41.2042],[119.1907,41.1932],[119.1248,41.1383],[119.0808,41.1328],[119.0808,41.0944],[119.0698,41.0724],[119.0479,41.0779],[119.0369,41.0614],[118.96,41.0779],[118.938,41.0559],[118.938,41.0339],[118.949,41.0175],[119.0259,41.0065],[119.0259,40.99],[119.0039,40.968],[118.9709,40.957],[118.938,40.957],[118.916,40.968],[118.905,40.9625],[118.8831,40.8691],[118.8501,40.8197],[118.8501,40.8032],[118.8831,40.7813],[118.905,40.7813],[118.894,40.7593],[118.949,40.7483],[118.96,40.7208],[118.9819,40.7043],[119.0149,40.6879],[119.0369,40.6879],[119.0588,40.6659],[119.0808,40.6769],[119.1028,40.6659],[119.1577,40.6934],[119.1797,40.6824],[119.1797,40.6659],[119.1467,40.6384],[119.1577,40.6055],[119.1138,40.6055],[119.0808,40.589],[119.0588,40.6055],[118.96,40.556],[118.9709,40.5341],[118.96,40.5341],[118.927,40.5286],[118.894,40.5396],[118.8611,40.5286],[118.8281,40.5341],[118.7952,40.5121],[118.7842,40.4901],[118.7732,40.4791],[118.7292,40.4736],[118.6963,40.4901],[118.6743,40.4681],[118.6633,40.4517],[118.6304,40.4462],[118.6084,40.4352],[118.6194,40.4242],[118.6194,40.4187],[118.6304,40.4187],[118.6304,40.3967],[118.6523,40.3693],[118.6084,40.3253],[118.5974,40.3088],[118.5864,40.3088],[118.5645,40.2869],[118.5315,40.2979],[118.5425,40.3802],[118.5645,40.3967],[118.5425,40.4187],[118.5315,40.4077],[118.4985,40.4022],[118.4656,40.4132],[118.4106,40.4187],[118.3887,40.4352],[118.3557,40.4297],[118.3557,40.4352],[118.3337,40.4297],[118.3228,40.4187],[118.3118,40.4187],[118.2788,40.4242],[118.2568,40.4462],[118.2568,40.4572],[118.2349,40.4626],[118.2349,40.4517],[118.1909,40.4297],[118.158,40.4242],[118.158,40.4077],[118.1689,40.4022],[118.136,40.3748],[118.125,40.3583],[118.0811,40.3528],[118.0701,40.3253],[118.0371,40.3033],[118.0042,40.2924],[117.9712,40.2924],[117.9492,40.2814],[117.9492,40.2869],[117.9163,40.2869],[117.9053,40.2704],[117.8064,40.2594],[117.7625,40.2429],[117.7515,40.2319],[117.7185,40.2429],[117.6965,40.2374],[117.6416,40.2045],[117.6196,40.2045],[117.6086,40.1935],[117.5757,40.1935],[117.5647,40.21],[117.5757,40.2209],[117.5537,40.2209],[117.5427,40.2319],[117.5098,40.2264],[117.4768,40.2319],[117.4438,40.2539],[117.4219,40.2484],[117.4109,40.2319],[117.3999,40.2374],[117.3889,40.2264],[117.356,40.2374],[117.345,40.2429],[117.334,40.2759],[117.301,40.2759],[117.29,40.2924],[117.2791,40.3088],[117.2791,40.3308],[117.2571,40.3418],[117.2461,40.3693],[117.2241,40.3693],[117.2241,40.3748],[117.2351,40.3967],[117.2351,40.4022],[117.2351,40.4187],[117.2681,40.4407],[117.2351,40.4572],[117.2351,40.4681],[117.2131,40.4956],[117.2131,40.5121],[117.2571,40.5176],[117.2461,40.5505],[117.312,40.5725],[117.345,40.578],[117.3889,40.5615],[117.3999,40.5725],[117.4219,40.567],[117.4329,40.578],[117.4109,40.6055],[117.4219,40.6384],[117.4768,40.6494],[117.4768,40.6329],[117.4988,40.6384],[117.5098,40.6659],[117.4988,40.6769],[117.4658,40.6714],[117.4109,40.6879],[117.345,40.6714],[117.323,40.6604],[117.29,40.6604],[117.2571,40.6824],[117.2461,40.6769],[117.2021,40.6934],[117.1143,40.6989],[117.1143,40.7043],[117.0483,40.6989],[117.0264,40.6934],[116.9604,40.7098],[116.9385,40.7373],[116.9275,40.7428],[116.9275,40.7758],[116.8945,40.7758],[116.8945,40.7922],[116.8835,40.8032],[116.8726,40.8197],[116.8176,40.8472],[116.8066,40.8417],[116.7847,40.8746],[116.7188,40.9076],[116.7297,40.9296],[116.7188,40.9351],[116.7078,40.9351],[116.6748,40.9735],[116.6968,41.0229],[116.6858,41.0449],[116.6858,41.0394],[116.6418,41.0614],[116.6199,41.0504],[116.6089,41.0394],[116.6199,41.0175],[116.6199,40.9845],[116.5979,40.9735],[116.5649,40.9955],[116.543,40.99],[116.521,40.9735],[116.4661,40.9845],[116.4551,40.979],[116.4441,40.957],[116.4661,40.9296],[116.4771,40.9021],[116.4001,40.9076],[116.3672,40.9406],[116.3452,40.979],[116.3013,40.99],[116.2903,41.0065],[116.2793,41.0175],[116.2683,41.0339],[116.2683,41.0394],[116.2903,41.0669],[116.2683,41.0999],[116.2354,41.1273],[116.2463,41.1658],[116.2244,41.1823],[116.2354,41.2097],[116.1914,41.2592],[116.1914,41.2921],[116.2134,41.3086],[116.2134,41.3251],[116.1694,41.358],[116.1365,41.369],[116.1035,41.369],[116.0815,41.3855],[116.0486,41.391],[116.0376,41.424],[116.0156,41.4349],[116.0046,41.4569],[115.9827,41.4734],[115.9937,41.4844],[115.9717,41.5448],[115.9497,41.5668],[115.9277,41.5668],[115.9277,41.5942],[115.9058,41.6437],[115.9497,41.6602],[116.0596,41.7371],[116.0815,41.781]]]}},{"type": "Feature","properties":{"id":"1307","name":"张家口市","cp":[115.1477,40.8527],"childNum":15},"geometry":{"type":"Polygon","coordinates":[[[116.0815,41.781],[116.0596,41.7371],[115.9497,41.6602],[115.9058,41.6437],[115.9277,41.5942],[115.9277,41.5668],[115.9497,41.5668],[115.9717,41.5448],[115.9937,41.4844],[115.9827,41.4734],[116.0046,41.4569],[116.0156,41.4349],[116.0376,41.424],[116.0486,41.391],[116.0815,41.3855],[116.1035,41.369],[116.1365,41.369],[116.1694,41.358],[116.2134,41.3251],[116.2134,41.3086],[116.1914,41.2921],[116.1914,41.2592],[116.2354,41.2097],[116.2244,41.1823],[116.2463,41.1658],[116.2354,41.1273],[116.2683,41.0999],[116.2903,41.0669],[116.2683,41.0394],[116.2683,41.0339],[116.2793,41.0175],[116.2903,41.0065],[116.3013,40.99],[116.3452,40.979],[116.3672,40.9406],[116.3452,40.9296],[116.3342,40.9076],[116.3892,40.8636],[116.4111,40.8307],[116.4331,40.8197],[116.4441,40.8087],[116.4551,40.7977],[116.4661,40.7703],[116.4221,40.7648],[116.4111,40.7758],[116.3232,40.7703],[116.3123,40.7648],[116.3123,40.7538],[116.2793,40.7648],[116.2463,40.7922],[116.2354,40.7813],[116.2354,40.7593],[116.2134,40.7428],[116.2134,40.7208],[116.2024,40.7153],[116.1914,40.7208],[116.1694,40.6934],[116.1694,40.6659],[116.1475,40.6659],[116.1145,40.6494],[116.1255,40.6274],[116.1145,40.6165],[116.0156,40.6],[116.0046,40.589],[116.0046,40.578],[115.9827,40.578],[115.9717,40.6],[115.9497,40.6],[115.9387,40.611],[115.9167,40.6165],[115.8838,40.5945],[115.8289,40.589],[115.8179,40.556],[115.7959,40.5615],[115.752,40.5396],[115.741,40.5066],[115.741,40.4901],[115.7739,40.4846],[115.7739,40.4626],[115.7739,40.4517],[115.8069,40.4187],[115.8179,40.3857],[115.8508,40.3748],[115.8728,40.3583],[115.9058,40.3583],[115.9167,40.3693],[115.9277,40.3363],[115.9387,40.3143],[115.9497,40.2869],[115.9717,40.2649],[115.9607,40.2594],[115.9277,40.2539],[115.9167,40.2374],[115.8948,40.2374],[115.8728,40.188],[115.8398,40.166],[115.8508,40.1495],[115.8069,40.155],[115.7849,40.177],[115.7739,40.177],[115.752,40.155],[115.752,40.144],[115.752,40.1385],[115.73,40.1276],[115.686,40.1385],[115.6531,40.1276],[115.6531,40.1166],[115.6091,40.1166],[115.5981,40.0946],[115.5762,40.0946],[115.5762,40.1001],[115.5432,40.0781],[115.5322,40.0781],[115.4553,40.0287],[115.4443,39.9957],[115.4224,39.9792],[115.4224,39.9518],[115.4004,39.9078],[115.4004,39.8914],[115.3674,39.8859],[115.3674,39.8639],[115.3455,39.8419],[115.3455,39.8199],[115.3345,39.8035],[115.3345,39.7925],[115.3125,39.7815],[115.2795,39.743],[115.2466,39.7375],[115.2136,39.7101],[115.1807,39.6991],[115.1807,39.6826],[115.1697,39.6716],[115.1367,39.6881],[115.1257,39.6881],[115.1038,39.7046],[115.0378,39.7046],[115.0159,39.6771],[114.9829,39.6771],[114.9609,39.6606],[114.939,39.6716],[114.928,39.6497],[114.884,39.6387],[114.884,39.6222],[114.8511,39.6002],[114.8511,39.5837],[114.8401,39.5837],[114.8181,39.6112],[114.7961,39.6002],[114.7632,39.6167],[114.7302,39.6112],[114.7192,39.6222],[114.7083,39.5892],[114.6533,39.5837],[114.6643,39.5947],[114.6533,39.6002],[114.6423,39.5947],[114.6423,39.5673],[114.6204,39.5563],[114.6204,39.5673],[114.5764,39.5673],[114.5654,39.5782],[114.5544,39.5618],[114.5215,39.5618],[114.5105,39.5782],[114.4995,39.6057],[114.4666,39.6112],[114.4336,39.6057],[114.4006,39.6442],[114.4006,39.6936],[114.4116,39.776],[114.4226,39.787],[114.4336,39.787],[114.3787,39.8694],[114.3237,39.8639],[114.3127,39.8584],[114.2798,39.8749],[114.2249,39.8639],[114.2139,39.8694],[114.2249,39.8969],[114.2249,39.9078],[114.1919,39.9078],[114.1809,39.9023],[114.1479,39.8969],[114.115,39.9078],[114.093,39.9133],[114.071,39.9243],[114.0491,39.9188],[114.0271,39.9628],[114.0271,39.9847],[114.0161,39.9902],[113.9392,40.0067],[113.9172,40.0012],[113.9063,40.0067],[113.9172,40.0177],[113.9612,40.0287],[113.9722,40.0562],[113.9832,40.0726],[113.9722,40.1056],[113.9832,40.1111],[114.0161,40.1001],[114.0381,40.0562],[114.093,40.0726],[114.104,40.1056],[114.082,40.1276],[114.071,40.1825],[114.104,40.1935],[114.126,40.188],[114.126,40.177],[114.1479,40.177],[114.1699,40.188],[114.2358,40.199],[114.2249,40.21],[114.2688,40.2374],[114.2688,40.2264],[114.3018,40.2264],[114.3127,40.2374],[114.3567,40.2484],[114.3896,40.2429],[114.4666,40.2594],[114.4995,40.2814],[114.4995,40.2924],[114.5215,40.3088],[114.5325,40.3418],[114.5105,40.3583],[114.4775,40.3473],[114.4446,40.3748],[114.4006,40.3528],[114.3896,40.3528],[114.3787,40.3638],[114.3567,40.3693],[114.3127,40.3638],[114.2908,40.4242],[114.2908,40.4462],[114.2798,40.4681],[114.2688,40.4736],[114.2798,40.4956],[114.2908,40.5286],[114.3018,40.5396],[114.3018,40.5505],[114.2798,40.5505],[114.2798,40.556],[114.2908,40.589],[114.2688,40.611],[114.2358,40.6055],[114.2139,40.6274],[114.2139,40.6384],[114.1809,40.6769],[114.1699,40.6989],[114.137,40.7373],[114.126,40.7428],[114.115,40.7373],[114.104,40.7428],[114.104,40.7813],[114.082,40.7867],[114.0491,40.8197],[114.0491,40.8362],[114.071,40.8527],[114.0601,40.8636],[114.0491,40.8856],[114.0271,40.9131],[114.0161,40.9186],[114.0051,40.946],[113.9832,40.946],[113.9722,40.9845],[113.9612,41.001],[113.8623,41.0779],[113.8403,41.0779],[113.8293,41.0944],[113.8293,41.1053],[113.8733,41.1108],[113.8843,41.1218],[113.9172,41.1713],[114.0051,41.1877],[114.0161,41.2262],[113.9941,41.2701],[113.9832,41.2646],[113.9722,41.2427],[113.9612,41.2427],[113.9392,41.2756],[113.9063,41.3086],[113.9063,41.3196],[113.9282,41.3306],[113.9502,41.391],[113.9392,41.4075],[113.9282,41.413],[113.8733,41.413],[113.8733,41.4459],[113.9282,41.4899],[113.9502,41.4844],[113.9722,41.5063],[114.0381,41.5283],[114.082,41.5283],[114.104,41.5393],[114.1479,41.5283],[114.1699,41.5338],[114.2139,41.5118],[114.2468,41.5173],[114.2468,41.5338],[114.2249,41.5613],[114.2468,41.5887],[114.2249,41.6162],[114.2468,41.6272],[114.2358,41.6492],[114.2139,41.6876],[114.2358,41.6931],[114.2029,41.7371],[114.2139,41.7426],[114.2139,41.759],[114.2029,41.792],[114.2249,41.8085],[114.2249,41.8304],[114.2908,41.8689],[114.3018,41.8964],[114.3237,41.9019],[114.3237,41.9293],[114.3457,41.9293],[114.3567,41.9458],[114.3896,41.9513],[114.4336,41.9458],[114.4556,41.9568],[114.4775,41.9513],[114.4885,41.9678],[114.5105,41.9788],[114.4995,41.9952],[114.4885,42.0007],[114.4775,42.0392],[114.4775,42.0612],[114.4885,42.0612],[114.4995,42.0667],[114.4995,42.0776],[114.5105,42.1161],[114.5544,42.1271],[114.5984,42.1326],[114.6423,42.1051],[114.6753,42.1271],[114.6753,42.1161],[114.6973,42.1216],[114.7522,42.1161],[114.7852,42.1326],[114.7961,42.149],[114.8181,42.149],[114.8291,42.1436],[114.8291,42.1381],[114.8621,42.0996],[114.8621,42.0886],[114.8621,42.0557],[114.884,42.0337],[114.895,42.0117],[114.906,42.0117],[114.917,42.0007],[114.906,41.9952],[114.906,41.9788],[114.917,41.9568],[114.917,41.9128],[114.928,41.9019],[114.917,41.8799],[114.906,41.8579],[114.928,41.8579],[114.95,41.8359],[114.939,41.825],[114.917,41.825],[114.895,41.814],[114.873,41.8085],[114.873,41.7975],[114.895,41.77],[114.906,41.6711],[114.906,41.6382],[114.873,41.6162],[114.8621,41.5997],[114.873,41.5997],[114.884,41.6052],[114.9719,41.6162],[114.9829,41.6052],[115.0269,41.6107],[115.0378,41.5997],[115.0598,41.5997],[115.1038,41.6217],[115.1257,41.6107],[115.1477,41.6162],[115.1697,41.5997],[115.1917,41.5997],[115.2356,41.5778],[115.2576,41.5778],[115.2686,41.6162],[115.2905,41.6217],[115.3125,41.5942],[115.3674,41.5997],[115.3784,41.6052],[115.3674,41.6107],[115.3674,41.6217],[115.3455,41.6382],[115.3564,41.6547],[115.3235,41.6766],[115.3345,41.6876],[115.3125,41.6986],[115.3345,41.7206],[115.3784,41.7206],[115.5212,41.77],[115.5542,41.792],[115.5762,41.792],[115.6531,41.8304],[115.6531,41.8469],[115.697,41.8689],[115.73,41.8689],[115.73,41.8799],[115.741,41.8964],[115.7739,41.8854],[115.7959,41.9019],[115.7959,41.9128],[115.8179,41.9183],[115.8289,41.9348],[115.8838,41.9403],[115.9167,41.9513],[115.9387,41.9019],[116.0046,41.8304],[116.0046,41.781],[116.0815,41.781]]]}},{"type": "Feature","properties":{"id":"1306","name":"保定市","cp":[115.0488,39.0948],"childNum":23},"geometry":{"type":"Polygon","coordinates":[[[114.5544,39.5618],[114.5654,39.5782],[114.5764,39.5673],[114.6204,39.5673],[114.6204,39.5563],[114.6423,39.5673],[114.6423,39.5947],[114.6533,39.6002],[114.6643,39.5947],[114.6533,39.5837],[114.7083,39.5892],[114.7192,39.6222],[114.7302,39.6112],[114.7632,39.6167],[114.7961,39.6002],[114.8181,39.6112],[114.8401,39.5837],[114.8511,39.5837],[114.8511,39.6002],[114.884,39.6222],[114.884,39.6387],[114.928,39.6497],[114.939,39.6716],[114.9609,39.6606],[114.9829,39.6771],[115.0159,39.6771],[115.0378,39.7046],[115.1038,39.7046],[115.1257,39.6881],[115.1367,39.6881],[115.1697,39.6716],[115.1807,39.6826],[115.1807,39.6991],[115.2136,39.7101],[115.2466,39.7375],[115.2795,39.743],[115.3125,39.7815],[115.3345,39.7925],[115.3345,39.8035],[115.3455,39.8199],[115.3455,39.8419],[115.3674,39.8639],[115.3674,39.8859],[115.4004,39.8914],[115.4004,39.9078],[115.4224,39.9518],[115.4443,39.9518],[115.4773,39.9353],[115.5212,39.9023],[115.5103,39.8859],[115.5212,39.8749],[115.5103,39.8474],[115.5212,39.8364],[115.5652,39.8145],[115.5542,39.7925],[115.5103,39.7815],[115.4883,39.798],[115.4333,39.776],[115.4443,39.7485],[115.4883,39.7375],[115.4883,39.6991],[115.4993,39.6936],[115.4883,39.6826],[115.4883,39.6716],[115.4773,39.6497],[115.5103,39.6497],[115.5212,39.6387],[115.5212,39.6112],[115.5432,39.6167],[115.5762,39.5947],[115.5762,39.5892],[115.5872,39.5892],[115.6201,39.6057],[115.6421,39.6002],[115.675,39.6057],[115.686,39.5892],[115.697,39.5673],[115.719,39.5618],[115.741,39.5453],[115.752,39.5178],[115.7629,39.5178],[115.7629,39.5068],[115.7739,39.5123],[115.8289,39.5123],[115.8289,39.5398],[115.8508,39.5508],[115.8838,39.5508],[115.8948,39.5673],[115.9058,39.5673],[115.9167,39.5837],[115.9058,39.5947],[115.9167,39.6002],[115.9277,39.5947],[115.9497,39.5673],[115.9717,39.5728],[115.9717,39.5947],[115.9937,39.5947],[115.9937,39.5782],[116.0046,39.5782],[116.0156,39.5892],[116.0376,39.5728],[116.1035,39.5728],[116.1475,39.5673],[116.1584,39.5782],[116.2244,39.5782],[116.2463,39.5453],[116.2463,39.5178],[116.2134,39.5123],[116.1914,39.5013],[116.1475,39.4574],[116.1365,39.4354],[116.1365,39.4025],[116.1145,39.3805],[116.1145,39.3585],[116.1914,39.353],[116.2024,39.342],[116.2024,39.2706],[116.1914,39.2157],[116.2134,39.2102],[116.2024,39.1827],[116.2134,39.1498],[116.2463,39.1443],[116.2683,39.1278],[116.2683,39.1223],[116.3232,39.0948],[116.3123,39.0399],[116.2903,39.0015],[116.3342,38.9795],[116.3123,38.9575],[116.2573,38.9355],[116.2244,38.9191],[116.1914,38.9246],[116.1584,38.9465],[116.1255,38.9301],[116.0925,38.9026],[116.0596,38.8916],[116.0596,38.8861],[116.0706,38.8696],[116.0596,38.8531],[116.0376,38.8367],[116.0376,38.8092],[116.0046,38.7982],[115.9717,38.7653],[115.9497,38.7543],[115.9497,38.7323],[115.9607,38.7048],[115.9607,38.6884],[115.9717,38.6664],[115.9717,38.6444],[115.9607,38.6279],[115.9607,38.5785],[115.9387,38.5565],[115.9387,38.54],[115.9058,38.5236],[115.8838,38.5345],[115.8618,38.5236],[115.8838,38.5126],[115.8728,38.5126],[115.8179,38.5291],[115.7849,38.5071],[115.7739,38.4851],[115.752,38.4851],[115.719,38.4467],[115.73,38.3807],[115.708,38.3807],[115.708,38.3588],[115.697,38.3478],[115.6531,38.3423],[115.6421,38.3313],[115.5981,38.3313],[115.5872,38.3423],[115.5762,38.3258],[115.5542,38.3368],[115.5432,38.3203],[115.5322,38.3148],[115.5103,38.3313],[115.5103,38.3588],[115.4993,38.3588],[115.4993,38.3423],[115.4773,38.3313],[115.4553,38.3258],[115.4224,38.3368],[115.4004,38.3203],[115.3784,38.3203],[115.3784,38.2983],[115.3894,38.2874],[115.3674,38.2764],[115.3564,38.2544],[115.3235,38.2489],[115.3015,38.2379],[115.2795,38.2434],[115.2686,38.2599],[115.2686,38.2874],[115.2466,38.2928],[115.2136,38.2489],[115.2026,38.2489],[115.1917,38.2434],[115.1697,38.2544],[115.0928,38.2654],[115.0708,38.2874],[115.0598,38.2599],[115.0269,38.2654],[114.9939,38.2544],[114.9939,38.2654],[114.9609,38.2764],[114.928,38.2764],[114.917,38.2654],[114.895,38.2654],[114.884,38.2819],[114.939,38.3313],[114.928,38.3752],[114.906,38.4027],[114.884,38.4247],[114.8621,38.4357],[114.8621,38.4521],[114.8511,38.4576],[114.8401,38.4576],[114.8401,38.4467],[114.8291,38.4467],[114.8291,38.4741],[114.8071,38.4961],[114.7522,38.4961],[114.7302,38.4796],[114.7083,38.4906],[114.6643,38.4796],[114.6423,38.5071],[114.6313,38.5236],[114.5874,38.5785],[114.5544,38.6005],[114.5435,38.6444],[114.5105,38.6609],[114.4995,38.6774],[114.4666,38.6993],[114.4556,38.7048],[114.4226,38.6938],[114.4116,38.7048],[114.3787,38.6884],[114.3347,38.6938],[114.3127,38.7103],[114.3018,38.6993],[114.2578,38.7048],[114.2468,38.6938],[114.2139,38.6938],[114.1919,38.6829],[114.1809,38.6719],[114.1479,38.6774],[114.126,38.6609],[114.093,38.6609],[114.0491,38.6884],[114.0381,38.6829],[114.0271,38.6884],[113.9941,38.6774],[113.9612,38.6993],[113.9282,38.7048],[113.9282,38.7158],[113.8843,38.7433],[113.8513,38.7433],[113.8293,38.7598],[113.8293,38.7762],[113.8293,38.7927],[113.8513,38.8147],[113.8513,38.8367],[113.8074,38.8531],[113.7744,38.8916],[113.7744,38.9026],[113.7744,38.9465],[113.7744,38.9905],[113.8074,38.9905],[113.8184,39.0125],[113.8513,39.0289],[113.8733,39.0454],[113.8843,39.0619],[113.9172,39.0619],[113.9502,39.0948],[113.9612,39.1003],[113.9832,39.0948],[114.0051,39.1168],[114.0491,39.1333],[114.0601,39.1058],[114.0601,39.0948],[114.093,39.0894],[114.126,39.0509],[114.1479,39.0509],[114.1699,39.0674],[114.1919,39.0509],[114.2139,39.0509],[114.2249,39.0674],[114.2578,39.0729],[114.3457,39.0784],[114.3677,39.1113],[114.3567,39.1388],[114.3787,39.1498],[114.3787,39.1718],[114.4446,39.1772],[114.4556,39.1937],[114.4666,39.1882],[114.4666,39.1937],[114.4775,39.2212],[114.4336,39.2322],[114.4226,39.2432],[114.4336,39.2596],[114.4226,39.2871],[114.4336,39.3146],[114.4666,39.3311],[114.4775,39.3475],[114.4666,39.3585],[114.4775,39.408],[114.4995,39.4354],[114.4995,39.4739],[114.5325,39.4904],[114.5435,39.5123],[114.5544,39.5343],[114.5654,39.5563],[114.5544,39.5618]]]}},{"type": "Feature","properties":{"id":"1302","name":"唐山市","cp":[118.4766,39.6826],"childNum":11},"geometry":{"type":"Polygon","coordinates":[[[117.5757,40.1935],[117.6086,40.1935],[117.6196,40.2045],[117.6416,40.2045],[117.6965,40.2374],[117.7185,40.2429],[117.7515,40.2319],[117.7625,40.2429],[117.8064,40.2594],[117.9053,40.2704],[117.9163,40.2869],[117.9492,40.2869],[117.9492,40.2814],[117.9712,40.2924],[118.0042,40.2924],[118.0371,40.3033],[118.0701,40.3253],[118.0811,40.3528],[118.125,40.3583],[118.136,40.3748],[118.1689,40.4022],[118.158,40.4077],[118.158,40.4242],[118.1909,40.4297],[118.2349,40.4517],[118.2349,40.4626],[118.2568,40.4572],[118.2568,40.4462],[118.2788,40.4242],[118.3118,40.4187],[118.3228,40.4187],[118.3337,40.4297],[118.3557,40.4352],[118.3557,40.4297],[118.3887,40.4352],[118.4106,40.4187],[118.4656,40.4132],[118.4985,40.4022],[118.5315,40.4077],[118.5425,40.4187],[118.5645,40.3967],[118.5425,40.3802],[118.5315,40.2979],[118.5645,40.2869],[118.5754,40.2649],[118.6633,40.2484],[118.7402,40.1935],[118.7732,40.1935],[118.7952,40.2045],[118.8501,40.177],[118.8721,40.1825],[118.894,40.166],[118.905,40.166],[118.916,40.155],[118.938,40.144],[118.927,40.1276],[118.916,40.0891],[118.8611,40.0616],[118.8721,40.0507],[118.8611,40.0232],[118.8831,40.0067],[118.8831,39.9573],[118.8721,39.9408],[118.8611,39.9353],[118.8501,39.8804],[118.8171,39.8254],[118.8171,39.809],[118.8281,39.798],[118.8062,39.7925],[118.7952,39.776],[118.7732,39.765],[118.7622,39.7321],[118.7842,39.6716],[118.8171,39.6552],[118.8391,39.6112],[118.8721,39.6057],[118.8831,39.5782],[118.8721,39.5673],[118.894,39.5453],[118.938,39.5453],[118.9709,39.5508],[118.9929,39.5398],[119.0039,39.5233],[118.9819,39.5123],[118.9819,39.5068],[119.0149,39.4904],[119.0369,39.4574],[119.0808,39.4739],[119.1577,39.4629],[119.2126,39.4629],[119.2566,39.4354],[119.3115,39.4574],[119.3445,39.4574],[119.3774,39.4519],[119.4434,39.4299],[119.4324,39.4189],[119.3884,39.386],[119.2456,39.3365],[119.1467,39.2047],[119.1138,39.1827],[119.0039,39.1718],[118.9929,39.1443],[118.938,39.0948],[118.8831,39.0619],[118.8171,39.0344],[118.6743,39.007],[118.6414,39.007],[118.6194,39.0015],[118.6194,38.9795],[118.5864,38.9301],[118.5095,38.9026],[118.4436,38.9191],[118.3777,38.9685],[118.3008,39.007],[118.158,39.0179],[118.114,39.0399],[118.0811,39.0784],[118.0701,39.1333],[118.0701,39.2542],[118.0261,39.2816],[118.0261,39.2926],[118.0371,39.3036],[118.0261,39.3091],[118.0371,39.3146],[118.0151,39.3365],[118.0151,39.3475],[118.0151,39.3585],[117.9822,39.375],[117.9712,39.3915],[117.9712,39.4025],[117.9492,39.4025],[117.9382,39.3915],[117.9053,39.408],[117.8723,39.386],[117.8723,39.4519],[117.8833,39.4684],[117.9053,39.4739],[117.8943,39.4849],[117.8943,39.5068],[117.9163,39.5178],[117.9053,39.5343],[117.9272,39.5673],[117.9272,39.5782],[117.8723,39.6002],[117.8503,39.5892],[117.8064,39.6002],[117.7844,39.5947],[117.7734,39.6002],[117.7515,39.5947],[117.7515,39.5782],[117.7405,39.5728],[117.7405,39.5618],[117.7405,39.5508],[117.7185,39.5288],[117.7075,39.5563],[117.6855,39.5673],[117.6965,39.5728],[117.6855,39.5837],[117.6746,39.5892],[117.6526,39.5782],[117.6526,39.5947],[117.6416,39.5947],[117.6306,39.6002],[117.6196,39.5947],[117.6196,39.6057],[117.6416,39.6112],[117.6526,39.6387],[117.6636,39.6387],[117.6636,39.6661],[117.6416,39.6881],[117.6416,39.6991],[117.6306,39.6991],[117.6196,39.7101],[117.6196,39.7046],[117.5977,39.7046],[117.5867,39.7211],[117.5757,39.7156],[117.5757,39.7266],[117.5977,39.743],[117.5647,39.754],[117.5427,39.7595],[117.5647,39.8035],[117.5427,39.8474],[117.5208,39.8749],[117.5098,39.9133],[117.5208,39.9298],[117.5098,39.9408],[117.5317,39.9518],[117.5427,39.9792],[117.5317,39.9957],[117.5427,39.9957],[117.5647,39.9902],[117.5867,39.9957],[117.6196,39.9738],[117.6306,39.9683],[117.7075,39.9847],[117.7185,39.9792],[117.7295,39.9738],[117.7844,39.9683],[117.7954,40.0122],[117.7734,40.0232],[117.7625,40.0177],[117.7515,40.0122],[117.7405,40.0177],[117.7515,40.0452],[117.7625,40.0507],[117.7734,40.0562],[117.7515,40.0671],[117.7515,40.0781],[117.7185,40.0781],[117.7075,40.0946],[117.6965,40.0946],[117.6855,40.0836],[117.6746,40.0836],[117.6636,40.1001],[117.6526,40.0946],[117.6526,40.1111],[117.6526,40.1331],[117.6196,40.144],[117.6196,40.155],[117.5977,40.1605],[117.5757,40.177],[117.5757,40.1935]]]}},{"type": "Feature","properties":{"id":"1309","name":"沧州市","cp":[116.8286,38.2104],"childNum":15},"geometry":{"type":"Polygon","coordinates":[[[115.708,38.3588],[115.708,38.3807],[115.73,38.3807],[115.719,38.4467],[115.752,38.4851],[115.7739,38.4851],[115.7849,38.5071],[115.8179,38.5291],[115.8728,38.5126],[115.8838,38.5126],[115.8618,38.5236],[115.8838,38.5345],[115.9058,38.5236],[115.9387,38.54],[115.9387,38.5565],[115.9607,38.5785],[115.9607,38.6279],[115.9717,38.6444],[115.9717,38.6664],[115.9607,38.6884],[115.9607,38.7048],[115.9497,38.7323],[115.9497,38.7543],[115.9717,38.7653],[116.0046,38.7982],[116.0376,38.8092],[116.0376,38.8367],[116.0596,38.8531],[116.0706,38.8696],[116.0596,38.8861],[116.0596,38.8916],[116.0925,38.9026],[116.1255,38.9301],[116.1584,38.9465],[116.1914,38.9246],[116.2024,38.9081],[116.2024,38.8861],[116.2354,38.8751],[116.2463,38.8477],[116.2683,38.8367],[116.3013,38.8147],[116.3342,38.8092],[116.4221,38.7708],[116.4331,38.7488],[116.4331,38.7213],[116.3892,38.6993],[116.3672,38.6938],[116.3672,38.6719],[116.3892,38.6115],[116.4551,38.5785],[116.4331,38.5345],[116.4441,38.5291],[116.4551,38.5071],[116.4771,38.4906],[116.532,38.4906],[116.543,38.5016],[116.554,38.5016],[116.5649,38.4961],[116.5649,38.4741],[116.5869,38.4741],[116.5869,38.4851],[116.6089,38.4851],[116.6199,38.4961],[116.6199,38.5071],[116.6199,38.5126],[116.6528,38.5126],[116.6638,38.54],[116.6528,38.5675],[116.6638,38.5785],[116.7078,38.6224],[116.7627,38.6389],[116.7847,38.6499],[116.7627,38.6993],[116.7627,38.7433],[116.8726,38.7433],[116.8726,38.6829],[116.9165,38.6829],[116.9275,38.6774],[116.9275,38.6884],[116.9934,38.6938],[117.0154,38.6884],[117.0154,38.6993],[117.0374,38.7048],[117.0374,38.6884],[117.0593,38.6829],[117.0483,38.6444],[117.0703,38.606],[117.1033,38.5895],[117.1362,38.6005],[117.1472,38.6169],[117.1912,38.6169],[117.2241,38.6389],[117.2241,38.6224],[117.2571,38.6115],[117.2571,38.6005],[117.2461,38.595],[117.2571,38.595],[117.2351,38.584],[117.2571,38.584],[117.2351,38.5785],[117.2461,38.5565],[117.2681,38.5565],[117.29,38.562],[117.29,38.5675],[117.312,38.5565],[117.356,38.573],[117.356,38.584],[117.3669,38.584],[117.3669,38.5675],[117.3999,38.5785],[117.4109,38.595],[117.4438,38.606],[117.4768,38.606],[117.4878,38.6169],[117.5208,38.6115],[117.5317,38.6005],[117.5977,38.6169],[117.6416,38.6115],[117.7075,38.551],[117.8723,38.3478

声明:本页内容来源网络,仅供用户参考;我单位不保证亦不表示资料全面及准确无误,也不保证亦不表示这些资料为最新信息,如因任何原因,本网内容或者用户因倚赖本网内容造成任何损失或损害,我单位将不会负任何法律责任。如涉及版权问题,请提交至online#300.cn邮箱联系删除。

相关文章