Point File Information (3D Analyst)

Summary

Generates a new output feature class containing statistical information about one or more point files.

Illustration

Point file information output

Usage

Syntax

PointFileInformation_3d (input, out_feature_class, in_file_type, file_suffix, {input_coordinate_system}, {summarize_by_class_code}, {folder_recursion}, {extrude_geometry}, {decimal_separator})
ParameterExplanationData Type
input

One or more point data files or folders.

File; Folder
out_feature_class

The output feature class.

Feature Class
in_file_type

The format of the input file(s). Input file(s) must be in either a LAS, XYZ, XYZI, or GENERATE format.

String
file_suffix

The suffix of the files to import when a folder is specified on input.

String
input_coordinate_system
(Optional)

The coordinate system of the input data.

Coordinate System
summarize_by_class_code
(Optional)

Scans through the LAS files and analyzes the class code values. The attribute table of the output feature class will contain statistical information for each class code encountered.

  • NO_ SUMMARIZEThe LAS files will not be analyzes based on the class code values. This is the default.
  • SUMMARIZEThe LAS files will be analyzes based on the class code values. The attribute table of the output feature class will contain statistical information for each class code encountered.
Boolean
folder_recursion
(Optional)

Scans through subfolders when an input folder is selected containing data in a subfolders directory. The output feature class will be generated with a row for each file encountered in the directory structure.

  • NO_RECURSIONThe subfolders of the selected input folder will not be scanned and the data files encountered will be used to generate the results. This is the default.
  • RECURSIONThe subfolders of the selected input folder will be scanned and the data files encountered will be used to generate the results.
Boolean
extrude_geometry
(Optional)

A 3D multipatch feature class will be generated based on the z minimum / maximum values of each input file.

  • NO_EXTRUSIONA 3D multipatch feature class will not be generated as output. This is the default.
  • EXTRUSIONA 3D multipatch feature class will be generated as output.
Boolean
decimal_separator
(Optional)

Separator symbol used in ASCII files. The default is decimal point. Allows user to declare if decimal symbol used in file(s) is a point or comma.

String

Code Sample

Point File Information Example 1 (Python window)

The following Python Window script demonstrates how to use the Point File Information function in immediate mode.

import arcpy
from arcpy import env

arcpy.CheckOutExtension("3D")
env.workspace = "C:/data"
arcpy.PointFileInformation_3d(env.workspace, "Test.gdb/two_las", "LAS", "las", "Coordinate Systems/Projected Coordinate Systems/UTM/NAD 1983/NAD 1983 UTM Zone 17N.prj", True, True, "DECIMAL_POINT", True)
Point File Information Example 2 (stand-alone script)

The following Python script demonstrates how to use the Point File Information function in a stand-alone script.

'''****************************************************************************
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
from arcpy import env
import exceptions, sys, traceback

try:
    # Obtain a license for the ArcGIS 3D Analyst extension
    arcpy.CheckOutExtension("3D")
    # Set environment settings
    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
        #Execute PointFileInformation
        arcpy.PointFileInformation_3d(lidarList, outputFC, "LAS", "las", prj, 
                                    "", extrudeGeom, decSep, sumClass)
        print "Finished executing Point File Information."
    else:
        print "There are no LAS files in {0}.".format(env.workspace)

except arcpy.ExecuteError:
    print arcpy.GetMessages()
except:
    # Get the traceback object
    tb = sys.exc_info()[2]
    tbinfo = traceback.format_tb(tb)[0]
    # Concatenate error information into message string
    pymsg = 'PYTHON ERRORS:\nTraceback info:\n{0}\nError Info:\n{1}'\
          .format(tbinfo, str(sys.exc_info()[1]))
    msgs = 'ArcPy ERRORS:\n {0}\n'.format(arcpy.GetMessages(2))
    # Return python error messages for script tool or Python Window
    arcpy.AddError(pymsg)
    arcpy.AddError(msgs)

Environments

Related Topics

Licensing Information

ArcView: Requires 3D Analyst
ArcEditor: Requires 3D Analyst
ArcInfo: Requires 3D Analyst

6/10/2013