Newer
Older
osmCoverage / src / coverage_POSTOFFICE_after.sh
@hayashi hayashi on 4 Feb 2018 1 KB after shell
# 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_PostofficeJson/lastSuccessfulBuild/artifact/postofficeJSON.tgz

tar zxvf postofficeJSON.tgz

#-----------
# ~/vtile
#
cd vtile
ls -l

tippecanoe -l postoffice_map0 -rg -z16 -Z6 -o postoffice0.mbtiles postoffice0.json
tippecanoe -l postoffice_map1 -rg -z16 -Z6 -o postoffice1.mbtiles postoffice1.json
tippecanoe -l postoffice_map2 -rg -z16 -Z6 -o postoffice2.mbtiles postoffice2.json

git clone git://github.com/mapbox/mbutil.git

#-----------
# ~/vtile/mbutil
#
cd mbutil
./mb-util --image_format=pbf ../postoffice0.mbtiles tilePostoffice0
./mb-util --image_format=pbf ../postoffice1.mbtiles tilePostoffice1
./mb-util --image_format=pbf ../postoffice2.mbtiles tilePostoffice2

pwd
ls -l

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

#-----------
# ~/vtile/mbutil
#
cd ..
pwd
ls -l
tar czvf ../../tilePostoffice0.tgz tilePostoffice0
pwd
ls -l

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

#-----------
# ~/vtile/mbutil
#
cd ..
pwd
ls -l
tar czvf ../../tilePostoffice1.tgz tilePostoffice1
pwd

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

#-----------
# ~/vtile/mbutil
#
cd ..
pwd
ls -l
tar czvf ../../tilePostoffice2.tgz tilePostoffice2

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