Skip to main content
added more information in answer
Source Link
Andre Silva
  • 10.3k
  • 12
  • 55
  • 109

For simplicity (because it was not mentioned in question) I am assuming the XYZ files are ready to be processed (i.e., no classification or filtering is needed) and that the content is suitable for whatever type of raster OP wants (DEM, DSM, etc.).

If one really wants/needs to work with ASCII files, one option to grid them is GDALGDAL gdal_grid:

Creates regular grid from the scattered data.

GRASSGRASS also has the r.in.xyz tool for rasterizing ungridded point cloud data in ASCII format:

The r.in.xyz module will load and bin ungridded x,y,z ASCII data into a new raster map. ...
r.in.xyz is designed for processing massive point cloud datasets, for example raw LIDAR

A third option is PDAL points2grid:

Generates Digital Elevation Models (DEM) using a local gridding method.


On the other hand, I'd convert the ASCII files to binary .las (or .laz) which is the standard LiDAR point cloud format, then would proceed processing from there (especially if this is not a one-time only processing and/or other types of processing are due as well).

Because working with .las is faster; better for storage (more compact); and can take more information (see for example, Benefits of *.las vs *.xyz or *.ascii when working with LiDAR in ArcGIS for Desktop?). Besides, it has more and better software options for processing and visualization.

LAStools txt2las converts ASCII files to .las is free and open source:

Converts LIDAR data from a standard ASCII format into the more efficient binary LAS/LAZ/BIN representations.

Another option is PDAL translate (see example 3):

The translate command can be used for simple conversion of files based on their file extensions.

More useful info in PDAL readers.text and reading with PDAL.

Once having point files in LAS format, gridding them (to a DEM or DSM for example) would be straightforward. Some free/open-source options:

My favourites are the top 3..

If one really wants/needs to work with ASCII files, one option to grid them is GDAL gdal_grid:

Creates regular grid from the scattered data.

GRASS also has the r.in.xyz tool for rasterizing ungridded point cloud data in ASCII format:

The r.in.xyz module will load and bin ungridded x,y,z ASCII data into a new raster map. ...
r.in.xyz is designed for processing massive point cloud datasets, for example raw LIDAR


On the other hand, I'd convert the ASCII files to .las (or .laz) which is the standard LiDAR point cloud format, then would proceed processing from there (especially if this is not a one-time only processing and/or other types of processing are due as well).

Because working with .las is faster; better for storage (more compact); and can take more information (see for example, Benefits of *.las vs *.xyz or *.ascii when working with LiDAR in ArcGIS for Desktop?). Besides, it has more and better software options for processing and visualization.

LAStools txt2las converts ASCII files to .las is free and open source:

Converts LIDAR data from a standard ASCII format into the more efficient binary LAS/LAZ/BIN representations.

Another option is PDAL translate (see example 3):

The translate command can be used for simple conversion of files based on their file extensions.

More useful info in PDAL readers.text and reading with PDAL.

For simplicity (because it was not mentioned in question) I am assuming the XYZ files are ready to be processed (i.e., no classification or filtering is needed) and that the content is suitable for whatever type of raster OP wants (DEM, DSM, etc.).

If one really wants/needs to work with ASCII files, one option to grid them is GDAL gdal_grid:

Creates regular grid from the scattered data.

GRASS also has the r.in.xyz tool for rasterizing ungridded point cloud data in ASCII format:

The r.in.xyz module will load and bin ungridded x,y,z ASCII data into a new raster map. ...
r.in.xyz is designed for processing massive point cloud datasets, for example raw LIDAR

A third option is PDAL points2grid:

Generates Digital Elevation Models (DEM) using a local gridding method.


On the other hand, I'd convert the ASCII files to binary .las (or .laz) which is the standard LiDAR point cloud format, then would proceed processing from there (especially if this is not a one-time only processing and/or other types of processing are due as well).

Because working with .las is faster; better for storage (more compact); and can take more information (see for example, Benefits of *.las vs *.xyz or *.ascii when working with LiDAR in ArcGIS for Desktop?). Besides, it has more and better software options for processing and visualization.

LAStools txt2las converts ASCII files to .las is free and open source:

Converts LIDAR data from a standard ASCII format into the more efficient binary LAS/LAZ/BIN representations.

Another option is PDAL translate (see example 3):

The translate command can be used for simple conversion of files based on their file extensions.

More useful info in PDAL readers.text and reading with PDAL.

Once having point files in LAS format, gridding them (to a DEM or DSM for example) would be straightforward. Some free/open-source options:

My favourites are the top 3..

added one more option for OP
Source Link
Andre Silva
  • 10.3k
  • 12
  • 55
  • 109

If one really wants/needs to work with ASCII files, one option to grid them is GDAL gdal_grid:

Creates regular grid from the scattered data.

ReadGRASS also has the 'Reading comma separated value' section.r.in.xyz tool for rasterizing ungridded point cloud data in ASCII format:

The r.in.xyz module will load and bin ungridded x,y,z ASCII data into a new raster map. ...
r.in.xyz is designed for processing massive point cloud datasets, for example raw LIDAR


On the other hand, I'd convert the ASCII files to .las (or .laz) which is the standard LiDAR point cloud format, then would proceed processing from there (especially if this is not a one-time only processing and/or other types of processing are due as well).

Because working with .las is faster; better for storage (more compact); and can take more information (see for example, Benefits of *.las vs *.xyz or *.ascii when working with LiDAR in ArcGIS for Desktop?). Besides, it has more and better software options for processing and visualization.

LAStools txt2las converts ASCII files to .las is free and open source:

Converts LIDAR data from a standard ASCII format into the more efficient binary LAS/LAZ/BIN representations.

Another option is PDAL translate (see example 3):

The translate command can be used for simple conversion of files based on their file extensions.

More useful info in PDAL readers.text and reading with PDAL.

If one really wants/needs to work with ASCII files, one option to grid them is gdal_grid:

Creates regular grid from the scattered data.

Read the 'Reading comma separated value' section.


On the other hand, I'd convert the ASCII files to .las (or .laz) which is the standard LiDAR point cloud format, then would proceed processing from there (especially if this is not a one-time only processing and/or other types of processing are due as well).

Because working with .las is faster; better for storage (more compact); and can take more information (see for example, Benefits of *.las vs *.xyz or *.ascii when working with LiDAR in ArcGIS for Desktop?). Besides, it has more and better software options for processing and visualization.

LAStools txt2las converts ASCII files to .las is free and open source:

Converts LIDAR data from a standard ASCII format into the more efficient binary LAS/LAZ/BIN representations.

Another option is PDAL translate (see example 3):

The translate command can be used for simple conversion of files based on their file extensions.

More useful info in PDAL readers.text and reading with PDAL.

If one really wants/needs to work with ASCII files, one option to grid them is GDAL gdal_grid:

Creates regular grid from the scattered data.

GRASS also has the r.in.xyz tool for rasterizing ungridded point cloud data in ASCII format:

The r.in.xyz module will load and bin ungridded x,y,z ASCII data into a new raster map. ...
r.in.xyz is designed for processing massive point cloud datasets, for example raw LIDAR


On the other hand, I'd convert the ASCII files to .las (or .laz) which is the standard LiDAR point cloud format, then would proceed processing from there (especially if this is not a one-time only processing and/or other types of processing are due as well).

Because working with .las is faster; better for storage (more compact); and can take more information (see for example, Benefits of *.las vs *.xyz or *.ascii when working with LiDAR in ArcGIS for Desktop?). Besides, it has more and better software options for processing and visualization.

LAStools txt2las converts ASCII files to .las is free and open source:

Converts LIDAR data from a standard ASCII format into the more efficient binary LAS/LAZ/BIN representations.

Another option is PDAL translate (see example 3):

The translate command can be used for simple conversion of files based on their file extensions.

More useful info in PDAL readers.text and reading with PDAL.

moved direct answer to OP's question to top; further advice moved to bottom
Source Link
Andre Silva
  • 10.3k
  • 12
  • 55
  • 109

If I were youone really wants/needs to work with ASCII files, one option to grid them is gdal_grid:

Creates regular grid from the scattered data.

Read the 'Reading comma separated value' section.


On the other hand, I'd convert youthe ASCII files to .las.las (or .laz) which is the standard/official LiDAR point cloud format, then would proceed processing from there (especially if this is not a one-time only processing and/or other types of processing are due as well).

Because working with .las is faster; better for storage (more compact); and can take more information (see for example, Benefits of *.las vs *.xyz or *.ascii when working with LiDAR in ArcGIS for Desktop?). Besides, it has more and better software options for processing and visualization.

LAStools txt2las for convertingconverts ASCII files to .las is free and open source:

Converts LIDAR data from a standard ASCII format into the more efficient binary LAS/LAZ/BIN representations.

Another option for .las conversion is PDAL translate (see example 3).:

The translate command can be used for simple conversion of files based on their file extensions.

More useful info: in PDAL readers.text and reading with PDAL.


On the other hand, if you really want/need to work with ASCII files, one option to grid them is gdal_grid:

Creates regular grid from the scattered data.

Read the 'Reading comma separated value' section.

If I were you, I'd convert you ASCII files to .las (or .laz) which is the standard/official LiDAR point cloud format, then would proceed processing from there.

Because working with .las is faster; better for storage (more compact); and can take more information (see for example, Benefits of *.las vs *.xyz or *.ascii when working with LiDAR in ArcGIS for Desktop?). Besides, it has more and better software options for processing and visualization.

LAStools txt2las for converting ASCII files to .las is free and open source:

Converts LIDAR data from a standard ASCII format into the more efficient binary LAS/LAZ/BIN representations.

Another option for .las conversion is PDAL translate (see example 3).

The translate command can be used for simple conversion of files based on their file extensions.

More useful info: PDAL readers.text and reading with PDAL.


On the other hand, if you really want/need to work with ASCII files, one option to grid them is gdal_grid:

Creates regular grid from the scattered data.

Read the 'Reading comma separated value' section.

If one really wants/needs to work with ASCII files, one option to grid them is gdal_grid:

Creates regular grid from the scattered data.

Read the 'Reading comma separated value' section.


On the other hand, I'd convert the ASCII files to .las (or .laz) which is the standard LiDAR point cloud format, then would proceed processing from there (especially if this is not a one-time only processing and/or other types of processing are due as well).

Because working with .las is faster; better for storage (more compact); and can take more information (see for example, Benefits of *.las vs *.xyz or *.ascii when working with LiDAR in ArcGIS for Desktop?). Besides, it has more and better software options for processing and visualization.

LAStools txt2las converts ASCII files to .las is free and open source:

Converts LIDAR data from a standard ASCII format into the more efficient binary LAS/LAZ/BIN representations.

Another option is PDAL translate (see example 3):

The translate command can be used for simple conversion of files based on their file extensions.

More useful info in PDAL readers.text and reading with PDAL.

Source Link
Andre Silva
  • 10.3k
  • 12
  • 55
  • 109
Loading