ラスタ → マルチポイント(Raster to Multipoint) (3D Analyst)

サマリ

Z 値にラスタ セルの値が反映されるマルチポイント フィーチャにラスタ セルの中心を変換します。

使用法

構文

RasterToMultipoint_3d (in_raster, out_feature_class, {out_vip_table}, {method}, {kernel_method}, {z_factor})
パラメータ説明データ タイプ
in_raster

The input raster.

Raster Layer
out_feature_class

The output feature class.

Feature Class
out_vip_table
(オプション)

[メソッド] パラメータに VIP ヒストグラムが指定されたときに作成されるヒストグラム テーブル

Table
method
(オプション)

マルチポイント フィーチャクラスの生成に適用する間引き処理

  • NO_THIN新しいマルチポイント フィーチャクラスに最大解像度のデータが出力されます。
  • ZTOLERANCE入力ラスタの高さと出力マルチポイント フィーチャの高さの最大許容差(Z 単位)。デフォルトでは、Z 許容値は入力ラスタの Z 範囲の 1/10 です。許容値を大きくするほど、間引きの対象が多くなり、出力されるポイントが少なくなります。
  • KERNEL1 ウィンドウあたりのセルの数を定義します。デフォルトは 3 で、これは入力ラスタの 3 x 3 のセルを表します。このウィンドウごとに、各セルの値が評価されます。続いて、KERNEL の選択方法に応じて 1 つまたは 2 つのセルだけが選択されます。カーネルのサイズを大きくするほど、間引きの対象が多くなり、出力されるポイントが少なくなります。
  • VIP入力ラスタからポイントに変換する割合を、重大度に基づいて選択します。重大度は、移動可能な 3 x 3 のウィンドウを使用して評価されます。
  • VIP_HISTOGRAM実際の重大度の値と、これらの値に関連している対応するポイントの数を表示するテーブルを作成します。
String
kernel_method
(オプション)

[メソッド] パラメータに KERNEL の間引き処理を指定したときにポイントを作成するための選択方法

  • MINカーネル近傍の最小標高値を持つセルでポイントが作成されます。これがデフォルトです。
  • MAXカーネル近傍の最大標高値を持つセルでポイントが作成されます。
  • MINMAXカーネル近傍の最小および最大標高値を持つセルで 2 つのポイントが作成されます。
  • MEAN標高がカーネル近傍のセルの平均に最も近いセルでポイントが作成されます。
String
z_factor
(オプション)

ラスタの標高を乗算するのに使用する係数通常は、フィートとメートルの単位を変換するために使用します。

Double

コードのサンプル

RasterToMultipoint(ラスタ → マルチポイント)の例 1(Python ウィンドウ)

The following sample demonstrates the use of this tool in the Python window:

import arcpy
from arcpy import env

arcpy.CheckOutExtension("3D")
env.workspace = "C:/data"
arcpy.RasterToMultipoint_3d("elevation.tif", "","elev_VIP.dbf", "VIP_HISTOGRAM", "", "1")
RasterToMultipoint(ラスタ → マルチポイント)の例 2(スタンドアロン スクリプト)

The following sample demonstrates the use of this tool in a stand-alone Python script:

'''*********************************************************************
Name: RasterToMultipoint Example
Description: This script demonstrates how to use
             the RasterToMultipoint tool to create multipoint datasets
             fot all IMG rasters in a target workspace.
**********************************************************************'''
# Import system modules
import arcpy
from arcpy import env
import exceptions

try:
    arcpy.CheckOutExtension("3D")
    # Set default workspace
    env.workspace = "C:/data"
    # Create the list of IMG rasters
    rasterList = arcpy.ListRasters("*", "IMG")
    # Loop the process for each raster
    if rasterList:
        for raster in rasterList:
            # Set Local Variables
            # [:-4] strips the last 4 characters (.img) from the raster name
            outTbl = "VIP_" + raster[:-4] + ".dbf"
            method = "VIP_HISTOGRAM"
            zfactor = 1
            #Execute RasterToMultipoint
            arcpy.ddd.RasterToMultipoint(raster, "",outTbl, method, "", zfactor)
    else:
        "There are no IMG rasters in the " + env.workspace + " directory."
except Exception as e:
    # Returns any other error messages
    print e.message

環境

関連項目

ライセンス情報

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

7/10/2012