Skip to content
LidarKit

LiDAR ground classification tool for LAS and LAZ files

Sort a LiDAR or drone point cloud into ground and everything standing on it, with SMRF ported point for point from PDAL. Tune it on a live map before you save. It all runs on this computer, so the file isn't uploaded.

  • Matches PDAL's SMRF
  • Live tuning map
  • LAS and LAZ
  • No upload
  • No install

Drop a LAS or LAZ file to find the ground

or choose a file

Ground (2) and non-ground (1) · nothing leaves your machine

No file to hand? — 150 × 150 m of central Brussels, airborne LiDAR, 2014, every point unclassified (1.30 MB).

No upload. Processing runs in a Web Worker on your device — this app has no server component and no upload endpoint. How it works

What it does with your cloud

All of this works on the unclassified sample above, so you can try it before you use a file of your own.

  • GROUND MAP · DEFAULTS

    See the ground before you save it

    After one read of the file you get a map: brown where the points are ground, grey where they aren't. A roof that's been called ground stands out at once.

  • TUNE · LIVE

    Retune in a fraction of a second

    Move the window, cut, slope or threshold and the map redraws, because only the grid is recomputed. On a 110 million point survey that took about 0.2 to 0.3 s.

  • SMRF · OPENING

    Terrain bends, roofs drop

    The lowest surface is opened with a window that keeps growing. Ground only ever falls away gradually. A roof vanishes all at once, and that's how it gets caught.

  • PDAL 2.10 · POINTS THAT DIFFER

    Matches PDAL point for point

    It's a port of PDAL's filters.smrf, with the same parameter names and defaults. On the six clouds we checked, every point got the same class PDAL gave it.

  • CUT · 20 m

    Help for big, stepped buildings

    When a roof stays brown however wide the window gets, a cut lays a net of low lines across the site. If the ground share looks too high, the tool offers one.

  • OUTPUT · CLASS 2 AND 1

    Only the classification changes

    Ground goes to class 2 and the rest to class 1, or keeps its class if you tick Only mark ground. Everything else in the file is written back as it was.

What point cloud ground classification is

Ground classification, also called ground filtering or bare-earth extraction, sorts the points of a cloud into two groups: the ones on the earth and the ones on top of it. Nearly every terrain product starts here. A DTM, contour lines, a stockpile volume, the height of a tree: each one needs to know which points are the earth and which are standing on it.

LAS files have a code for that. Class 2 means ground. Plenty of clouds, drone photogrammetry especially, arrive with every point still in class 0 or 1, and this tool fills the ground in.

It uses SMRF, the Simple Morphological Filter (Pingel, Clarke and McBride, 2013), which works on a grid of the lowest point in each cell. The filter runs in a background worker in your browser, on a sample first so you can tune it, then on every point when you write the file. There's more on the idea in How LiDAR classification works and in How to create a DTM from LiDAR, and a comparison with other filters further down.

Checked against PDAL

Native PDAL 2.10 filters.smrf run on the same files, then every point's class compared.

CloudPointsGroundDiffer
Airborne LiDAR, Brussels, defaults5,850,13028.6%0
Same, 0.5 m cell, 30 m window, cut, first returns5,850,13026.7%0
Drone, urban square31,002,88427.1%0
Drone, residential block26,134,16732.6%0
Drone, industrial site49,716,73666.9%0
Airborne LiDAR, IGN LiDAR HD, suburb, defaults20,100,14246.9%0
  1. 1 · Minimum surface

    Lowest point in every cell. Empty cells are filled from their 8 nearest neighbours.

  2. 2 · Low outliers

    Isolated pits, like a stray return below ground, are set aside.

  3. 3 · Progressive opening

    The window grows one cell at a time. Cells that drop too fast are objects.

  4. 4 · Threshold

    A point within threshold + scalar × slope of the ground model is ground.

Step 3 does most of the work: terrain falls away gradually, a roof drops all at once.

How to extract ground points from a LiDAR point cloud

Ground points are the returns from bare earth: soil, pavement, short grass. Everything else stands on top of it, like buildings, trees, cars and power lines. A terrain model needs the two apart, or every roof turns into a hill and every tree into a bump.

Classifying a LAS or LAZ file isn't deleting points. Each point gets a code in its classification field, class 2 for ground under the ASPRS LAS codes, and every point stays in the file. A DTM picks class 2 later, and the buildings and trees are still there for a surface model.

  1. 1. Load an unclassified file

    Drag a .las or .laz onto the tool, or click choose a file. No cloud to hand? Press Try the sample, which has no classes yet.

  2. 2. Set up and run SMRF

    Check the cell size and which returns to filter, then press Read file and preview. SMRF runs with PDAL's defaults and the map appears when the read is done.

  3. 3. Inspect, tune, export

    Ground is brown on the map, the rest grey. Move the sliders until roofs are grey and open ground is brown, then press Classify and write. Every point is labelled and shown in 3D. Downloading needs a free account.

Cell1 m
Ground points are much denser or sparser than one per m².
Window18 × cell
A big roof stays brown. Raise it until the roof turns grey.
Cut0 (off)
A stepped or very large building won't go, whatever the window.
Slope0.15
Hillsides and embankments turn grey. Raise it.
Threshold0.5 m
Lower it to drop kerbs and low growth, raise it on a noisy cloud.
Scalar1.25
Steep ground comes out in ground and non-ground stripes.
Returnslast, only
You want first or intermediate returns filtered too.
Ignore noiseoff
The cloud's been denoised into class 7 or 18.

SMRF vs PMF vs CSF: which ground classification algorithm should you use?

Most ground filters start from the lowest points. They differ in how they decide that something rises too fast to be terrain.

AlgorithmHow it worksTypical useWatch out for
SMRFSimple Morphological FilterPingel, Clarke & McBride 2013 Runs hereGrids the lowest points and opens them with a window that grows a cell at a time. A cell is an object when it drops more than the slope allows. Every point is then tested against an interpolated ground surface.Airborne LiDAR and drone clouds of towns, industrial sites and mixed terrain.The window has to span the largest roof. Wide bridges and stepped buildings can survive it.
PMFProgressive Morphological FilterZhang et al. 2003 The idea SMRF refines. Opens the surface with growing windows, and the height drop allowed at each step grows with the window up to one fixed maximum.Airborne LiDAR over rural and forested ground.One maximum for the whole site. On hilly ground with big buildings, a value that removes the roofs starts cutting into hilltops.
CSFCloth Simulation FilterZhang et al. 2016 Turns the cloud upside down and drapes a simulated cloth over it. Points close to where the cloth comes to rest are ground.Forests and natural terrain. Its few settings are easy to reason about.The cloth's rigidness has to suit the terrain. Steep slopes and sharp breaks can be bridged over.
PTDProgressive TIN DensificationAxelsson 2000 Seeds a triangulated surface with the lowest point in large cells, then keeps adding points that sit close enough to it, by distance and angle.A long-standing approach in production airborne LiDAR processing.The seed cells must be larger than the largest building, and low outliers have to go first or they drag the surface down.

This tool runs SMRF. It copes with slopes, catches big roofs once the window spans them and has only a handful of settings, and PDAL's implementation gives every result a reference to check against. Whichever filter you use, look at the ground on a map before you build anything on it.

From an unclassified cloud to a terrain model

Ground classification is usually the preprocessing step before a DTM. The classified file goes on to a terrain model or a visual check.

  1. IN

    Unclassified LAS or LAZ

    Not sure what's in it? The LAS inspector shows the version, point format and coordinate system.

  2. THIS PAGE

    Ground classification

    SMRF finds the ground. Tune it on the map.

  3. OUT

    Classified LAS or LAZ

    Class 2 for ground, class 1 for the rest. Every point kept.

  4. DTM with LAS to DEM

    Builds the bare-earth GeoTIFF from the file's class 2.

    Vegetation by height

    Sorts what stands on the ground into low, medium and high vegetation.

    Check it in the LAS/LAZ viewer

    Colour by class in 3D, with exact counts per class.

More on the difference between the two surfaces in DEM vs DSM vs DTM.

Supported features and limitations

Works today

  • LAS and LAZ, from airborne LiDAR or drone photogrammetry
  • PDAL's SMRF parameters, names and defaults
  • A live map from a sample of up to 2 million points
  • Filter last, only, first or intermediate returns
  • Leave noise points (class 7 and 18) out of the filter
  • Only mark ground, keeping every other class as it was
  • A suggested cut when the ground share looks too high
  • LAZ or LAS out, compressed as the points are labelled

Good to know

  • The grid has a ceiling. Up to 8 million cells, which is 8 km² at a 1 m cell. Larger sites need a coarser cell, and the tool says which.
  • The map is a sample. It's drawn from up to 2 million points, and they get exactly the classes the output will give them.
  • Bridges can pass as ground. A deck wide enough to survive the window looks like terrain to any morphological filter.
  • Photogrammetry can't see under trees. There's no ground to find under dense canopy, so it's left as non-ground.
  • It reads the file twice. Once for the map and once to write, so a big file takes about two reads.
  • Ground first. Vegetation, buildings and everything else above the ground go to class 1 together here. Vegetation classification then sorts the plants into low, medium and high.

How it compares with desktop software

Desktop point cloud packages do a lot more than find ground. This page does one job, on whatever machine you're at, and lets you see the answer before you keep it.

TopicThis toolDesktop software
Getting startedOpen the page. Nothing to install.Install a package, sometimes a command-line toolchain.
AlgorithmSMRF, ported from PDAL 2.10. Same classes on every file we tested.Often several filters to choose from.
TuningA live map that redraws as you move a slider.Often one run per setting, then a look at the result.
Large filesStreamed in passes. The limit is the grid (8 million cells), not the point count.Usually fine, with tiling for very large areas.
BatchesOne file at a time.Batch runs and scripted pipelines.
Other classesGround here, then low, medium and high vegetation on the vegetation page.Commonly offered.
Your fileRead on your computer, not uploaded.Also stays on your computer.
PriceFree. Downloading the result needs a free account.From free and open source to commercial licences.

Your point cloud stays on your computer

The browser reads the file straight from your disk and hands it to a background worker on your own machine. That's where the filter runs and where the labelled file is written. There's no upload step.

You can check it: open your browser's developer tools, watch the Network tab and run a file. The page counts anonymous events, like "a file was classified", with a rough file size and point count. Nothing from inside your file goes with them. The privacy page has the details.

Frequently asked questions

What is ground classification in LiDAR?
It's deciding, for every point in a LiDAR or other point cloud, whether it lies on the bare earth or on something standing on it, like a building, a tree or a car. Ground points get class 2 in a LAS file. It's also called ground filtering or bare-earth extraction, and it comes before a DTM, contour lines or a volume.
How do I classify ground points in a LAS file?
Load the LAS or LAZ into the tool at the top of this page and press Read file and preview. Check the map, raise the window or set a cut if a roof stays brown, then press Classify and write. Ground points get class 2, the rest class 1, and you save the result as LAS or LAZ. It all runs in your browser.
What is ASPRS ground classification class 2?
It's the code the ASPRS LAS specification sets aside for ground. The same table has 0 for never classified, 1 for unclassified, 3 to 5 for low, medium and high vegetation, 6 for building, 7 for low noise and 9 for water. Any software that filters a LAS file by class reads class 2 as bare earth.
What is the difference between a DTM and a DSM?
A DSM is the top surface the sensor saw, roofs and tree canopy included. A DTM is the bare earth, with everything standing on it taken out and the ground underneath filled in. A DTM is built from ground points only, which is why ground classification comes first. LAS to DEM makes both from one read of the file.
Can I remove trees and buildings from a LiDAR point cloud?
Yes, by classifying them apart from the ground. This tool labels trees, buildings and everything else above the terrain as class 1 and the ground as class 2, and keeps every point. A DTM built from class 2 then has no trees or buildings in it, and the rest are still there if you need a surface model or canopy heights later.
What is the difference between SMRF, PMF and CSF?
All three find the ground from the lowest points, and they differ in the test. PMF opens a grid with growing windows and allows a height drop that grows up to one fixed maximum. SMRF refines it by tying the allowed drop to the slope and testing every point against an interpolated ground surface. CSF drapes a simulated cloth over the cloud turned upside down. SMRF, which this tool runs, is a good default for airborne LiDAR and drone clouds with buildings in them.
Is this the same as PDAL's filters.smrf?
Yes. It's a line-by-line port of PDAL 2.10's SMRF filter, down to the details that decide ties, like which eight neighbouring cells fill an empty one. We checked it against native PDAL on airborne LiDAR and drone photogrammetry, with default and custom settings, and every point came out with the same class. The parameters are PDAL's too, so settings carry across either way.
Which classes does it write?
Class 2 for ground and class 1 for every other point it filters. Points it doesn't filter, such as return types you left unticked or noise you chose to ignore, keep the class they had. Tick Only mark ground and non-ground points keep their classes as well, so only class 2 is added.
Does it work on photogrammetry clouds?
Yes. A cloud from Metashape, RealityCapture, Pix4D or ODM has one return per point, so every point counts as an 'only' return and gets filtered. Files whose return fields are all zero are filtered whole too. The catch is ground under dense trees: the cameras never saw it, so those areas come out as non-ground.
What cell size and window should I use?
Start with the defaults, a 1 m cell and an 18 m window. The window needs to be a bit more than half the largest building's shorter side, or that roof survives and is called ground. The cell shouldn't be finer than the spacing of the ground points you expect.
Why does a roof come out as ground?
Usually because the window can't span it. Raise the window until it turns grey on the map. If it stays brown however wide you go, the building probably steps down in levels and is being read as a hill. A cut of around 20 m usually fixes a single building. Larger hall complexes may need 40 to 50 m, with the window kept above half the cut.
How large a file can it handle?
Point count isn't really the limit. The points are read in passes and never all held in memory, so a 50 million point cloud filters in seconds plus the time it takes to read it, once for the map and once to write. The limit is the grid: up to 8 million cells, which is 8 km² at a 1 m cell. If your site is bigger, the tool tells you which coarser cell will fit.
Can I classify LAZ files online?
Yes. The LAZ is decompressed in your browser, so it's never uploaded, and the result can be written as LAZ or LAS. Pick LAZ unless something downstream can't read it: it's lossless, so the points, header and coordinate system are identical either way, and it's several times smaller, which makes a big download more likely to finish.
Is my point cloud uploaded?
No. The browser reads it from your disk and the filter runs in a background worker on your own machine. Nothing from the file is sent anywhere.
Do I need an account?
Not to run it. Reading the file, tuning on the map and labelling every point are all free without signing in. Downloading the classified file asks you to sign in with a free account.

Related tools

Learn more