Questions tagged [laspy]

Laspy is a python library for reading, modifying and creating .LAS LIDAR files.

Laspy is a python library for reading, modifying and creating .las LIDAR files.

Official documentation: http://pythonhosted.org/laspy/

32 questions
4
votes
1 answer

MemoryError in numpy.append despite enough RAM

I've been trying to append a list of points of a pointcloud read with laspy to another list of points, basically merging two pointclouds. When merging multiple pointclouds I have been appending all points to the same np.ndarray in order to save it…
viddie
  • 96
  • 5
4
votes
3 answers

laspy cannot find laszip when is installed from source. laszip is in path

I am working on a HPC environment and do not have root access. I installed laszip from source. Install laszip from source module load git git clone https://github.com/LASzip/LASzip.git git checkout tags/2.0.2 cd LASzip Make files in the build…
bw4sz
  • 2,237
  • 2
  • 29
  • 53
3
votes
1 answer

Reading LAZ to Dask dataframe using delayed loading

Action Reading multiple LAZ point cloud files to a Dask DataFrame. Problem Unzipping LAZ (compressed) to LAS (uncompressed) requires a lot of memory. Varying filesizes and multiple processes created by Dask result in MemoryError's. Attempts I tried…
Tom Hemmes
  • 2,000
  • 2
  • 17
  • 23
2
votes
1 answer

What is the Laspy error when reading laz files?

import laspy import open3d as o3d import numpy as np las = laspy.read("file.laz") When I use this code, I get the error: laspy.errors.LaspyException: No LazBackend selected, cannot decompress data How can I resolve this?
PKS
  • 31
  • 1
  • 2
2
votes
1 answer

How to properly process 3D Point Cloud data in python?

I am new to this forum, so this will be my first question ever (by having used the forum for several years now :D). What's my Problem: I am working in a Company now, where we want to automate processes like finding lowest and/or highest points/lines…
Max
  • 21
  • 1
2
votes
1 answer

appending an index to laspy file (.las)

I have two files, one an esri shapefile (.shp), the other a point cloud (.las). Using laspy and shapefile modules I've managed to find which points of the .las file fall within specific polygons of the shapefile. What I now wish to do is to add an…
Maarten
  • 153
  • 1
  • 10
2
votes
2 answers

TypeError: a bytes-like object is required, not 'str', laspy

I am new to programming and wanted to convert Las file into grid file using laspy. It keeps giving error "TypeError: a bytes-like object is required, not 'str'". I know fmt gives a string, so I tried fmt = '%1.2f'.encode() to change in to binary,…
Sher
  • 369
  • 2
  • 19
2
votes
1 answer

Find the points of a ndarray that fall inside another ndarray

I have created a NumPy structured array (called arr) with arcpy module doing: arr = arcpy.da.FeatureClassToNumPyArray('MPtest','SHAPE@XYZ',explode_to_points=True) The array looks like (only first rows are shown): array([([309243.1420999998,…
umbe1987
  • 2,894
  • 6
  • 35
  • 63
1
vote
0 answers

Add a new attribute when writing a las file with laspy

I want to save a las file, and save x,y,z,intensity and reflectance attribute. The code runs and doesn't return any error; anyway, the reflectance attribute is not available in the file, when I open it in CloudCompare. Do i need to somehow modify…
Sbobby
  • 33
  • 7
1
vote
1 answer

Point Cloud transformation using Python

I have a point cloud with around 75 million points and I have already read the data files using laspy and they are stored in an array that looks like [x y z] where x values are in a column, y values are in a column and z values are in another…
ABh
  • 11
  • 2
1
vote
1 answer

Iterate over individual bytes then save it into a file without alternating the content

I have a byte string returned from API and store in response.content With small content, I can save it into a file with no problem using the following code with open(save_path, 'wb') as save_file: save_file.write(response.content) But for the…
BombShelley
  • 107
  • 9
1
vote
1 answer

How to get unique "point source ID's" for LIDAR block?

I'm trying to get information about unique flightlines appearing in a block of LIDAR data using a laspy. I have already tried running a lasInfo module for the whole block, but what I get is just a min and max point_source_ID values opposed to list…
MPu
  • 13
  • 4
1
vote
2 answers

Sorting numpy array created by laspy

I know this reads like a simple problem with a simple solution but I just can't wrap my head around it. The documentation for laspy is a little sparse but I've managed well so far. I think that the issue here is now simply not being familiar enough…
Ingwe
  • 146
  • 13
0
votes
1 answer

How to fix SimpleQueue error when importing the Laspy module in Python?

When importing Laspy I get the following error: import laspy as lp ImportError: cannot import name 'SimpleQueue' The error occurs in the following line of the Laspy module: from queue import Queue, SimpleQueue I tried updating Python because it was…
Ellis
  • 15
  • 3
0
votes
0 answers

how to create a gird over a point cloud in python

I have a 3D point cloud, where it has multiple surfaces on the point cloud I want to isolate each surface and create a 3D grid over the point cloud and select random points within each cell. I want to do this on python and I don't want to use open3d…
ABh
  • 11
  • 2
1
2 3