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

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

Monitor Trade Area Change

获得 Business Analyst 许可后可用。

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

描述

Creates a new feature class and report that analyze how trade areas have changed over time

Learn more about how Monitor Trade Area Change works

插图

Measure Trade Area Change Wide

使用方法

  • The spatial reference of the output feature class will be the same as the first trade area layer.

  • Both trade area layers must be polygon feature classes.

  • This tool is primarily used to track changes in trade areas over time.

  • This tool is most often used with customer-derived trade areas that have been created with customer data captured at two different time periods or for different product groups.

  • In most cases, the trade area layers will be trade areas created with ESRI Business Analyst.

  • Only overlapping trade areas are valid inputs for this tool.

  • If no store layer is defined, the geographic center of the trade area will be used to calculate the index of similarity.

语法

arcpy.ba.MonitorTradeAreaChange(InputLayerParameterName1, IDFieldParameterName1, NameFieldParameterName1, InputLayerParameterName2, IDFieldParameterName2, NameFieldParameterName2, ReportNameParameterName, ReportTitleParameterName, ReportOutputDirectoryParameterName, OutputFeatureClass, {StoreLayerParameterName}, {StoreIDFieldParameterName}, {TAStoreIDFieldParameterName}, {ReportFormats})
参数说明数据类型
InputLayerParameterName1

The first trade area used in the Monitor Trade Area Change tool. This trade area will be compared to the second trade area to determine the amount of overlap.

Feature Layer
IDFieldParameterName1

The unique ID for the first trade area.

Field
NameFieldParameterName1

The unique name for the first trade area.

Field
InputLayerParameterName2

The second trade area used in the Monitor Trade Area Change tool. This trade area will be compared to the first trade area to determine the amount of overlap.

Field
IDFieldParameterName2

The unique ID for the second trade area.

Feature Layer
NameFieldParameterName2

The unique name for the second trade area.

Field
ReportNameParameterName

Name of the report.

String
ReportTitleParameterName

Title of the report.

String
ReportOutputDirectoryParameterName

Report is created in this output folder.

Folder
OutputFeatureClass

The output feature class that will contain the trade area overlap features.

Feature Class
StoreLayerParameterName
(可选)

The layer used for each trade area to calculate an index of similarity. In most cases, this will be a Business Analyst store layer.

Feature Layer
StoreIDFieldParameterName
(可选)

The unique ID for the store layer.

Field
TAStoreIDFieldParameterName
(可选)

The ID field that associates the store layer with the trade area layer.

Field
ReportFormats
[ReportFormats,...]
(可选)

Select the desired report output format

  • Simple XML
  • PDF
  • HTML
  • CSV
  • ZIP
  • XLSX
  • Stripped XLSX
String

代码示例

MonitorTradeAreaChange Example (Stand-alone Script)
# Name: MonitorTradeAreaChange.py
# Description: Calculates the percent change between two overlapping trade areas.
# Author: Esri

# Import system modules
import arcview
import arcpy

arcpy.AddToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.3\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business") 

# Define input and output parameters for the Monitor Trade Area Change tool    
  TradeArea1 = "C:/temp/TradeArea1.shp"
  ID1 = "AREA_ID"
  Name1 = "NAME"
  TradeArea2 = "C:/temp/TradeArea2.shp"
  ID2 = "AREA_ID"
  Name2 = "NAME"
  RptName = "Monitor TA Report Name"
  RptTitle = "Monitor TA Report Title"
  RptPath = "C:/temp/Reports"
  Output = "C:/temp/Output_TAChange.shp"
 
# Create a Monitor Trade Area output
  arcpy.MonitorTradeAreaChange_ba(TradeArea1, ID1, Name1, TradeArea2, ID2, Name2, RptName, RptTitle, RptPath, Output)
 
# Release extension license 
  arcpy.CheckInExtension("Business") 
 
except:
  print arcpy.GetMessages(2)

环境

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

许可信息

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

相关主题

  • An overview of the Trade Areas toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

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

关于 Esri

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