I have a point cloud dataset that I would like to upload to my postgres/postgis database.
In the tutorial there are some commands to check the lidar metadata. This one is not working in my case:
pdal info --input merged.laz --metadata --xml
Usage error: option '--xml' did not split correctly. Is it in the form --readers.las.option=foo?
pdal generate error when I try to upload the lidar data to the database:
pdal pipeline --input laz2pg.xml
PDAL: Couldn't create reader stage of type 'drivers.las.reader'.
The content of my pipeline xml file is the following:
<?xml version="1.0" encoding="utf-8"?> <Pipeline version="1.0"> <Writer type="drivers.pgpointcloud.writer"> <Option name="connection">dbname='lidar' user='postgres' host='localhost' port='5432' password='Alibaba22'</Option> <Option name="table">test</Option> <Option name="srid">27000</Option> <Filter type="filters.chipper"> <Option name="capacity">400</Option> <Filter type="filters.cache"> <Reader type="drivers.las.reader"> <Option name="filename">merged.laz</Option> <Option name="spatialreference">EPSG:27000</Option> </Reader> </Filter> </Filter> </Writer> </Pipeline>
I went trough on this tutorial two times a couple of months ago and it worked, but I have no clue what is wrong now.