フィーチャ → ライン(Feature to Line) (データの管理)

サマリ

ポリゴン境界線をラインへ変換するか、ライン フィーチャまたはポリゴン フィーチャ、またはその両方をフィーチャの交点で分割することで生成されるラインを含むフィーチャクラスを作成します。

Feature To Line illustration

使用法

構文

FeatureToLine_management (in_features, out_feature_class, {cluster_tolerance}, {attributes})
パラメータ説明データ タイプ
in_features
[in_features,...]

ラインまたはポリゴン、またはその両方である入力フィーチャ。

Feature Layer
out_feature_class

出力ライン フィーチャクラス。

Feature Class
cluster_tolerance
(オプション)

すべてのフィーチャ座標の最短距離、および空間計算の間に X 方向、Y 方向、XY 方向に座標を移動できる距離。デフォルトの XY 許容値は、0.001 メートル、またはフィーチャ単位でそれに相当する値に設定されます。

Linear unit
attributes
(オプション)

入力属性を出力フィーチャクラスに保存するか、しないかを指定します。

  • ATTRIBUTES入力属性を出力フィーチャに保存します。これがデフォルトです。
  • NO_ATTRIBUTES入力属性を出力フィーチャに保存しません。
Boolean

コードのサンプル

FeatureToLine(フィーチャ → ライン)の例 1(Python ウィンドウ)

次の Python ウィンドウ スクリプトは、イミディエイト モードで FeatureToLine(フィーチャ → ライン)関数を使用する方法を示しています。

import arcpy
from arcpy import env
env.workspace = "C:/data"
arcpy.FeatureToLine_management(["majorrds.shp", "habitat_analysis.gdb/futrds"],
                               "c:/output/output.gdb/allroads",
                               "0.001 Meters", "ATTRIBUTES")
FeatureToLine(フィーチャ → ライン)の例 2(スタンドアロン スクリプト)

次のスタンドアロン スクリプトは、FeatureToLine(フィーチャ → ライン)関数をスクリプティング環境に適用する単純な例を示しています。

# Name: FeatureToLine_Example2.py
# Description: Use FeatureToLine function to combine features from two 
#                  street feature classes into a single feature class,
#                  then determine an area of impact around all streets
#                  by buffering
# Author: ESRI

# import system modules 
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"

#  Set local variables
oldStreets = "majorrds.shp"
newStreets = "habitat_analysis.gdb/futrds"
uptodateStreets = "c:/output/output.gdb/allroads"

# Use FeatureToLine function to combine features into single feature class
arcpy.FeatureToLine_management([oldStreets, newStreets], uptodateStreets,
                               "0.001 Meters", "ATTRIBUTES")

# Use Buffer function to determine area of impact around streets
roadsBuffer = "c:/output/output.gdb/buffer_output"
arcpy.Buffer_analysis(uptodateStreets, roadsBuffer, "50 Feet",
                      "FULL", "ROUND", "ALL")

環境

関連項目

ライセンス情報

ArcView: いいえ
ArcEditor: いいえ
ArcInfo: はい

7/10/2012