オン—Each output feature will represent a single class code in the input .las or .zlas file. This option will require a complete scan of the input files.
オフ—Each output feature will represent all the class codes in the .las or .zlas file. This is the default.
SUMMARIZE—Each output feature will represent a single class code in the input .las or .zlas file. This option will require a complete scan of the input files.
NO_SUMMARIZE—Each output feature will represent all the class codes in the .las or .zlas file. This is the default.
LAS_SPACING—A regular point spacing estimate will be used for .las files in which the extent is equally divided by the number of points. This is the default.
NO_LAS_SPACING—Binning will be used to obtain a more precise point spacing estimate for .las files. This option may increase tool run time.
'''****************************************************************************
Name: PointFileInformation Example
Description: This script demonstrates how to use the
PointFileInformation tool to create an output file that contains
all LAS files under a parent folder.
****************************************************************************'''
# Import system modules
import arcpy
# Set environment settings
arcpy.env.workspace = "C:/data"
lidarList = arcpy.ListFiles("*.las")
if lidarList:
# Set Local Variables
outputFC = "Test.gdb/output_las_info"
prj = "Coordinate Systems/Geographic Coordinate Systems/World/WGS 1984.prj"
extrudeGeom = True # Indicates whether to create extruded geometry shapes
sumClass = True # Indicates whether to summarize output by class code
decSep = "DECIMAL_POINT" # Identifies the decimal separator
# Run PointFileInformation
arcpy.ddd.PointFileInformation(lidarList, outputFC, "LAS", "las", prj,
"", extrudeGeom, decSep, sumClass)
print("Finished running Point File Information.")
else:
print("There are no LAS files in {0}.".format(arcpy.env.workspace))