1 Star 0 Fork 1

wrm/cesium_pnt_generator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT
# Cesium 3D-Tiles Prototype Point Cloud Converter This set of node.js and shell scripts (initial prototype) converts las lidar data into Cesium 3d-tiles binary .pnts files based on the prototype 3d-tiles specification outlined at [this link](https://github.com/AnalyticalGraphicsInc/3d-tiles/tree/master/TileFormats/PointCloud). * * * #### View Pregenerated Point Cloud Data Sample lidar .las and .tif data of Autzen Stadium in Eugene, OR have been preprocessed into Cesium 3d-tiles. The lidar dataset is courtesy of [liblas](http://www.liblas.org/samples/). To view these 3d pointcloud tiles, clone the repository, install required npm modules and start the viewer: ``` git clone https://github.com/mattshax/cesium_pnt_generator.git cd cesium_pnt_generator/viewer npm install npm start ``` Navigate to [http://localhost:3000/](http://localhost:3000/) to view the newly generated Cesium point cloud data. You should see something similar to below: ![](screenshots/1.png) | ![](screenshots/2.png) |:---:|:---:| |![](screenshots/3.png) | ![](screenshots/4.png) * * * #### Generate Cesium Pnts Tiles from LAS Data Please note these .pnts file generation scripts have only been tested on Ubuntu 14.04. Clone the repository and install the required npm modules: ``` git clone https://github.com/mattshax/cesium_pnt_generator.git cd cesium_pnt_generator npm install ``` Install liblas-bin from aptitude - this is needed to split and transform the las data: ``` sudo apt-get install liblas-bin ``` Pull down sample lidar .las and .tif data (178 MB) of Autzen Stadium in Eugene, OR. ``` wget https://s3-us-west-2.amazonaws.com/s3.parallel.works/sample_lidar_data.tgz tar -xzvf sample_lidar_data.tgz ``` Process the lidar data into Cesium 3d-tile .pnts files by running the command below. This script splits the lidar file into smaller las chunks places the generated pnts files into a desired directory. ``` # USAGE - process_lidar.sh <las file> <las image> <las split size in MB> <result dir> <lidar height adjust> <source EPSG> ./process_lidar.sh stadium_all.las image.tif 15 viewer/data -20 2994 ``` To view the newly generated 3d-tile .pnts files in a Cesium viewer, start the Cesium viewer with the commands below: ``` cd viewer npm install npm start ``` Navigate to [http://localhost:3000/](http://localhost:3000/) to view the newly generated Cesium point cloud data. * * * #### Copyright & License The MIT License (MIT) Copyright (c) 2016 - Matthew Shaxted Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cthulhu/cesium_pnt_generator.git
git@gitee.com:cthulhu/cesium_pnt_generator.git
cthulhu
cesium_pnt_generator
cesium_pnt_generator
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385