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

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

Extract And Clip Data

  • 概要
  • 使用法
  • 構文
  • コードのサンプル
  • 環境
  • ライセンス情報

概要

Extracts features from a source geodatabase that intersects the input area of interest features and adds them into a target geodatabase. The extracted data is then clipped to fall within the input area of interest features. For example, you can use this tool to clip data and add it to smaller databases for distribution.

Example of Extract And Clip Data tool

使用法

  • The features that are extracted are clipped to the selected area of interest polygon.

  • The newly extracted features can be copied to an empty geodatabase with no schema, and the new geodatabase will have the features and schema added from the extracted features. If the reuse target schema parameter is checked, the features will be copied to the existing target geodatabase schema.

構文

arcpy.defense.ExtractAndClipData(in_aoi_features, in_source_gdb, in_target_gdb, in_reuse_target_schema)
パラメーター説明データ タイプ
in_aoi_features

A feature layer that describes the processing extent. The feature layer must have one feature selected.

メモ:

The tool clips the outline of the AOI.

Feature Layer
in_source_gdb

Database that contains the source features to load into the target database.

Workspace
in_target_gdb

The source features will be loaded into this database.

Workspace
in_reuse_target_schema

Specifies if the source schema should be used as the target schema.

  • REUSE —The schema of the source database is not copied into the target database.
  • NO_REUSE —The schema of the source database is copied into the target database. This is the default.
Boolean

コードのサンプル

Extract And Clip Data example (Python window)

The following code sample demonstrates how to execute the tool.

# Importing arcpy
import arcpy

# Checking out extension
arcpy.CheckOutExtension('defense')

# Making AOI feature layer
Index = r'C:\Program Files (x86)\ArcGIS\EsriDefenseMapping\Desktop10.3\ReferenceData\MapIndex.gdb\MapIndex\TLM50_Index'
arcpy.management.MakeFeatureLayer(Index, "TLM50_Index")

# Selecting a single AOI from the AOI feature layer
selection_string = "NRN = 'V795X16573'"
arcpy.management.SelectLayerByAttribute("TLM50_Index", "NEW_SELECTION", selection_string)

# Setting variables to parameters
source_gdb = r'C:\Testing\ExtractTest\MGCP_TRD4.gdb'
target_gdb = r'C:\Testing\ExtractTest\ExtractTest.gdb'

# Calling Extract and Clip Data tool
arcpy.defense.ExtractAndClipData("TLM50_Index", source_gdb, target_gdb, "REUSE")

環境

  • テンポラリ ワークスペース
  • 現在のワークスペース

ライセンス情報

  • Basic: いいえ
  • Standard: 次のものが必要 Defense Mapping
  • Advanced: 次のものが必要 Defense Mapping

関連トピック

  • An overview of the Geodatabase toolset

ArcGIS Desktop

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

ArcGIS

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

Esri について

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