v.in.pdal(1)

πŸ“¦
version 8.4.2 Β· 4 versions
, in fedora 44

πŸ’– v.in.pdal β€” the GRASS GIS User's Manual glow-up ✨

okay bestie, so this is v.in.pdal from the GRASS GIS User's Manual and it's literally the module that takes your LAS LiDAR point clouds and turns them into a GRASS vector map with PDAL. no cap. πŸ¦‹

KEYWORDS: vector, import, LIDAR πŸ‘‘


🌸 SYNOPSIS 🌸

v.in.pdal
v.in.pdal --help
v.in.pdal [-wocr] input=name output=name  [id_layer=string]
[return_layer=string]   [class_layer=string]   [rgb_layer=string]
[spatial=xmin,ymin,xmax,ymax]   [zrange=min,max]
[return_filter=string]   [class_filter=integer[,integer,...]]
[input_srs=string]   [--overwrite]  [--help]  [--verbose]  [--quiet]
[--ui]

πŸŽ€ Flags πŸŽ€

  • -w β€” Reproject to projects's coordinate system if needed. like, it reprojects your input dataset into the coordinate system of the GRASS project. and btw, by default only datasets with the matching coordinate system can even be imported, so this is the "make it work anyway" flag πŸ’…
  • -o β€” Override projection check (use current project's CRS). it just assumes the dataset has the same coordinate reference system as the current project. bold of you but okay 🫢
  • -c β€” Do not automatically add unique ID as category to each point. it creates only the requested layers and categories, no extras.
  • -r β€” Limit import to the current region. yes bestie, the region you set with g.region 🎯
  • --overwrite β€” Allow output files to overwrite existing files. dangerous girlboss behavior, be careful 😭
  • --help β€” Print usage summary
  • --verbose β€” Verbose module output
  • --quiet β€” Quiet module output
  • --ui β€” Force launching GUI dialog

🌈 Parameters 🌈

  • input=name [required] β€” LAS input file. it's your LiDAR input files in LAS format, so *.las or *.laz πŸ’–
  • output=name [required] β€” Name for output vector map
  • id_layer=string β€” Layer number to store generated point ID as category. it's set to 1 by default, and use -c if you don't want it stored at all ✨
  • return_layer=string β€” Layer number to store return information as category. leave it empty to not store it πŸ“
  • class_layer=string β€” Layer number to store class number as category. leave it empty to not store it πŸ“
  • rgb_layer=string β€” Layer number where RBG colors are stored as category. leave it empty to not store it πŸ“
  • spatial=xmin,ymin,xmax,ymax β€” Import subregion only. format is xmin,ymin,xmax,ymax β€” and usually that's W,S,E,N just fyi 🧚
  • zrange=min,max β€” Filter range for z data (min,max)
  • return_filter=string β€” Only import points of selected return type. if you don't specify it, all points get imported. options are: first, last, mid πŸ‘‘
  • class_filter=integer[,integer,...] β€” Only import points of selected class(es). input is comma separated integers. if not specified, all points are imported, periodt. πŸ’…
  • input_srs=string β€” Input dataset projection (WKT or EPSG, e.g. EPSG:4326). it overrides the input dataset coordinate system using an EPSG code or WKT definition πŸ”₯

✨ DESCRIPTION ✨

So what it does is it imports a point cloud (like, e.g. from a LAS file) as vector points with the PDAL library. and bestie, v.in.pdal supports the following filters:

  • 2D region filter
  • Z coordinates filter
  • return filter
  • class filter

that's it that's the list, all four, iconic πŸ¦‹


πŸ’œ EXAMPLES πŸ’œ

Import only XYZ coordinates of points, limit the import to the current computational region and reproject to the current project's coordinate reference system during the import:

v.in.pdal input=points.las output=points -c -r -w

like look at that. three little flags doing so much. main character energy fr fr 🌟


πŸ“š REFERENCES πŸ“š

  • V. Petras, A. Petrasova, J. Jeziorska, H. Mitasova (2016): Processing UAV and lidar point clouds in GRASS GIS. XXIII ISPRS Congress 2016 [ISPRS Archives, ResearchGate]

πŸ‘€ SEE ALSO πŸ‘€

r.in.pdal, g.region, v.vect.stats, v.in.ogr

go read those too, iykyk πŸ’…


🫢 AUTHOR 🫢

Vaclav Petras, NCSU GeoForAll Lab


🌟 SOURCE CODE 🌟

Available at: v.in.pdal source code (history)

Accessed: Saturday Jan 17 05:41:27 2026

Main index | Vector index | Topics index | Keywords index | Graphical index | Full index


okay that's the whole page bestie, you're literally a LiDAR girlie now πŸ’–

and that's a wrap!! this is GRASS GIS 8.4.2 Reference Manual, Β© 2003-2025 GRASS Development Team, accessed Saturday Jan 17 05:41:27 2026 β€” slay, go import some point clouds, you got this πŸŽ€βœ¨

πŸ“¦ where this page comes from