Newer
Older
osmCoverage / src / coverage_BUSSTOP_after.sh
@hayashi hayashi on 3 Feb 2018 1 KB after sh

# make Vector Tile
export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
export MANPATH="/home/linuxbrew/.linuxbrew/share/man:$MANPATH"
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:$INFOPATH"
export CXX=g++-5
#brew install tippecanoe

rm -rf vtile
mkdir vtile

curl --user yuu:yuu8844 -O http://localhost:8080/job/osmCoverage_BusstopJson/lastSuccessfulBuild/artifact/busstopJSON.tgz

tar zxvf busstopJSON.tgz

cd vtile
ls -l

tippecanoe -l busstop_map0 -rg -z16 -Z6 -o bus0.mbtiles busstop0.json
tippecanoe -l busstop_map1 -rg -z16 -Z6 -o bus1.mbtiles busstop1.json
tippecanoe -l busstop_map2 -rg -z16 -Z6 -o bus2.mbtiles busstop2.json

git clone git://github.com/mapbox/mbutil.git
cd mbutil
./mb-util --image_format=pbf ../bus0.mbtiles tileBus0
./mb-util --image_format=pbf ../bus1.mbtiles tileBus1
./mb-util --image_format=pbf ../bus2.mbtiles tileBus2

#-----------
pwd
ls -l
cd tileBus0
pwd
ls -l
gzip -d -v -r -S .pbf *
find . -type f -exec mv -v '{}' '{}'.pbf \;

cd ..
pwd
ls -l
tar czvf ../../tileBus0.tgz tileBus0

#-----------

pwd
ls -l
cd tileBus1
pwd
ls -l
gzip -d -v -r -S .pbf *
find . -type f -exec mv -v '{}' '{}'.pbf \;

cd ..
pwd
ls -l
tar czvf ../../tileBus1.tgz tileBus1

#-----------
pwd
cd tileBus2
pwd
ls -l
gzip -d -v -r -S .pbf *
find . -type f -exec mv -v '{}' '{}'.pbf \;

cd ..
pwd
ls -l
tar czvf ../../tileBus2.tgz tileBus2

#-----------