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

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

Spatial Overlay

获得 Business Analyst 许可后可用。

  • 描述
  • 插图
  • 使用方法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

描述

Aggregates data from one layer to another. For example, you can summarize block group demographic data for a set of trade areas.

Learn more about how Spatial Overlay works

插图

Spatial Overlay apportionment

使用方法

  • The input layer must be properly formatted using the Analysis Layer Setup tool in Business Analyst with appropriate apportionment values applied.

  • The input layer contains the underlying data you want to extract.

  • Data is added to the overlay layer. Data is extracted from the input layer and aggregated into the overlay layer.

  • You can aggregate from a point- or polygon-based input layer.

  • A file called Ratios Table.dbf will be created and added in the same directory of the output overlay layer. This ratios table contains the percentage of intersection and weights used to execute the overlay.

  • Don't run a spatial overlay analysis if ArcMap is still redrawing your map. This may cause a problem with ArcMap and result in ArcMap crashing.

语法

arcpy.ba.SpatialOverlay(InputFeatureLayer, OverlayLayer, SelectedSummarizations, OutputFeatureClass, {SpatialOverlayAppendData}, {UseSelectedFeatures})
参数说明数据类型
InputFeatureLayer

The input feature layer that contains the data to be extracted.

Feature Layer
OverlayLayer

The overlay layer that inherits the data.

Feature Layer
SelectedSummarizations
[SelectedSummarization,...,...]

Selects any variable from the input layer on which to run the spatial overlay.

String
OutputFeatureClass

The feature class that will contain the overlay features.

Feature Class
SpatialOverlayAppendData
(可选)

The selected variables can be appended to the overlay layer.

  • TRUE —Appends data to layer.
  • FALSE —Will not append data to layer. This is the default.
Boolean
UseSelectedFeatures
(可选)

The boundaries used to generate the spatial overlay.

  • TRUE —Generates a spatial overlay on selected boundaries.
  • FALSE —Generates a spatial overlay on all boundaries. This is the default.
Boolean

代码示例

SpatialOverlay example (stand-alone script)

# Name: SpatialOverlay.py
# Description: Appends total population and total households to a trade area. 
# Author: Esri

# Import system modules
import arcview
import arcpy

arcpy.ImportToolbox(r"C:\Program Files (x86)\ArcGIS\Desktop10.8\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")

try:
# Acquire extension license
  arcpy.CheckOutExtension("Business") 
 
# Define input and output parameters for the Spatial Overlay tool
# Please note that your paths may be different.
  InputFeatureLayer = "C:/ArcGIS/Business Analyst/US_2022/Data/Demographic Data/BlockGroups_bg.bds"
  OverlayLayer = "C:/temp/TradeArea.shp"
  SelectedSummarizations = "TOTPOP_CY;HHPOP_CY"
  OutputFeatureClass = "C:/temp/overlayoutput.shp"
 
# Create Spatial Overlay output file
  arcpy.SpatialOverlay_ba(InputFeatureLayer, 
	OverlayLayer, 
	SelectedSummarizations, 
	OutputFeatureClass)
 
# Release extension license 
arcpy.CheckInExtension("Business")

环境

此工具不使用任何地理处理环境。

许可信息

  • Basic: 需要 Business Analyst
  • Standard: 需要 Business Analyst
  • Advanced: 需要 Business Analyst

相关主题

  • An overview of the Business Analyst Analysis toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

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

关于 Esri

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