Filter LAS
Category: Mega-Polis → Generation → Generation Design Tools
Node ID:SvMegapolisFilterLas
Tooltip: Filter Las
Dependencies:laspy,numpy
Functionality
Filters a LAS point cloud by classification and outputs:
- the filtered LAS point record (subset of points)
- the corresponding XYZ coordinates as Sverchok vertices
The node reads the LAS file header (scales + offsets) from the Path input, then uses the incoming Points Data (LAS point record / point cloud data) to select only points whose classification matches the chosen class. Coordinates are computed as:
X = points_filtered.X * scale_x + offset_xY = points_filtered.Y * scale_y + offset_yZ = points_filtered.Z * scale_z + offset_z
Inputs
| Socket | Type | Description |
|---|---|---|
| Path | SvFilePathSocket | Path to the .las file (used to read header scales/offsets). Must be linked. |
| Points Data | SvStringsSocket | LAS point data object (expects attributes like .points and .classification). Must be linked. |
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| classification | Enum | ground |
Select which LAS classification to filter. |
Available classifications
neverunclagroundlow_vegetationmed_vegetationhigh_vegetationbuildingnoisereservedwaterrailroadoverlapwire_guardwire_conductortransmissionwire_connectorbridgehigh_noise
Outputs
| Socket | Type | Description |
|---|---|---|
| Points Data Filtered | SvStringsSocket | Filtered point record subset (points_filtered). |
| Points | SvVerticesSocket | Filtered point coordinates as [[x, y, z], ...] wrapped as [coordinates]. |
Example
Filter only “ground” points
- Use Read LAS to load a LAS file and output Points Data (point record data).
- Connect:
- Read LAS → Points Data → Points Data
- The same LAS file path → Path
- Set classification to
ground. - Use:
- Points to visualise or mesh only ground points
- Points Data Filtered for downstream attribute workflows