Skip to content
LidarKit

Point cloud classification, ground first, then vegetation

Classifying a LAS or LAZ file here takes two steps, each with its own tool. Find the ground, then sort what stands on it by height. The file from step 1 goes straight into step 2, and both run on this computer.

  • Ground, then vegetation
  • ASPRS classes 2 to 5
  • Live map at each step
  • LAS and LAZ
  • No upload
  1. IN · UNCLASSIFIED

    Your LAS or LAZ

    Every point the same: no ground, no trees, just heights.

  2. STEP 1 · GROUND · CLASS 2

    Ground classification

    SMRF finds the bare earth and writes it as class 2.

  3. STEP 2 · VEGETATION · 3 4 5

    Vegetation classification

    What stands on the ground is sorted into low, medium and high vegetation.

The same points in all three pictures. Classification only changes each point's class, never where it is or whether it's kept.

What each step reads and writes

Each step is its own page with its own map, so you can check one before you start the next.

  1. STEP 1

    Ground classification

    The lowest points are gridded, and the grid is opened with a window that grows a cell at a time. Terrain only ever falls away gradually, while a roof drops all at once, so that's how buildings and trees get caught. Every point is then tested against the ground surface that's left. You see the result on a map and can retune the window, slope, threshold and cut before anything is written.

    Classify the ground
    READS
    Any LAS or LAZ, classified or not
    WRITES
    Class 2 for ground, class 1 for every other point it filters
    LEAVES ALONE
    Every other field. Tick Only mark ground and existing classes stay too.
    CHECKED AGAINST
    A port of PDAL 2.10's filters.smrf. On the six clouds we compared, every point got the class PDAL gave it.
    SAVES AS
    survey_ground.laz
  2. STEP 2

    Vegetation classification

    A ground model is built from the class 2 points, so every other point gets a height above the ground. Height alone can't tell a tree from a roof, so on lidar each cell of about a metre is also asked how many pulses came back more than once, which foliage does, and whether its points lie on a plane, which a roof does. Vegetation is then banded at the heights you set.

    Classify the vegetation
    READS
    A LAS or LAZ with ground in class 2
    WRITES
    Classes 3, 4 and 5, at your height bands (0.5 and 1.5 m to start)
    LEAVES ALONE
    Ground, and every class other than 0, 1, 3, 4 and 5
    CHECKED AGAINST
    On a 20 million point IGN LiDAR HD tile, it found 90.8% of IGN's vegetation, and 96.3% of what it called vegetation was vegetation there too.
    SAVES AS
    survey_vegetation.laz

Then open the result in the LAS/LAZ viewer and colour it by class, with a count for each one. Or grid it with LAS to DEM: a DTM from the ground and a DSM from the rest give you canopy height.

Why ground comes first

A point on its own is three coordinates and an intensity. Nothing in it says tree or roof. Software has to decide from the points around it, and nearly every decision starts from the same question: how high above the ground is this?

High vegetation is foliage above a set height. A building is a flat surface some way up. Neither can be measured until there's a ground surface to measure from, which is why the ground step comes first and why the vegetation step needs its class 2 points. More on the reasoning in How LiDAR classification works, and on the codes in LAS classification codes.

Classes after both steps
ClassSet by
2GroundStep 1
3Low vegetationStep 2, up to 0.5 m by default
4Medium vegetationStep 2, 0.5 to 1.5 m by default
5High vegetationStep 2, above 1.5 m by default
1UnclassifiedStep 1 for non-ground, left there by step 2 if it isn't vegetation
6, 7, 9, 18…Building, noise, water and the restKept from the original file if you tick Only mark ground in step 1

Height bands are yours to set in step 2. The defaults are IGN LiDAR HD's.

Getting the two steps to work together

Step 2 builds on whatever step 1 decided, so most fixes belong in step 1.

  • Want shrubs and long grass?

    Lower the threshold in step 1. SMRF calls anything within 0.5 m of its ground model ground, which is the whole low-vegetation band. Step 2 never takes points back from ground, so low growth has to be left out of class 2 first.

  • A roof came out brown

    Fix it in step 1, with a wider window or a cut, and watch it turn grey on the map. Step 2 trusts class 2 completely, so a roof called ground stays ground and the heights around it are measured from the roof.

  • Ground already done?

    Skip straight to step 2. It reads class 2 from any source: a national survey, your data provider, or another ground filter. A file with no ground points is turned away with a link back to step 1.

  • Drone photogrammetry

    Step 1 works on it as it does on lidar. Step 2 runs too, but it's experimental there: with one return per point it decides from colour and texture, and we're still experimenting with that case. Check the map before you save.

Both steps run on your computer

Each tool reads the file straight from your disk in a background worker, and writes the classified file there too. The point cloud isn't uploaded at either step.

The pages count 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 point cloud classification?
Giving every point a code for what it hit: ground, vegetation, building, water, noise. The code goes in the point's classification field, using the ASPRS LAS table, and no points are removed. Terrain models, canopy heights and clearance checks all start by picking points by class.
In what order should a LiDAR point cloud be classified?
Ground first. Almost every other class is defined by height above the ground: high vegetation is foliage above a set height, and you can't measure that until you know where the ground is. Once class 2 exists, everything standing on it can be sorted.
Can I classify vegetation without classifying the ground first?
Not on this site, because the heights come from the file's class 2 points. It doesn't matter where they came from, though. If your file already has ground from a survey or a data provider, start at step 2.
Does the vegetation step change my ground points?
No. Ground stays class 2, and so does every class other than 0, 1, 3, 4 and 5. It only judges unclassified points and vegetation from an earlier run, so running it twice with new bands replaces its own answer.
Which classes does the file have at the end?
Class 2 for ground, 3, 4 and 5 for low, medium and high vegetation, and class 1 for everything else the ground step filtered, such as buildings, cars and wires. Tick Only mark ground in step 1 if your file already has classes like water or noise that you want kept.
Is it free, and is my file uploaded?
Both steps run on your own computer, and the point cloud is never uploaded. Reading the file, tuning on the map and labelling every point are free without an account. Saving the classified file asks you to sign in with a free account.