Skip to content

Instantly share code, notes, and snippets.

@maphew
Last active January 11, 2020 22:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maphew/652c5cb51516e9d1f1c88cd3ec634289 to your computer and use it in GitHub Desktop.
Save maphew/652c5cb51516e9d1f1c88cd3ec634289 to your computer and use it in GitHub Desktop.
A PDAL pipeline that a) classifies into ground/not-ground, b) adds "Height Above Ground" attribute, and c) exports only above ground points. Adapted from https://lists.osgeo.org/pipermail/pdal/2017-July/001367.html
{
"pipeline": [
"Carmacks_01.laz",
{
"type": "filters.assign",
"assignment": "Classification[:]=0"
},
{
"type": "filters.smrf"
},
{
"type": "filters.hag"
},
{
"type": "filters.range",
"limits": "HeightAboveGround[2:]"
},
{
"type": "filters.approximatecoplanar",
"knn": 10
},
{
"type": "filters.range",
"limits": "Coplanar[1:1]"
},
{
"filename":"xx-classified.laz",
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment