ポイント ファイルの空間統計情報(Point File Information) (3D Analyst)

サマリ

1 つ以上のポイント ファイルに関する統計情報を含む新しい出力フィーチャクラスを生成します。

Point file information output

使用法

構文

PointFileInformation_3d (input, out_feature_class, in_file_type, file_suffix, {input_coordinate_system}, {summarize_by_class_code}, {folder_recursion}, {extrude_geometry}, {decimal_separator})
パラメータ説明データ タイプ
input

1 つ以上のポイント データ ファイルまたはフォルダ。

File; Folder
out_feature_class

出力フィーチャクラス。

Feature Class
in_file_type

入力ファイルの形式。入力ファイルは LAS、XYZ、XYZI、GENERATE のいずれかの形式でなければなりません。

String
file_suffix

入力に対してフォルダが指定されている場合にインポートするファイルの接尾辞。

String
input_coordinate_system
(オプション)

入力データの座標系。

Coordinate System
summarize_by_class_code
(オプション)

LAS ファイルをスキャンして、クラス コード値を解析します。出力フィーチャクラスの属性テーブルには、検出された各クラス コードの統計情報が格納されます。

  • NO_ SUMMARIZELAS ファイルはクラス コード値を基にして解析されません。これがデフォルトです。
  • SUMMARIZELAS ファイルはクラス コード値を基にして解析されます。出力フィーチャクラスの属性テーブルには、検出された各クラス コードの統計情報が格納されます。
Boolean
folder_recursion
(オプション)

サブフォルダ ディレクトリにデータの格納された入力フォルダが選択されたときに、サブフォルダまでスキャンします。出力フィーチャクラスは、ディレクトリ構造で検出された各ファイルの行で生成されます。

  • NO_RECURSION選択した入力フォルダのサブフォルダはスキャンされず、検出されたデータ ファイルを使用して結果が生成されます。これがデフォルトです。
  • RECURSION選択した入力フォルダのサブフォルダがスキャンされ、検出されたデータ ファイルを使用して結果が生成されます。
Boolean
extrude_geometry
(オプション)

3D マルチパッチ フィーチャクラスが、各入力ファイルの最小 Z 値と最大 Z 値に基づいて生成されます。

  • NO_EXTRUSION3D マルチパッチ フィーチャクラスは出力として生成されません。これがデフォルトです。
  • EXTRUSION3D マルチパッチ フィーチャクラスが出力として生成されます。
Boolean
decimal_separator
(オプション)

ASCII ファイルで使用される区切り記号。デフォルトは小数点です。ファイル内で使用する小数点記号をポイントにするのか、カンマにするのかをユーザが宣言できます。

String

コードのサンプル

Point File Information(ポイント ファイルの空間統計情報)の例 1(Python ウィンドウ)

次の Python ウィンドウ スクリプトは、イミディエイト モードで Point File Information(ポイント ファイルの空間統計情報)関数を使用する方法を示しています。

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(ポイント ファイルの空間統計情報)の例 2(スタンドアロン スクリプト)

次の Python スクリプトは、スタンドアロン スクリプトで Point File Information(ポイント ファイルの空間統計情報)関数を使用する方法を示しています。

'''****************************************************************************
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)

環境

関連項目

ライセンス情報

ArcView: 必須 3D Analyst
ArcEditor: 必須 3D Analyst
ArcInfo: 必須 3D Analyst

7/10/2012