I have hundreds of LAZ files that I want to reproject and save in the folder named reproject
with the following pipeline. It runs indefinitely but doesn't generate any output file.
json_pipeline = """
[
{
"type": "readers.las",
"filename": "*.laz",
"spatialreference": "EPSG:4326"
},
{
"type":"filters.reprojection",
"in_srs": "EPSG:4326",
"out_srs": "EPSG:3857"
},
{
"type": "writers.las",
"scale_x": "0.0000001",
"scale_y": "0.0000001",
"scale_z": "0.001",
"offset_x": "auto",
"offset_y": "auto",
"offset_z": "auto",
"filename": "reproject/{originalfilename}"
}
]
"""
import pdal
pipeline = pdal.Pipeline(json_pipeline)
count = pipeline.execute()
arrays = pipeline.arrays
metadata = pipeline.metadata
log = pipeline.log