generate.js 1.7 KB

123456789101112131415161718192021222324252627282930313233
  1. const arr = [
  2. ['三星镇级',4660.9176,3846.1232,814.7945,94.6069,480.1865,-385.5796],
  3. ['大平村',1386.1846,872.3507,513.8339,120.5025,28.7237,91.7787],
  4. ['南桥村',660.1446,545.6504,114.4942,62.9448,26.8455,36.0993],
  5. ['新安村',1725.2063,815.6373,909.569,61.9413,19.3468,42.5945],
  6. ['海洪港村',1484.9126,865.6137,619.2989,63.3959,26.9951,36.4008],
  7. ['育德村',1776.519,1517.8948,258.6242,118.6305,65.3491,53.2814],
  8. ['沈镇村',879.3259,640.1685,239.1574,68.2061,30.3568,37.8493],
  9. ['纯阳村',644.5627,497.3245,147.2382,113.6508,42.9153,70.7356],
  10. ['西新村',1628.3014,1360.0144,268.287,118.7747,19.5849,99.1899],
  11. ['三协村',1081.1702,563.5895,517.5807,82.4544,31.0564,51.398],
  12. ['邻江村',432.6986,215.7521,216.9466,58.0598,22.7972,35.2627],
  13. ['海滨村',601.1664,383.3716,217.7947,69.444,42.3966,27.0474],
  14. ['协进村',1690.8058,1301.7861,389.0197,116.422,40.3377,76.0843],
  15. ['育新村',630.0222,301.0407,328.9815,68.0315,24.6542,43.3773],
  16. ['北桥村',787.6839,518.2967,269.3872,120.2877,27.697,92.5907],
  17. ['洪海村',654.0477,360.073,293.9746,63.4491,33.4271,30.022],
  18. ['南协村',1010.5927,790.0216,220.5711,110.4102,33.9865,76.4237],
  19. ['海中村',943.8549,567.4188,376.4361,116.0792,32.5021,83.5771],
  20. ['永安村',1313.698,664.0905,649.6075,119.1791,31.4192,87.7599],
  21. ['海安村',438.2773,232.0641,206.2132,57.0567,22.1649,34.8918],
  22. ['东安村',1109.6348,479.9474,629.6874,111.8192,46.641,65.1782],
  23. ['平安村',850.7029,650.5928,200.1102,120.1805,28.4591,91.7214],
  24. ]
  25. let temp = []
  26. arr.forEach(row => {
  27. temp.push(JSON.stringify({ village: row[0], zzc: row[1], zfz: row[2], jzc: row[3], sr: row[4], zc: row[5], jsy: row[6] }) )
  28. })
  29. console.log(temp)