ver. 0.1.0 (2026-06-12)
(URL) https://gbank.gsj.jp/seamless/pcpng/lasPcpng/
LAS-点群PNGコンバーターは,LASファイルと点群PNGファイルの相互変換を行うNode.js用のコマンドラインプログラムです.
複数のLASファイルを一括して変換できます.座標系の変換は行いません.
点群PNGについては以下のサイトをご覧ください.
点群PNG (https://gbank.gsj.jp/seamless/pcpng/)
https://gbank.gsj.jp/seamless/pcpng/lasPcpng/lasPcpng.zip,47KB (SHA-256)設置したディレクトリで以下のコマンドを実行してください.必要な外部モジュールがインストールされます.
npm install
node lasPcpng.js <input> <output> [ <options> ]
<input>, <output>は引数を表し,<options>はオプションを表します.
| オプション | 引数 | デフォルト | 説明 |
|---|---|---|---|
| --format, -f | <png/webp> | webp | 点群PNG出力時のファイル形式を'png'または'webp'で指定します. |
| --intensity, -i | - | false | 点群PNG出力時にポイント情報の強度(intensity)を含めます. |
| --16bitRGB, -b | - | false | 点群PNG出力時に各RGBのデータ幅を16ビットとします. |
| --digits, -d | <digits> | 入力ファイルと同一の値 | 座標値の小数点以下の桁数を指定します. ただし,データ幅が24ビットを超え内容に調整されます. |
| --help, -h | - | - | ヘルプを表示してプログラムを終了します. |
node lasPcpng.js 08OF0300.las
LASファイル08OF0300.lasを点群PNGファイル08OF0300.webpに変換します.
node lasPcpng.js omuro --format=png
omuroディレクトリ内のlasファイルをすべて点群PNGファイル(PNG形式)に変換します.
node lasPcpng.js omuro/*.las outputDir
omuroディレクトリ内のlasファイルをすべて点群PNGファイルに変換しoutputDirディレクトリに出力します.
node lasPcpng.js 08OF0300.webp
点群PNGファイル08OF0300.webpをLASファイル08OF0300.lasに変換します.
node lasPcpng.js omuroWebp
ディレクトリomuroWebp内のLASファイルをすべて点群PNGに変換します.omuroWebp内にLASファイルがなければWebP形式点群PNGファイルをすべてLASファイルに変換し,WebP形式ファイルもなければPNG形式をLASファイルに変換します.Copyright 2026, Geological Survey of Japan, AIST.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations under the License.
産業技術総合研究所 地質調査総合センター 地質情報研究部門 シームレス地質情報研究グループ