Newer
Older
osmCoverageBin / coverage_POSTOFFICE_after.sh
hayashi on 29 Jan 1 KB clean
# 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_FuelJson/lastSuccessfulBuild/artifact/fuelJSON.tgz

tar zxvf fuelJSON.tgz

cd vtile
ls -l

tippecanoe -l fuel_map0 -rg -z16 -Z6 -o fuel0.mbtiles fuel0.json
tippecanoe -l fuel_map1 -rg -z16 -Z6 -o fuel1.mbtiles fuel1.json
tippecanoe -l fuel_map2 -rg -z16 -Z6 -o fuel2.mbtiles fuel2.json

git clone git://github.com/mapbox/mbutil.git
cd mbutil
./mb-util --image_format=pbf ../fuel0.mbtiles tileFuel0
./mb-util --image_format=pbf ../fuel1.mbtiles tileFuel1
./mb-util --image_format=pbf ../fuel2.mbtiles tileFuel2

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

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

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

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

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

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

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

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