ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • ヘルプ
  • Sign Out
ArcGIS Desktop

ArcGIS Online

組織のマッピング プラットフォーム

ArcGIS Desktop

完全なプロ仕様の GIS

ArcGIS Enterprise

エンタープライズ GIS

ArcGIS Developers

位置情報利用アプリの開発ツール

ArcGIS Solutions

各種業界向けの無料のテンプレート マップおよびテンプレート アプリケーション

ArcGIS Marketplace

組織で使えるアプリとデータを取得

  • ドキュメント
  • サポート
Esri
  • サイン イン
user
  • マイ プロフィール
  • サイン アウト

ArcMap

  • ホーム
  • はじめに
  • マップ
  • 解析
  • データ管理
  • ツール
  • エクステンション

RemapRange

Spatial Analyst のライセンスで利用可能。

  • 概要
  • 図
  • ディスカッション
  • 構文
  • プロパティ
  • コードのサンプル

概要

出力ラスタで再分類される入力値の範囲を指定するリスト。

図

RemapRange 再分類テーブルの例を示す図
再分類関数のための RemapRange 再分類テーブルの例

ディスカッション

RemapRange オブジェクトは、[再分類(Reclassify)] ツール および WOTable クラスで使用することができます。

再分類のための入力値には、整数または浮動小数点のいずれかを使用できます。

startValue から endValue の範囲を指定するための newValue として、NoData(文字列)を入力することによって、古い値を NoData に割り当てることができます。

値の範囲での再分類は、通常、入力値が連続値(標高または距離など)の場合、または前述の土地利用の例のように、カテゴリ データのグループを変更する場合に行います。

個々の値を新しい値に再分類するには、startValue と endValue を同じ値(再分類対象の値)にします。

入力値の範囲が 2 つの入力範囲の境界以外で重なり合うことはできません。入力範囲が重なり合う場合は、次のように、より低い入力範囲の上限値はそれに含められ、より高い入力範囲の下限値はそれに含められません。次に例を示します。

1 3 : 5   (where  1 <= value <= 3, values remapped to 5)
3 5 : 3   (where  3 <  value <= 5, values remapped to 3)
5 7 : 1   (where  5 <  value <= 7, values remapped to 1)

構文

 RemapRange (remapTable)
パラメーター説明データ タイプ
remapTable
[[startValue, endValue, newValue],...]

The remap table to be used to remap the old values (specified by ranges) to new values.

It defines a list of input values, specified by ranges, to be reclassified to new values. It is a list of lists, with the inner lists being composed of three components.

The components are:

  • startValue—The lower boundary of the range of values to be assigned a new output value. (data type: double)
  • endValue—The upper boundary of the range of values to be assigned a new output value. (data type: double)
  • newValue—The new value to be assigned to the range of input values defined by the start and end values. (data type: integer)

List

プロパティ

プロパティ説明データ タイプ
remapTable
(読み書き)

The remap table that is used to remap the original values to new values.

List

コードのサンプル

RemapRange(範囲の再分類)の例 1(Python ウィンドウ)

Python ウィンドウ内で RemapRange クラスを作成し、それを [再分類(Reclassify)] ツールで使用する方法を示します。

import arcpy
from arcpy import env
from arcpy.sa import *
env.workspace = "C:/sapyexamples/data"
myRemapRange = RemapRange([[-3, 0, 0], [0, 1.75, 25], [1.75, 3.5, 50],
                            [3.5, 5.25, 75], [5.25, 7, 100]])
outReclassRR = Reclassify("inreclass", "VALUE", myRemapRange)
outReclassRR.save("C:/sapyexamples/output/rclassremran")
RemapRange(範囲の再分類)の例 2(スタンドアロン スクリプト)

RemapRange クラスを使用して再分類を実行します。

# Name: RemapRange_Ex_02.py
# Description: Uses the RemapRange object to execute Reclassify tool.
# Requirements: Spatial Analyst Extension

# Import system modules
import arcpy
from arcpy import env
from arcpy.sa import *

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

# Set local variables
inRaster = "inreclass"

# Define the RemapValue Object 
myRemapRange = RemapRange([[-3, -1.75, 1], [-1.75, -0.5, 2], [-0.5, 0.75, 3],
                            [0.75, 2, 4], [2, 3.25, 5], [3.25, 4.5, 6],
                            [4.5, 5.75, 7], [5.75, 7, 8]])

# Check out the ArcGIS Spatial Analyst extension license
arcpy.CheckOutExtension("Spatial")

# Execute Reclassify
outReclassRR = Reclassify(inRaster, "VALUE", myRemapRange)

# Save the output 
outReclassRR.save("C:/sapyexamples/output/reclassreran2")

関連トピック

  • An overview of Spatial Analyst classes
  • An overview of Remap classes
  • 再分類について
  • 値の範囲による再分類

ArcGIS Desktop

  • ホーム
  • ドキュメント
  • サポート

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Esri について

  • 会社概要
  • 採用情報
  • Esri ブログ
  • ユーザ カンファレンス
  • デベロッパ サミット
Esri
ご意見・ご感想をお寄せください。
Copyright © 2021 Esri. | プライバシー | リーガル