Newer
Older
osmCoverage / src / coverage_POSTOFFICE_after.sh
@hayashi hayashi on 4 Feb 2018 1 KB after shell
  1. # make Vector Tile
  2. export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
  3. export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"
  4. export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"
  5. export CXX=g++-5
  6. #brew install tippecanoe
  7.  
  8. rm -rf vtile
  9. mkdir vtile
  10.  
  11. curl --user yuu:yuu8844 -O http://localhost:8080/job/osmCoverage_PostofficeJson/lastSuccessfulBuild/artifact/postofficeJSON.tgz
  12.  
  13. tar zxvf postofficeJSON.tgz
  14.  
  15. #-----------
  16. # ~/vtile
  17. #
  18. cd vtile
  19. ls -l
  20.  
  21. tippecanoe -l postoffice_map0 -rg -z16 -Z6 -o postoffice0.mbtiles postoffice0.json
  22. tippecanoe -l postoffice_map1 -rg -z16 -Z6 -o postoffice1.mbtiles postoffice1.json
  23. tippecanoe -l postoffice_map2 -rg -z16 -Z6 -o postoffice2.mbtiles postoffice2.json
  24.  
  25. git clone git://github.com/mapbox/mbutil.git
  26.  
  27. #-----------
  28. # ~/vtile/mbutil
  29. #
  30. cd mbutil
  31. ./mb-util --image_format=pbf ../postoffice0.mbtiles tilePostoffice0
  32. ./mb-util --image_format=pbf ../postoffice1.mbtiles tilePostoffice1
  33. ./mb-util --image_format=pbf ../postoffice2.mbtiles tilePostoffice2
  34.  
  35. pwd
  36. ls -l
  37.  
  38. #-----------
  39. # ~/vtile/mbutil/tilePostoffice0
  40. #
  41. cd tilePostoffice0
  42. pwd
  43. ls -l
  44. gzip -d -v -r -S .pbf *
  45. find . -type f -exec mv -v '{}' '{}'.pbf \;
  46.  
  47. #-----------
  48. # ~/vtile/mbutil
  49. #
  50. cd ..
  51. pwd
  52. ls -l
  53. tar czvf ../../tilePostoffice0.tgz tilePostoffice0
  54. pwd
  55. ls -l
  56.  
  57. #-----------
  58. # ~/vtile/mbutil/tilePostoffice1
  59. #
  60. cd tilePostoffice1
  61. pwd
  62. ls -l
  63. gzip -d -v -r -S .pbf *
  64. find . -type f -exec mv -v '{}' '{}'.pbf \;
  65.  
  66. #-----------
  67. # ~/vtile/mbutil
  68. #
  69. cd ..
  70. pwd
  71. ls -l
  72. tar czvf ../../tilePostoffice1.tgz tilePostoffice1
  73. pwd
  74.  
  75. #-----------
  76. # ~/vtile/mbutil/tilePostoffice2
  77. #
  78. cd tilePostoffice2
  79. pwd
  80. ls -l
  81. gzip -d -v -r -S .pbf *
  82. find . -type f -exec mv -v '{}' '{}'.pbf \;
  83.  
  84. #-----------
  85. # ~/vtile/mbutil
  86. #
  87. cd ..
  88. pwd
  89. ls -l
  90. tar czvf ../../tilePostoffice2.tgz tilePostoffice2
  91.  
  92. #-----------