Newer
Older
osmCoverage / src / coverage_POLICE_after.sh
@hayashi hayashi on 5 May 2018 3 KB fixed
  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_PoliceJson/lastSuccessfulBuild/artifact/coverage.policeJSON.tgz
  12. tar zxvf coverage.policeJSON.tgz
  13.  
  14. #-----------
  15. # ~/vtile
  16. #
  17. cd vtile
  18. ls -l
  19.  
  20. tippecanoe -l police2_map0 -rg -z16 -Z6 -o police2z.mbtiles ../GML_POLICE/police2z.json
  21. tippecanoe -l police2_map1 -rg -z16 -Z6 -o police2.mbtiles ../GML_POLICE/police2.json
  22. tippecanoe -l police4_map0 -rg -z16 -Z6 -o police4z.mbtiles ../GML_POLICE/police4z.json
  23. tippecanoe -l police4_map1 -rg -z16 -Z6 -o police4.mbtiles ../GML_POLICE/police4.json
  24. tippecanoe -l police5_map0 -rg -z16 -Z6 -o police5z.mbtiles ../GML_POLICE/police5z.json
  25. tippecanoe -l police5_map1 -rg -z16 -Z6 -o police5.mbtiles ../GML_POLICE/police5.json
  26. tippecanoe -l police6_map0 -rg -z16 -Z6 -o police6z.mbtiles ../GML_POLICE/police6z.json
  27. tippecanoe -l police6_map1 -rg -z16 -Z6 -o police6.mbtiles ../GML_POLICE/police6.json
  28.  
  29. git clone git://github.com/mapbox/mbutil.git
  30.  
  31. #-----------
  32. # ~/vtile/mbutil
  33. #
  34. cd mbutil
  35. ./mb-util --image_format=pbf ../police2z.mbtiles tilePolice2z
  36. ./mb-util --image_format=pbf ../police2.mbtiles tilePolice2
  37. ./mb-util --image_format=pbf ../police4z.mbtiles tilePolice4z
  38. ./mb-util --image_format=pbf ../police4.mbtiles tilePolice4
  39. ./mb-util --image_format=pbf ../police5z.mbtiles tilePolice5z
  40. ./mb-util --image_format=pbf ../police5.mbtiles tilePolice5
  41. ./mb-util --image_format=pbf ../police6z.mbtiles tilePolice6z
  42. ./mb-util --image_format=pbf ../police6.mbtiles tilePolice6
  43.  
  44. pwd
  45. ls -l
  46.  
  47. #-----------
  48. # ~/vtile/mbutil/tilePolice2z
  49. #
  50. cd tilePolice2z
  51. pwd
  52. ls -l
  53. gzip -d -v -r -S .pbf *
  54. find . -type f -exec mv -v '{}' '{}'.pbf \;
  55.  
  56. #-----------
  57. # ~/vtile/mbutil
  58. #
  59. cd ..
  60. pwd
  61. ls -l
  62. tar czvf ../../tilePolice2z.tgz tilePolice2z
  63. pwd
  64. ls -l
  65.  
  66. #-----------
  67. # ~/vtile/mbutil/tilePolice2
  68. #
  69. cd tilePolice2
  70. pwd
  71. ls -l
  72. gzip -d -v -r -S .pbf *
  73. find . -type f -exec mv -v '{}' '{}'.pbf \;
  74.  
  75. #-----------
  76. # ~/vtile/mbutil
  77. #
  78. cd ..
  79. pwd
  80. ls -l
  81. tar czvf ../../tilePolice2.tgz tilePolice2
  82. pwd
  83.  
  84. #-----------
  85. # ~/vtile/mbutil/tilePolice4z
  86. #
  87. cd tilePolice4z
  88. pwd
  89. ls -l
  90. gzip -d -v -r -S .pbf *
  91. find . -type f -exec mv -v '{}' '{}'.pbf \;
  92.  
  93. #-----------
  94. # ~/vtile/mbutil
  95. #
  96. cd ..
  97. pwd
  98. ls -l
  99. tar czvf ../../tilePolice4z.tgz tilePolice4z
  100.  
  101. #-----------
  102. # ~/vtile/mbutil/tilePolice4
  103. #
  104. cd tilePolice4
  105. pwd
  106. ls -l
  107. gzip -d -v -r -S .pbf *
  108. find . -type f -exec mv -v '{}' '{}'.pbf \;
  109.  
  110. #-----------
  111. # ~/vtile/mbutil
  112. #
  113. cd ..
  114. pwd
  115. ls -l
  116. tar czvf ../../tilePolice4.tgz tilePolice4
  117.  
  118. #-----------
  119. # ~/vtile/mbutil/tilePolice5z
  120. #
  121. cd tilePolice5z
  122. pwd
  123. ls -l
  124. gzip -d -v -r -S .pbf *
  125. find . -type f -exec mv -v '{}' '{}'.pbf \;
  126.  
  127. #-----------
  128. # ~/vtile/mbutil
  129. #
  130. cd ..
  131. pwd
  132. ls -l
  133. tar czvf ../../tilePolice5z.tgz tilePolice5z
  134.  
  135. #-----------
  136. # ~/vtile/mbutil/tilePolice5
  137. #
  138. cd tilePolice5
  139. pwd
  140. ls -l
  141. gzip -d -v -r -S .pbf *
  142. find . -type f -exec mv -v '{}' '{}'.pbf \;
  143.  
  144. #-----------
  145. # ~/vtile/mbutil
  146. #
  147. cd ..
  148. pwd
  149. ls -l
  150. tar czvf ../../tilePolice5.tgz tilePolice5
  151.  
  152.  
  153. #-----------
  154. # ~/vtile/mbutil/tilePolice6z
  155. #
  156. cd tilePolice6z
  157. pwd
  158. ls -l
  159. gzip -d -v -r -S .pbf *
  160. find . -type f -exec mv -v '{}' '{}'.pbf \;
  161.  
  162. #-----------
  163. # ~/vtile/mbutil
  164. #
  165. cd ..
  166. pwd
  167. ls -l
  168. tar czvf ../../tilePolice6z.tgz tilePolice6z
  169.  
  170. #-----------
  171. # ~/vtile/mbutil/tilePolice6
  172. #
  173. cd tilePolice6
  174. pwd
  175. ls -l
  176. gzip -d -v -r -S .pbf *
  177. find . -type f -exec mv -v '{}' '{}'.pbf \;
  178.  
  179. #-----------
  180. # ~/vtile/mbutil
  181. #
  182. cd ..
  183. pwd
  184. ls -l
  185. tar czvf ../../tilePolice6.tgz tilePolice6
  186.  
  187. #-----------