点云数据处理
PDAL的Python项目详细描述
pdal python扩展允许您将pdal中的数据处理到Numpy 数组。此外,还可以使用它从 PDAL操作。
pdal的python扩展的存储库位于https://github.com/PDAL/python
从pdal 1.7开始,它独立于pdal本身发布。
用法
给定以下管道,它只读取ASPRS LAS文件和 按X维度排序:
json=""" { "pipeline": [ "1.2-with-color.las", { "type": "filters.sort", "dimension": "X" } ] }"""importpdalpipeline=pdal.Pipeline(json)pipeline.validate()# check if our JSON and options were goodpipeline.loglevel=8#really noisycount=pipeline.execute()arrays=pipeline.arraysmetadata=pipeline.metadatalog=pipeline.log
要求
- PDAL 1.7+
- python>;=2.7(包括python 3.x)
- cython(例如
pip install cython
) - 包装(例如
pip install packaging
)
变化
2.0.0
- pdal python扩展现在在其自己的版本中位于自己的存储库中 安排在https://github.com/PDAL/python
- 扩展现在在windows上的pdal osgeo4w64下构建和工作。