Skip to content

Instantly share code, notes, and snippets.

@smathermather
Last active March 23, 2017 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smathermather/0f5f9d603f79d4a12fba70cb4be1f83c to your computer and use it in GitHub Desktop.
Save smathermather/0f5f9d603f79d4a12fba70cb4be1f83c to your computer and use it in GitHub Desktop.
  • Reduce the point cloud a bit to make things fast
  • Run ourselves a progressive morphological filter. This will classify ground points and extract ground
  • Then we'll do a simple IDW interpolation to a DEM
{
  "pipeline":[
    "input.las",
   {
     "type":"filters.sample",
     "radius":"0.5"
    },
    {
      "type":"filters.pmf",
      "extract":"true"
    },
    {
      "resolution": 2,
      "radius": 5,
      "output_type":"idw",
      "filename":"outputfile.tif"
    }
  ]
}
docker run -v $(pwd)/data:/data dockerpdal pdal pipeline /data/dem.json --readers.las.filename=/data/odm_georeferenced_model.ply.las --writers.gdal.filename=/data/odm_georeferenced_model.dem.tif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment