##  一:CentOS下工具安装

### 安装tippecanoe 工具  
####    https://zhuanlan.zhihu.com/p/32306317   
####    https://github.com/mapbox/tippecanoe

##  二、将.shp文件转成json 

##  三、使用tippecanoe 命令将该目录下的全部.json 或者.geojson 切成.pbf文件
###     tippecanoe --no-feature-limit --no-tile-size-limit --include=height --include=color --include=width  --minimum-zoom=1 --maximum-zoom=21 --output-to-directory "www/tiles" `find ./geojson -type f | grep .json`
####    --include=name   使用include命令保留指定属性
####    --exclude-all   使用exclude命令不保留任何属性
####    --minimum   指定最小级别
####    --maximum   指定最大级别
####    --output-to-directory    输出目录
  
##  四、进入输出目录，执行gzip压缩（必要）
###     gzip -d -r -S .pbf * 
                                      
##  五、重命名（非必要，如果不执行这一步那么前端访问使用的是 xxx/{z}/{x}/{y}，否则就就是 xxx/{z}/{x}/{y}.pbf）   
###     find . -type f -exec mv '{}' '{}'.pbf \;

