ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Extract AOI

  • 摘要
  • 用法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

摘要

Extracts data from an input database using selected areas of interest (AOI) and creates new databases for every AOI.

用法

  • At least one AOI feature must be selected.

  • If multiple AOI features are selected, the tool will create a separate database for each selected AOI. The resulting database only contains data that is contained in the selected AOI.

  • The resulting databases are named based on the NRN field of the AOI. For example, if you select the AOI feature with an NRN value of V795X16573, the output database will be named V795X16573.gdb.

  • The NRN field must be populated.

  • This tool is intended for clipping out a single AOI of data from the Input Datasets, making the data more manageable and portable.

语法

ExtractAOI(Area_of_Interest, Input_Datasets, Output_Directory)
参数说明数据类型
Area_of_Interest

The polygons used to define each database's clipped extent.

Feature Layer
Input_Datasets

Datasets from which the data will be extracted.

Value Table
Output_Directory

Location where the new databases will be created.

Folder

代码示例

ExtractAOI example (Python window)

This script demonstrates how to use the ExtractAOI tool.

# Name: ExtractAOI_sample.py
# Description: Extracts data from one database using selected areas of interest (AOIs), and creates new databases for each AOI
# Requirements: Esri Defense Mapping solution

# Import arcpy module
import arcpy

# Check out the extension
arcpy.CheckOutExtension('defense')

# Declare path to AOI features
AOIFeatures = r"C:\Program Files (x86)\ArcGIS\EsriDefenseMapping\Desktop10.3\ReferenceData\MapIndex.gdb\MapIndex\TLM50_Index"

# Create feature layers of the AOI
arcpy.management.MakeFeatureLayer(AOIFeatures, "AOIFeatures")

# Select specific AOIs
selection = "NRN = 'E732X57714'"
arcpy.management.SelectLayerByAttribute("AOIFeatures", "NEW_SELECTION", selection)

# Set parameters
Input_Datesets = r'C:\Data\MGCP_TRD_4_2.GDB\MGCP'
Output_Directory = r'C:\Data\Output'

# Execute the tool
arcpy.ExtractAOI_defense(Input_Datasets, AOIFeatures, Output_Directory)

# Check in the extension
arcpy.CheckInExtension('defense')

环境

  • 当前工作空间

许可信息

  • ArcGIS Desktop Basic: 否
  • ArcGIS Desktop Standard: 需要 Defense Mapping
  • ArcGIS Desktop Advanced: 需要 Defense Mapping

相关主题

  • An overview of the Geodatabase toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2019 Esri. | 隐私政策 | 法律声明