Newer
Older
osmCoverage / src / coverage_BUSSTOP_after.sh
@hayashi hayashi on 3 Feb 2018 1 KB after sh
  1.  
  2. # make Vector Tile
  3. export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
  4. export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"
  5. export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"
  6. export CXX=g++-5
  7. #brew install tippecanoe
  8.  
  9. rm -rf vtile
  10. mkdir vtile
  11.  
  12. curl --user yuu:yuu8844 -O http://localhost:8080/job/osmCoverage_BusstopJson/lastSuccessfulBuild/artifact/busstopJSON.tgz
  13.  
  14. tar zxvf busstopJSON.tgz
  15.  
  16. cd vtile
  17. ls -l
  18.  
  19. tippecanoe -l busstop_map0 -rg -z16 -Z6 -o bus0.mbtiles busstop0.json
  20. tippecanoe -l busstop_map1 -rg -z16 -Z6 -o bus1.mbtiles busstop1.json
  21. tippecanoe -l busstop_map2 -rg -z16 -Z6 -o bus2.mbtiles busstop2.json
  22.  
  23. git clone git://github.com/mapbox/mbutil.git
  24. cd mbutil
  25. ./mb-util --image_format=pbf ../bus0.mbtiles tileBus0
  26. ./mb-util --image_format=pbf ../bus1.mbtiles tileBus1
  27. ./mb-util --image_format=pbf ../bus2.mbtiles tileBus2
  28.  
  29. #-----------
  30. pwd
  31. ls -l
  32. cd tileBus0
  33. pwd
  34. ls -l
  35. gzip -d -v -r -S .pbf *
  36. find . -type f -exec mv -v '{}' '{}'.pbf \;
  37.  
  38. cd ..
  39. pwd
  40. ls -l
  41. tar czvf ../../tileBus0.tgz tileBus0
  42.  
  43. #-----------
  44.  
  45. pwd
  46. ls -l
  47. cd tileBus1
  48. pwd
  49. ls -l
  50. gzip -d -v -r -S .pbf *
  51. find . -type f -exec mv -v '{}' '{}'.pbf \;
  52.  
  53. cd ..
  54. pwd
  55. ls -l
  56. tar czvf ../../tileBus1.tgz tileBus1
  57.  
  58. #-----------
  59. pwd
  60. cd tileBus2
  61. pwd
  62. ls -l
  63. gzip -d -v -r -S .pbf *
  64. find . -type f -exec mv -v '{}' '{}'.pbf \;
  65.  
  66. cd ..
  67. pwd
  68. ls -l
  69. tar czvf ../../tileBus2.tgz tileBus2
  70.  
  71. #-----------