Skip to main content

Questions tagged [pdal]

PDAL (Point Data Abstraction Library) provides both a suite of command-line applications and programming library for the processing, filtering, translation, and querying of point cloud data in a pipeline fashion that allows complex processing chains to be put together simply.

Filter by
Sorted by
Tagged with
0 votes
0 answers
27 views

How to use a calculated variable within a PDAL pipeline

I'm using a pdal pipeline in a python project. What I want to do is load a file (text format), calculate its resolution, then use its resolution in a filters.faceraster to create a tif. I have no ...
J.E.S's user avatar
  • 1
0 votes
1 answer
49 views

PDAL Translates Removes LAS Attributes

I am using PDAL (pdal 2.7.1 (git-version: Release)) "Translate" for assigning a CRS to my ALS pointcloud (format LAS; point format 6). However, everything works fine, but some Attributes (...
terms of service's user avatar
0 votes
1 answer
34 views

What is the correct way to verify pdal plugins (.e57 reader) in OSGeo4W shell?

When running the command pdal info "Z:\myE57pointcloud.e57" --summary inside the OSGeo4W (Windows) shell, I receive the error: PDAL: Couldn't create reader stage of type 'readers.e57'. You ...
Cary H's user avatar
  • 996
1 vote
0 answers
29 views

QGIS/PDAL: Selecting/tagging equally-spaced subset of point data

I have a set of high-density bathymetric point data with a maximum density of 30m. I now want to select or otherwise differentiate a subset of these points, evenly distributed throughout the set at an ...
ivyallie's user avatar
1 vote
1 answer
71 views

QGIS: batch assigning CRS for point clouds

I got a bunch of LAZ compressed point cloud tiles (over 300). They don't have a projection assigned. I want to assign the correct projection (I know the files are in EPSG:25832) with the action "...
Tobias Schula's user avatar
0 votes
1 answer
42 views

PDAL writers.raster: set bounds

Is anyone aware of a method to set the bounds of a GTiff in the PDAL writers.raster similar to the method in writers.gdal? The idea is to ensure the output raster is the same bounds as the input las. ...
Ian's user avatar
  • 11
0 votes
0 answers
43 views

How would you maintain the vlrs value of xyz point cloud file while converting it to las and then finally to COPC

I am trying to convert the point cloud files that I have to COPC and starting with converting all files that we have( currently xyz) to las and then proceed to COPC conversion from las using PDAL, ...
shashi's user avatar
  • 1
0 votes
0 answers
69 views

Getting max value of "HeightAboveGround" inside polygons from point cloud

I have geojson file with polygons of tree locations and labels "Tree" (~5,300 polygons). And point cloud made from aerial images and points have extra information "HeightAboveGround&...
fvwVV's user avatar
  • 1
1 vote
1 answer
51 views

PDAL output precision

A similar question with different output is already asked (Do i lost precision when importing LAS files with PDAL?) Anyway, I’m just doing classification with PDAL and my output has only 2 decimals (...
Sami's user avatar
  • 21
0 votes
1 answer
30 views

How to remove VLRs from header?

I want to create a .las file without any VLR using pdal. Apparently, two VLR are automatically created by the writer. That happens even with the las writer option "pdal_metadata" set to ...
Wellington's user avatar
1 vote
0 answers
328 views

QGIS install error message (Ubuntu)

I work on Ubuntu 22.04.03 LTS. I succeed many weeks ago to install/use QGIS Lima 3.32.2 on this station. But I was facing to several error message when I tried to install/use some plugins (dataPlotly, ...
user35117's user avatar
  • 929
0 votes
1 answer
62 views

Why assigning to Z does not work with PDAL

I'm converting a CSV file to a LAZ(copc) format. My third column represent Z, but is called band_1. This shouldn't be a problem. Now I want to assign that to Z of the LAZ. But for some reason when I ...
DHend's user avatar
  • 33
1 vote
1 answer
194 views

PDAL mesh pipeline producing poor mesh results and losing precision

Intro: What I want to do is: read in a las file crop the las around a specific point in space (probably using a radius) generate a mesh with cropped points using poisson The PDAL pipeline below ...
Drew Scatterday's user avatar
0 votes
1 answer
144 views

Issue converting .ply to LAS then LAS to COPC , losing colour information

Using PDAL to convert .ply file with colour information to LAS, I can verify I see the colour information in cloud compare. However, when converting the LAS to COPC , I'm losing the colour information ...
Evan O' Keeffe's user avatar
0 votes
0 answers
98 views

PDAL translation seems to be causing a scaling

I'm trying to georeference a .laz pointcloud in order to correctly show it in QGIS on a map. I notice however that while using the pdal transformation, there is a change in the scale of the point ...
RobbeVl's user avatar
-1 votes
1 answer
24 views

Microsoft C++exception occurred in vs2019 when using pdal debug mode: std:: bad_ Alloc's situation

On the debug x64 platform, running the code to (las_opts. add (las_opt)) will throw an exception, std:: bad_ Alloc's situation. When I switch to release x-64 mode, it can run normally. I don't know if ...
cj cc's user avatar
  • 1
1 vote
1 answer
121 views

Removing trees from classified LiDAR based on polygon layer

I need to adjust the areas in a .las file where the trees and shrubs were cut last year. There are basically 5 classes, with one class ("20") for taller vegetation. Is there a simple ...
Bernd V.'s user avatar
  • 3,199
0 votes
1 answer
91 views

PDAL readers.ept fails to save LAS file

I am attempting to access the USGS 3DEP LiDAR Point Clouds - Registry of Open Data on AWS via the EPT PDAL reader in Python. I normally work with Python notation, so my code looks like this: extent = ...
Vicent-Ribas's user avatar
0 votes
1 answer
581 views

PDAL merging multiple LAZ files from folder in Python

I am attempting to merge multiple laz files stored in a specific directory. I have seen in the PDAL documentation that PDAL doesn’t handle matching multiple file inputs except for glob handling for ...
Vincent's user avatar
0 votes
0 answers
109 views

QGIS Plugin - How to automatically add point cloud layers to QGIS at the end of a processing tool?

I'm adding some tools in a plugin that handles point cloud layers. At the end of a tool, I'd like that the project adds automatically the output point cloud layer created. I tried using ...
GuillaumeG's user avatar
2 votes
0 answers
186 views

Importing PDAL inside QGIS plugin

I have some functions using PDAL in Python that I'd like to integrate inside a QGIS plugin. This plugin must be easy to install on different OS (Windows, Linux). However, even if PDAL is used by QGIS ...
GuillaumeG's user avatar
0 votes
1 answer
46 views

Coordinates of the point cloud are shifted after voxelizing with PDAL

I used PDAL commands to voxelize the point cloud with folloiwing code. When I opened the results in Cloud Compare it didn't overlap with original point cloud. Is there any potential reason? [ &...
Sher's user avatar
  • 894
0 votes
1 answer
561 views

What is the most efficient way to write COPC files with PDAL

I'm trying to convert a set of tiled .la[a|z] files into one massive copc.laz file. I have dozen of files and more than one billion points to process on a regular laptop with 11 GB of free RAM. I'm ...
JRR's user avatar
  • 9,479
0 votes
1 answer
146 views

Subsampling point cloud with PDAL

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 = &...
Sher's user avatar
  • 894
1 vote
1 answer
258 views

Apply a "where" expression to a PDAL merge script

Im trying to run pdal merge on a large number of laz files. An example of my current script is.. pdal merge file1.laz file2.laz file3.laz d:\outputs\merged.copc.laz I know form the documents theres a ...
Richard McDonnell's user avatar
0 votes
1 answer
79 views

Using "ogr" option in "readers.copc" of PDAL

How can I use the "ogr" option in "readers.copc"? My pipeline is : [ { "type":"readers.copc", "ogr": [{ "drivers&...
fg13's user avatar
  • 9
1 vote
0 answers
92 views

Write classification to raster for highest object in LiDAR point cloud

What we want to do is rasterize the classification value of the highest point (in the Z dimension) in every pixel. Basically we are trying to mimic optical imagery where whatever is on top is what is ...
fnands's user avatar
  • 26
0 votes
1 answer
349 views

Creating multiband raster from .las file using PDAL

I am quite new to creating rasters from point cloud (.las) files. Basically, I would like to use PDAL and its writers.gdal stage to write a raster with two bands. The first band should be written ...
user224802's user avatar
1 vote
1 answer
407 views

How to speed up my PDAL pipeline script?

I'm creating an app for point cloud processing. I've made a pdal script with Python and I have some trouble with the cpu usage and processing speed I've made a pipeline for las processing, with some ...
Nicolas Guibal's user avatar
1 vote
0 answers
127 views

How to combine ortho imagery and a DSM to make a pointcloud

I can create a VRT with four rasters and convert this to GTiff. But I don't seem to be able to create the point cloud from the GTiff. I have tried: pdal translate input.tif output.las --reader gdal ...
Alan's user avatar
  • 11
1 vote
1 answer
389 views

How to correct PDAL error using filters.smrf "Some NumberOfReturns or ReturnNumber values were zero but not all..."

I'm new to using the PDAL system to query and process LiDAR point cloud data from the USGS Lidar Explorer. I've been following some of the tutorials in the PDAL Quickstart Guide and have applied the ...
W. Kessler's user avatar
0 votes
1 answer
158 views

Output of Point Cloud Cropping using PDAL displaying as straight line

I am cropping my point cloud (.las) using PDAL, when i display my original point cloud it looks like this, But after i crop it, the output looks like this, i.e. a straight line in viewer mode. Here ...
Ahsan Mukhtar's user avatar
1 vote
0 answers
249 views

How to limit memory usage for pdal to import LiDAR data

While trying to import LiDAR pointcloud data in .las format (my file is 38GB) to PostgreSQL using the pointcloud extension, I keep getting Killed after several minutes of the following command running ...
justsomeguy's user avatar
1 vote
1 answer
355 views

Creating DTM from COPC LAZ Files using PDAL

I have been running into issues with PDAL and a Batch script I am running. I have a series of Cloud Optimized Point Clouds (COPC) and I am looking to generate a DTM from them. I am using the following ...
Richard McDonnell's user avatar
2 votes
1 answer
573 views

PDAL +init use deprecated but what is the alternative

With PDAL I was trying to using a proj4 string like +init=epsg:32615 +geoidgrids=C:\vdatum_GEOID12A\vdatum\core\geoid12a\g2012au7.gtx based on an example given on the PDAL website https://pdal.io/en/...
TJR's user avatar
  • 1,612
5 votes
1 answer
562 views

PDAL filters reprojection is not changing Z values

I'm trying to reproject an LAS file using PDAL, and it looks like the X/Y values are being transformed, but the Z values are staying the same. pdal translate input.las output.las -f filters....
TJR's user avatar
  • 1,612
1 vote
0 answers
374 views

PDAL: Unable to open stream for ' '

I tried to run a batch process for pdal pipeline, however I always get a en error: PDAL: Unable to open stream Below is the pipeline and the batch code: { "pipeline": [ {"...
David's user avatar
  • 11
0 votes
1 answer
209 views

Crop a large point cloud with GeoJSON defining the geometries of sub point cloud

I have a large point cloud (a city model) and would like to get the point clouds of every building in the city. I already have the GeoJSON file with the geometries of every single building in the city....
Lucas's user avatar
  • 1
1 vote
0 answers
456 views

Error running PDAL tests after cmake build: "free(): invalid pointer Aborted (core dumped)

I am trying to install PDAL 2.4.0 from source, building with CMake 3.22.4 and ninja 1.10.0 on a laptop running Linux Mint 20.3. I am following the steps laid out here: UNIX Compilation Here is the ...
Theophan's user avatar
1 vote
0 answers
389 views

PDAL colorizing LAZ with GeoTIFF

I understand the example from PDAL workshop and it works well. However since I puzzle around with some data and find most effective way to use it I thought I might ask for some opinions here. I do ...
Kalle's user avatar
  • 41
2 votes
3 answers
474 views

Loss of precision when importing LAS files with PDAL

I check pdal info and see that bbox has 15 digit numbers: "boundary": { "type": "Polygon", "coordinates": [ [ [ 1528634.540273188613355, 403421.710437842586543, ...
Kliver Max's user avatar
  • 2,032
1 vote
0 answers
211 views

entwine build produces a strange value for bounds in ept.json

I am relatively new to entwine. In our project, we have a requirement to build entwine from Laz dataset in EPSG:4326. I understand it might sound weird that we have this dataset in geographic ...
kswp's user avatar
  • 11
0 votes
0 answers
200 views

Importing LiDAR data and additional info to database with pdal pipeline

I have a pipeline.json file that inserts laz files into the database. This creates a default column "pa" in the database and successfully inserted the associated value in each row. I need to ...
ha3's user avatar
  • 1
1 vote
0 answers
274 views

Points in Polygon extraction

I have a shapefile with MSK-16z2 crs and a las-file which crs can not be recornized by qgis, but attached to the las prj contains also MSK-16z2. I need to crop described lasfile by shapefile. I tried ...
Марина Лисниченко's user avatar
0 votes
0 answers
248 views

The PDAL filter.crop does not work if using the USER CRS (not EPSG)

I use pdal (in my own QGIS plugin) to create a raster dem from the cloud of points (*.las). I have points data in the EPSG CRS and there is data in the user defined CRS. Everything works fine, I get ...
filippov vlad's user avatar
0 votes
1 answer
129 views

PDAL reprojection rendering unexpected results

I am using a program where a Digital Elevation Model is produced from LiDAR data. The code is written in python 3.8 using the PDAL 2.3.0 library. I have a requirement to update the reprojection from ...
medium_rare's user avatar
1 vote
0 answers
211 views

Reclassify points within a bounding box with PDAL

I have a list of 3D bounding boxes manually drawn around noise points and I want to reclassify them as noise. One option would be to simply drop them but, in this particular case, I would want to have ...
Fabio Picchi's user avatar
1 vote
1 answer
347 views

Attribute/dimension adding to the lasfile

.LAS files have different dimensions as x, y, z, etc. Suppose, I want to add another dimension with the name "n". How to do it correctly? I attempted to use the following pdal pipeline: ...
Марина Лисниченко's user avatar
0 votes
1 answer
121 views

filters.assign doesn't work

I want to make all the Z values of the input .LAS file equal to 0. Here is my pipeline: pipeline = [ in, { "type": "filters.assign", "...
Марина Лисниченко's user avatar
2 votes
0 answers
263 views

Change vertical unit in a LAS/Z file with PDAL

I am using pdal translate to filter and transform some lidar files. One issue we have are the vertical units. Sometimes they are correctly specified, sometimes they are not, and sometimes they are ...
winwaed's user avatar
  • 1,314