### Start Docker Environment Source: https://project-plateau.github.io/PLATEAU-GIS-Converter/manual/import_to_postgis.html Commands to navigate to the project directory and launch the Docker containers for the PostGIS environment. ```bash cd demo/postgis docker compose up ``` -------------------------------- ### Launch Local Server for 3D Tiles Source: https://project-plateau.github.io/PLATEAU-GIS-Converter/manual/use_gui.html Use Python's built-in HTTP server to serve the generated 3D Tiles directory locally. ```bash % cd ~/sample_data/3dtiles_textured % python -m http.server Serving HTTP on :: port 8000 (http://[::]:8000/) ... ``` -------------------------------- ### Pythonによるローカルサーバーの起動 Source: https://project-plateau.github.io/PLATEAU-GIS-Converter/manual/use_gui.html 生成されたMVTファイル群をQGIS等で読み込むために、Pythonのhttp.serverモジュールを使用してローカルサーバーを立ち上げます。 ```bash % python -m http.server Serving HTTP on :: port 8000 (http://[::]:8000/) ... ``` -------------------------------- ### Rustのインストール Source: https://project-plateau.github.io/PLATEAU-GIS-Converter/manual/use_command_line.html macOSまたはLinux環境でRustをインストールするためのコマンドです。 ```bash curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh ``` -------------------------------- ### 3D Tilesへの変換設定例 Source: https://project-plateau.github.io/PLATEAU-GIS-Converter/manual/use_command_line.html 中央区の建築物をテクスチャ付きで3D Tiles形式に変換する例です。 ```bash cargo run --release -- ~/13102_chuo-ku_city_2023_citygml_1_op/udx/bldg/*.gml \ --sink 3dtiles --output ~/data/output/3dtiles_textured -t use_lod=textured_max_lod ``` -------------------------------- ### 作業ディレクトリへの移動 Source: https://project-plateau.github.io/PLATEAU-GIS-Converter/manual/use_command_line.html ダウンロードしたソースコードのディレクトリへ移動します。 ```bash cd ~/Downloads/PLATEAU-GIS-Converter-main ``` -------------------------------- ### データ変換の実行 Source: https://project-plateau.github.io/PLATEAU-GIS-Converter/manual/use_command_line.html コンパイル設定ごとの実行コマンドです。最適化レベルに応じて実行速度が異なります。 ```bash cd ./nusamai/ # Debug (非常に低速) cargo run -- ~/path/to/PLATEAU/15100_niigata-shi_2022_citygml_1_op/udx/bldg/*.gml --sink geojson --output foobar.geojson # Release (最適化コンパイル、実用速度) cargo run --release -- ~/path/to/PLATEAU/15100_niigata-shi_2022_citygml_1_op/udx/bldg/*.gml --sink geojson --output foobar.geojson # Release (LTO有効のプロダクションビルド、最高速) cargo run --profile release-lto -- ~/path/to/PLATEAU/15100_niigata-shi_2022_citygml_1_op/udx/bldg/*.gml --sink geojson --output foobar.geojson ``` -------------------------------- ### CesiumJS Integration for 3D Tiles Source: https://project-plateau.github.io/PLATEAU-GIS-Converter/manual/use_gui.html An HTML template to visualize 3D Tiles using the CesiumJS library. Ensure the tileset.json path is correctly configured. ```html