我正在关注this tutorial将激光雷达数据加载到数据库中。订单是创建扩展名:
CREATE EXTENSION postgis;
CREATE EXTENSION pointcloud;
CREATE EXTENSION pointcloud_postgis;
查看元数据:
pdal info --input 20090429_42122c8225_ld_p23.laz --schema pdal info --input 20090429_42122c8225_ld_p23.laz --metadata --xml
并运行数据加载:
pdal pipeline laz2pg.xml
我的管道是
<?xml version="1.0" encoding="utf-8"?>
<Pipeline version="1.0">
<Writer type="drivers.pgpointcloud.writer">
<Option name="connection">dbname=lidar user=postgres</Option>
<Option name="table">medford</Option>
<Option name="srid">4326</Option>
<Filter type="filters.chipper">
<Option name="capacity">400</Option>
<Filter type="filters.cache">
<Reader type="drivers.las.reader">
<Option name="filename">20090429_42122c8225_ld_p23.laz</Option>
<Option name="spatialreference">EPSG:4326</Option>
</Reader>
</Filter>
</Filter>
</Writer>
</Pipeline>
在此步骤中,我收到一条错误消息:
PDAL: laz2pg.xml: JSON pipeline: Unable to parse pipeline:
* Line 1, Column 1
Syntax error: value, object or array expected.