|
That's a big topic. I was feeling lazy today so I decided to ask DeepSeek (https://chat.deepseek.com ). DS is a lot faster to respond than either ChatGPT 4.5 or specialty Open AI models like o3-pro. So I asked DS the following, not enabling DeepThink mode (which usually takes longer): When working with LAS/LAZ LiDAR files, if somebody wants to create DSM or DTM rasters from those files, what are they talking about?
Following is DS's response. The response has pretty formatting... not sure if I can just copy/paste here and retain that formatting. But you can ask DS the same prompt and presumably you'll get something similar: When working with LAS/LAZ (LiDAR point cloud data), creating DSM (Digital Surface Model) and DTM (Digital Terrain Model) rasters involves processing the raw point cloud to generate elevation grids representing different aspects of the terrain. Here’s a breakdown of what these terms mean and how they’re derived:
1. Key Definitions TermFull NameDescriptionWhat It RepresentsDSMDigital Surface ModelElevation model including all surface features (buildings, trees, vehicles).Top of all objects + ground.DTMDigital Terrain ModelElevation model of the bare ground (no vegetation, structures)."Bare earth" topography.DEMDigital Elevation ModelGeneric term for elevation data (sometimes used interchangeably with DTM).Can mean DSM or DTM depending on context. 2. How They’re Created from LAS/LAZ FilesStep 1: Classify Points (If Not Already Done)LiDAR points are typically pre-classified (e.g., ground, vegetation, buildings). If not, use tools like: Step 2: Filter PointsStep 3: Rasterize PointsConvert filtered points to a grid (raster) using interpolation: Common Methods: Bin averaging (assign cell value = average elevation of points in the bin). Triangulation (TIN) → Rasterize triangles. Inverse Distance Weighting (IDW) or Kriging (for smoother surfaces).
Step 4: Output Raster FormatsGeoTIFF (most common) ASCII Grid (text-based) IMGs (ERDAS).
3. Tools to Generate DSM/DTMToolCommand/WorkflowNotesLAStools las2dem -i input.laz -o dsm.tif (DSM)las2dem -keep_class 2 -i input.laz -o dtm.tif (DTM)Fast, commercial (free for small jobs).PDALpdal pipeline dem.json (JSON pipeline with writers.gdal for raster output)Open-source, flexible.QGIS + LAStoolsUse "LAS to Raster" tool in QGIS (via Processing toolbox).GUI-friendly.ArcGIS Pro"LAS Dataset to Raster" tool (set Class = 2 for DTM).Commercial, integrates with Esri workflows. 4. Visual ComparisonModelIncludesTypical Use CaseDSMTrees, buildings, power linesUrban planning, flood modeling (with structures).DTMOnly groundHydrology, geological analysis, contour generation. https://www.researchgate.net/profile/Joao-Pedro-Silva-5/publication/334453982/figure/fig1/AS:781826843836416@1563984964622/Digital-Terrain-Model-DTM-and-Digital-Surface-Model-DSM.png 5. Pitfalls to AvoidDSM Artifacts: Noise from cars/people → filter low outliers. DTM Errors: Misclassified ground points → manually clean classes. Resolution: Choose cell size wisely (e.g., 1m for urban areas, 5m for forests).
6. Example PDAL Pipeline for DTMjson Copy Download { "pipeline": [ "input.laz", { "type": "filters.range", "limits": "Classification[2:2]" }, { "type": "writers.gdal", "resolution": 1.0, "output_type": "min", // or "max", "mean", "idw" "filename": "dtm.tif" } ] } Key TakeawaysDSM = Surface + Objects (raw reality). DTM = Ground only (remove vegetation/buildings). Start with classified LAS/LAZ (or classify first). Use binning/TIN interpolation for rasterization.
Would you like a step-by-step tutorial for a specific tool (e.g., QGIS or LAStools)?
|