The points to grid writer takes in a stream of point data and writes out gridded summaries of the stream. Each cell in the output grids can give one of the: minimum value, maximum value, average value, average value, inverse distance weighted interpolation (for sparse points), or density. The points to grid writer supports creating multiple output grids simultaneously, so it is possible to generate all grid variants in one pass.
Note
A project called lidar2dems by Applied GeoSolutions integrates the P2G writer and other PDAL components into a series of scripts and utilities that make it more convenient to do DEM production with PDAL.
{
"pipeline":[
{
"type":"readers.las",
"filename":"inputfile.las"
},
{
"type":"writers.p2g",
"grid_dist_x":"6.0",
"grid_dist_y":"6.0",
"radius":"8.4852813742385713",
"filename":"autzen_grid",
"output_type":"min",
"output_type":"max",
"output_type":"mean",
"output_type":"idw",
"output_type":"den",
"output_format":"den",
}
]
}