vectiler
vectiler-0.1.0
プラットフォーム | ビルドステータス |
---|---|
OS X/Linux | |
窓 |
Mapzen ベクター タイルに基づく wavefront obj ベクター タイル ビルダーおよびエクスポーター。
エクスポートの例
サブモジュールを取得する
まず、以下を実行してサブモジュールを初期化します。
$ git submodule update --init --recursive
依存関係をインストールする (OS X)
$ brew install cmake
依存関係をインストールする (Linux)
vectiler をビルドするには、 c++11
をサポートするコンパイラーが必要になります。たとえば、ubuntu マシン上のg++-4.9
を使用します。
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
$ sudo apt-get install g++-4.9 cmake libcurl4-openssl-dev
ビルド (OS X/Linux)
build/
ディレクトリで cmake を使用してビルドするには、次のコマンドを実行します。
cmake . -Bbuild
cmake --build build
ビルド (Windows)
まず CMake for Windows をインストールし、次に MinGW などのコマンド ライン ツールで次のコマンドを実行します。
$ mkdir build
$ cd build
$ cmake .. -G " Visual Studio 14 2015 Win64 "
$ cmake --build .
使用法
Usage: ./vectiler.out [options]
Options:
--name File name ((null))
--apikey Nextzen Developer API key (https://developers.nextzen.org/)
--splitMeshes Generate one mesh per feature in wavefront file (0)
--tilex Tile X (can be a tile range: 19294/19295) (19294)
--tiley Tile Y (can be a tile range: 24642/24643) (24642)
--tilez Tile Z (zoom) (16)
--offsetx Global tile Offset on X coordinate (0.0)
--offsety Global tile Offset on Y coordinate (0.0)
--append Append the obj to an existing obj file (0)
--buildings Whether to export building geometry (1)
--buildingsExtrusionScale Building height scale factor (1.0)
--buildingsHeight The height at which building should be extruded (if no height data is available) (0.0)
--pedestal Build a pedestal when running with terrain option (Useful for 3d printing) (0)
--pedestalHeight Pedestal height, can be negative (0.0)
--terrain Generate terrain elevation topography (0)
--terrainSubdivision Terrain mesh subdivision (64)
--terrainExtrusionScale Terrain mesh extrusion scale (1.0)
--roads Whether to export roads geometry (0)
--roadsHeight The roads height offset (z-axis) (1.0)
--roadsExtrusionWidth The roads extrusion width (5.0)
--normals Export with normals (0)
--version Output version
--help Output help
地形
地形のエクスポートはズーム 15 ( --tilez
) でのみ使用できます。
$ ./vectiler --tilex 5242/5260 --tiley 12642/12666 --tilez 15 --terrain 1 --buildings 1 --terrainExtrusionScale 1.5 --buildingsExtrusionScale 1.9