Remove Trade Area Overlap (Business Analyst)

许可等级:BasicStandardAdvanced

摘要

Removes overlap (cannibalization) between trade areas

插图

Trade Area overlap Drive Time wide

用法

语法

RemoveTAOverlap_ba (InputFeatureLayer, AssociatedStoreID, {CenterOfTA}, ApproachToRemoveOverlap, OutputFeatureClass, {StoreLayer}, {StoreIDField}, {WayToDefineWeights}, {WeightField})
参数说明数据类型
InputFeatureLayer

The input features containing the overlapping trade areas.

Feature Layer
AssociatedStoreID

Unique ID field in the trade area layer.

Field
CenterOfTA
(可选)

Field used to define the way a centroid is derived.

  • USE CENTROIDUses the geographic centroid of the trade areas. This is the default.
  • USE_STORE_LAYERUses the existing store layer for the centroid of the trade areas.
String
ApproachToRemoveOverlap

Defines the approach used to remove overlap between trade areas.

  • THIESSEN_POLYGONSRemoves the overlap by drawing straight lines of equal distance between two adjacent polygons. This is the default.
  • GRIDTakes into account weights of the stores and shape of the overlapping polygon to make the division more natural.
String
OutputFeatureClass

The feature class containing the new trade area features.

Feature Class
StoreLayer
(可选)

The input features containing center points for the overlapping trade areas. In most cases, this will be a Business Analyst store layer.

Feature Layer
StoreIDField
(可选)

Unique ID field in the store layer.

Field
WayToDefineWeights
(可选)

Method for removing overlap when using the grid approach.

  • USE_AREA_OF_TAUses the trade area as a weight. This is the default.
  • USE_WEIGHT_FIELDGives the option to select a numeric variable from the store layer as the weight for the trade area to remove the overlap.
  • EQUAL_WEIGHTSUses the actual midpoint of the intersecting grid line to remove the overlap.
String
WeightField
(可选)

Field used to determine how the trade area overlap is influenced. Used when the grid approach and the weight definition method are set to USE_WEIGHT_FIELD.

Field

代码实例

RemoveTAOverlap Example (Stand-alone Script)
# Name: RemoveTAOverlap.py
# Description: Removes overlap between selected trade areas.
# Author: Esri

# Import system modules
import arcview
import arcpy

arcpy.AddToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.2\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business") 
 
# Define input and output parameters for the Remove Trade Area Overlap tool
  Path = "C:/temp/overlap.shp"
  IdFld = "<none>"
  OutPath = "C:/temp/RAPolygon.shp"
 
# Remove overlap based on trade areas
  arcpy.RemoveTAOverlap_ba(Path, IdFld, "USE_CENTROID", "THIESSEN_POLYGONS", OutPath)
 
# Release extension license 
  arcpy.CheckInExtension("Business")
 
except:
  print arcpy.GetMessages(2)

环境

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

相关主题

许可信息

ArcGIS for Desktop Basic: 需要 Business Analyst
ArcGIS for Desktop Standard: 需要 Business Analyst
ArcGIS for Desktop Advanced: 需要 Business Analyst
4/27/2014