LAS · cloth simulation filter · DTM · DSM · canopy height

LiDAR Ground Classifier

Split a LAS tile into ground, vegetation heights and noise, then export the classified LAS plus terrain, surface and canopy rasters and contours.

Point cloud

LAS 1.0 to 1.4, up to 450.00 MB

Drop a .las file here or click to choose

LAZ must be decompressed first.

Ground filter

Spacing of cloth nodes. About the point spacing times 2 to 4, or the size of the smallest object to remove.

Points this close to the cloth are ground.

Cell size of the DTM, DSM and canopy height model.

Open a LAS file and press Classify. Everything runs in a worker in this tab.

LiDAR Ground Classifier

Operator: Abdulla Al Fahad. How tools are built and checked

An aerial LiDAR tile arrives as millions of points with no idea which ones are bare earth. Every terrain product starts by separating the ground from roofs, canopy and birds, and the usual tools for it are desktop suites. This page does the separation on a LAS file in the browser: it flags outliers, drops a simulated cloth onto the inverted point cloud to find the ground, splits what is left into three height classes, and writes the result back into a copy of the LAS.

From the ground points it builds a terrain model by triangulation, and from all non-noise points a surface model, then subtracts one from the other for canopy height. The outputs are the classified LAS, GeoTIFF rasters and contour lines as GeoJSON or DXF.

The cloth simulation filter is an independent implementation of the method of Zhang and co-authors (Remote Sensing 8(6):501, 2016), and a progressive morphological filter (Zhang et al., IEEE TGRS 41(4), 2003) is offered as the second method.

Key features

  • Reads LAS 1.0 to 1.4, point formats 0 to 10, up to 10 million points and 450 MB, in chunks inside a worker with a progress bar and a cancel button
  • Cloth simulation filter with cloth resolution, rigidness (flat, rolling, steep), class threshold, iterations and a simplified slope step
  • Progressive morphological filter with cell size, maximum window, slope and height thresholds
  • Statistical outlier removal to class 7 from the mean distance to the k nearest neighbours
  • Optional height-above-ground split of the rest into classes 3, 4 and 5 with thresholds you set, and class 1 for the remainder
  • Classified LAS with only the classification byte changed, DTM, DSM and canopy height as float GeoTIFF, hillshade preview, top and side views, and contours

What the classes and rasters mean

Classes follow the ASPRS codes: 1 unclassified, 2 ground, 3 low, 4 medium and 5 high vegetation, 7 low point (noise). The vegetation classes here are made from height above the terrain model alone, so a roof comes out as high vegetation and a parked truck as low or medium. There is no building class.

Output LAS is the input byte for byte except the classification: bits 0 to 4 of byte 15 for point formats 0 to 5, byte 16 for formats 6 to 10. Header, VLRs, EVLRs and every other attribute are copied. LAZ is refused with a message; decompress it first.

A CRS is attached to the GeoTIFFs only when the file names an EPSG code, in the GeoKey directory or in a WKT record. Otherwise the rasters carry coordinates without a CRS tag, which the result notes. Elevations in the rasters are the file's own units.

How it works

The cloth filter turns the cloud upside down and lays a grid of nodes at the cloth resolution over it. Each node starts above every point and falls under gravity, and neighbouring nodes pull on each other with a strength set by the rigidness. A node stops when it reaches the height of the nearest point, and iteration ends when no node moves more than a hundredth of the class threshold or at the iteration limit. A point within the class threshold of the cloth is ground.

Outliers go first. The mean distance from each point to its nearest neighbours is compared with the average over all points, and points beyond the average plus a chosen number of standard deviations become noise and are left out of the ground filter. Low noise points otherwise pull the cloth down.

The terrain model is a Delaunay triangulation of the lowest ground point in each raster cell, sampled at cell centres by barycentric weights and filled outward by nearest value past the hull. The surface model keeps the highest point per cell, filled up to three cells, and canopy height is surface minus terrain, never below zero.

Common use cases

  • A forester has a 1 km tile of mixed forest and wants canopy height. The canopy height model is the surface minus the ground-based terrain, and its values are heights in the file's units.
  • A surveyor needs 1 m contours of a cleared site. The DTM comes from the ground class, and contours are cut from it at the interval entered, as GeoJSON for a GIS or as DXF polylines carrying their elevation.
  • A GIS analyst receives an unclassified tile from a drone survey and needs ground points only. The classified LAS keeps every point and attribute, so a downstream tool can select class 2.
  • A land manager looks for a drainage ditch under tree canopy. The hillshade of the terrain model shows the ditch line that the top view of the points hides, and contours at 0.25 m trace it for a field visit.

How to use this tool

  1. Open a LAS file, or press Load a synthetic example tile.
  2. Pick the method and parameters; start with the rolling preset and a cloth resolution of two to four point spacings.
  3. Press Classify and read the class counts, the filter notes and the top and side views.
  4. Download the classified LAS and the rasters, or contours at an interval you choose.

Example

Load a synthetic example tile (a 200 x 200 m generated scene: sloped, rolling ground with a 12 m hill, three flat-roofed buildings, 45 trees, shrubs and 40 outliers), cloth filter at 2 m, rolling, 500 iterations, class threshold 0.5 m, outlier removal on

45,316 points

Class counts after Classify

Noise 40, ground 38,982, low vegetation 614, medium 1,522, high 4,151, unclassified 7
Cloth 104 x 104 nodes, 58 iterations, converged
Ground points the scene was built with: 38,984; ground labelled non-ground 0.02%, non-ground labelled ground 0.08%

Tips for best results

  • Set the cloth resolution above the size of the smallest object you want gone. Too small and the cloth sags into low vegetation; too large and it bridges small hills, as with 4 m on the example, which labelled 5.25% of true ground as non-ground.
  • Turn outlier removal on for any tile with birds or multipath, which produces points far below the ground. On the example, leaving it off pushed ground labelled as non-ground to 2.09%.
  • Pick rigidness from the terrain: 3 for flat land, 2 for rolling, 1 for steep relief. A higher rigidness gives a flatter cloth that rides over ridges.
  • For the progressive filter, set the maximum window larger than the biggest building; the windows grow 3, 5, 9, 17, 33, 65 cells (at a 1 m cell), so a limit of 20 m really stops at 17 m, and the page defaults to 40 m (33 m). At 20 m the 24 m building on the example stayed in the ground class and 11.24% of non-ground points were labelled ground; at 40 m that fell to 1.01%, while ground wrongly labelled non-ground rose to 1.32%.
  • Use a coarser raster grid for a quick look and the point spacing for the final product.

Common pitfalls

Bridges and cliffs are the classic failures. A bridge deck at road level tends to be drawn into the ground surface, and a near-vertical rock face tends to read as non-ground, so check those areas in the side view.

Dense low vegetation with few ground returns can be taken for ground, and water with no returns leaves holes that the terrain model fills by interpolation.

Only classes this tool assigns are written: everything else, including classes in the original file, is overwritten with 1, 2, 3, 4, 5 or 7.

The page was not run on the ISPRS benchmark samples, so there are no type I and type II error figures for them here. The only accuracy numbers on this page are from a synthetic scene.

Common errors and how to fix them

This file is LAZ-compressed
LAZ must be decompressed to LAS first, for example with laszip, PDAL or CloudCompare, then opened here.
A 0.5 m cloth over this area would have 9,000,000 nodes
The cloth is limited to 4 million nodes. Use the resolution the message suggests, or clip the file to a smaller tile.

What to expect from the numbers

On the generated tile the cloth filter at 2 m and rolling terrain mislabelled 0.02% of true ground points and 0.08% of non-ground points, and the terrain model it produced matched the generating surface to 0.016 m RMS. The scene is simple, with gentle slopes, clean roofs and low noise, so these figures show the method working, not what a real survey will give.

A real tile has uneven point density and steeper terrain, and the right cloth resolution varies by site. Read the filter note, which reports iterations and how many cloth nodes never reached the points, then look at the side view before trusting the ground class.

Frequently asked questions

Which method should I use?

Start with the cloth filter. The progressive filter needs its maximum window set above the largest building and tends to cut into hills when the slope parameter is too low; its strength is a fast, simple raster operation.

Why is my ground class much smaller than expected?

The class threshold or cloth resolution is probably too tight for the terrain. Raise the class threshold toward the vertical noise of the data, or lower the rigidness on steep ground.

Does the classified LAS lose anything?

No. Only the classification field changes; coordinates, intensity, returns, colours, VLRs and EVLRs are copied unchanged. Point formats 6 to 10 keep their scanner channel and flag bits.

Can it handle a 100-million-point survey?

No. The limit is 10 million points and 450 MB per file, so clip or thin a large survey into tiles with a point cloud tool first.