2

I'm trying to convert a .las file to a DTM/DEM using PDAL, but having the issue of multiple bands instead of one.

I went through Generating a DTM and writers.gdal but it prompts an error message:

Unexpected argument 'grid_dist_x'.

{
    "pipeline": [
       "E:/ground.laz",
        {
            "filename": "E:/ground.tif",
            "grid_dist_x": "2.0",
            "grid_dist_y": "2.0",
            "output_format": "tif",
            "output_type": "all",
            "type": "writers.gdal"
        }
    ]
}
  • 1
    Can you include the command(s) / json string that you have used so far? – dmci Aug 22 '17 at 15:46
  • Generating a DTM: ' { "pipeline": [ "E:/ground.laz", { "filename":"E:/ground.tif", "output_format":"tif", "output_type":"all", "grid_dist_x":"2.0", "grid_dist_y":"2.0", "type": "writers.gdal" } ] } ' Writers.gdal: ' { "pipeline":[ "E:/ground.las", { "resolution": 1, "radius": 15, "filename":"E:/ground.tif" } ] } ' – Hassam Ali Aug 23 '17 at 6:10
  • Here's a link to Generating a DTM. – Hassam Ali Aug 23 '17 at 6:18
  • And Writers.gdal. – Hassam Ali Aug 23 '17 at 6:19
1

The pipeline in the workshop is incorrect for PDAL 1.5+.

Follow the Basic Example in the writers.gdal document.

{
  "resolution": 10,
  "radius": 14.14,
  "filename":"outputfile.tif"
}
  • 1
    the Basic Example in the writers.gdal document generates a 6 band raster instead of a single band i.e DEM/DTM. – Hassam Ali Aug 24 '17 at 5:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.