Label | Explanation | Data Type |
Input LAS | The .las, .zlas, or .laz files that will be converted. Multiple files can be processed by specifying the folder containing the files or a LAS dataset. | Layer File; LAS Dataset Layer; Folder; File |
Target Folder
| The existing folder to which the output files will be written. | Folder |
File Version
(Optional) | Specifies the file version that will be used for the output files.
| String |
Point Format
(Optional) | Specifies the point record format that will be used for the output files. The available options will vary based on the output LAS format file version.
| String |
Compression
(Optional) | Specifies whether the output files will be stored in a compressed or uncompressed format.
| String |
LAS Options (Optional) | Specifies modifications that will be made to the output files that will reduce their size and improve their performance in display and analysis.
| String |
Output LAS Dataset
(Optional) | The output LAS dataset referencing the newly created .las files. | LAS Dataset |
Define Input Coordinate System
(Optional) | Specifies how the coordinate system of each input file will be defined.
| String |
Input Coordinate System
(Optional) | The coordinate system that will be used to define the spatial reference of some or all input files based on the selection made in the Define Input Coordinate System parameter. | Coordinate System |
Summary
Converts .las, .zlas, and .laz files between different LAS compression methods, file versions, and point record formats.
Usage
This tool can convert lidar data stored in the LAS format or the ZLAS and LAZ compressions. The output files can also be created in a different .las file version and point record format that support a larger set of classification codes and flags. For example, a file created under the 1.1 version with point record format 0 can be updated to the 1.4 version with point record format 6, but a version 1.4 file cannot be converted to an older version. Attributes from the input .las files that are not supported in the output point format will be lost.
Many .las, .zlas, and .laz files store the points in a manner that does not correspond with the spatial distribution of the data, resulting in a degraded display and analysis performance when reading the relatively scattered point records in a given spatial extent. The magnitude of this performance impact is worsened by the size of the file being read, such that a large file with scattered records will take longer to process than a smaller file. It is recommended that you create the output files using the LAS Options parameter's Rearrange Points option so that the binary records are stored in spatial clusters that are optimized for data access, as this will usually improve performance. Rearranging points will extend this tool's overall processing time, as an intermediate .las file is created in the process, but the long-term advantages typically outweigh its one-time impact during file creation. The rearranged state of the data is also preserved in the .las file header and communicated in the .las file properties on the LAS dataset properties dialog box.
If the classification information of the data being converted will need to be updated in the future, ensure that the output files are created as uncompressed .las files, as they are the only files whose classification codes and flags can be modified.
Parameters
arcpy.conversion.ConvertLas(in_las, target_folder, {file_version}, {point_format}, {compression}, {las_options}, {out_las_dataset}, {define_coordinate_system}, {in_coordinate_system})
Name | Explanation | Data Type |
in_las | The .las, .zlas, or .laz files that will be converted. Multiple files can be processed by specifying the folder containing the files or a LAS dataset. | Layer File; LAS Dataset Layer; Folder; File |
target_folder | The existing folder to which the output files will be written. | Folder |
file_version (Optional) | Specifies the file version that will be used for the output files.
| String |
point_format (Optional) | Specifies the point record format that will be used for the output files. The available options will vary based on the output LAS format file version.
| String |
compression (Optional) | Specifies whether the output files will be stored in a compressed or uncompressed format.
| String |
las_options [las_options,...] (Optional) | Specifies modifications that will be made to the output files that will reduce their size and improve their performance in display and analysis.
| String |
out_las_dataset (Optional) | The output LAS dataset referencing the newly created .las files. | LAS Dataset |
define_coordinate_system (Optional) |
Specifies how the coordinate system of each input file will be defined.
| String |
in_coordinate_system (Optional) | The coordinate system that will be used to define the spatial reference of some or all input files based on the selection made in the define_coordinate_system parameter. | Coordinate System |
Code sample
The following sample demonstrates the use of this tool in the Python window.
import arcpy
arcpy.conversion.ConvertLas('2014_survey.zlas', '2014_unclassified_collection',
'1.4', 7, 'NO_COMPRESSION',
['REMOVE_VLR', 'REMOVE_EXTRA_BYTES', 'REARRANGE_POINTS'],
'2014_unclassified_collection/2014_Survey_Collection.lasd')
Environments
Licensing information
- Basic: Requires Spatial Analyst or 3D Analyst
- Standard: Yes
- Advanced: Yes