Measure Cannibalization (Business Analyst)

概要

Calculates the amount of overlap between two or more trade areas.

Learn more about how Measure Cannibalization works

Measure Cannibalization

使用法

構文

MeasureCannibalization_ba (InputLayer, IDField, NameField, OutputFeatureClass, {UseSelectedFeatures}, {ReportName}, {ReportTitle}, {ReportOutputDirectory}, {ReportFormats})
パラメータ説明データ タイプ
InputLayer

The input feature class containing the trade areas used to determine amount of cannibalization.

Feature Layer
IDField

Unique ID field in the trade area layer.

Field
NameField

Unique name field in the trade area layer.

Field
OutputFeatureClass

The output feature class that will contain the overlapped features.

Feature Class
UseSelectedFeatures
(オプション)

The features used to measure cannibalization.

  • TRUEMeasures cannibalization on selected features.
  • FALSEMeasures cannibalization on all features. This is the default.
Boolean
ReportName
(オプション)

Name of the report.

String
ReportTitle
(オプション)

Title of the report.

String
ReportOutputDirectory
(オプション)

Report is created in this output folder.

Folder
ReportFormats
(オプション)

One or more formats to which the report will be output.

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

コード サンプル

MeasureCannibalzation Example (Stand-alone Script)
# Name: MeasureCannibalization.py
# Description: Measures cannibalization between two trade areas.
# Author: ESRI

# Import system modules
import arcview
import arcpy

arcpy.AddToolbox("C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business") 
 
# Define input and output parameters for the Measure Cannibalization tool
  TradeArea = "C:/temp/DetailedCustomerTA.shp"
  Id = "AREA_ID"
  Name = "AREA_DESC"
  Output = "C:/temp/Reports/Cannibalization.shp"
  ReportName = "Cannibalization_Name"
  ReportTitle = "Cannibalization_Report"
  ReportOutput = "C:/temp/Reports"
 
# Create a Measure Cannibalization output
  arcpy.MeasureCannibalization_ba(sTradeArea, sId, sName, sOutput, "false", sReportName, sReportTitle, sReportOutput)
 
# Release extension license   
  arcpy.CheckInExtension("Business") 
 
except:
  print arcpy.GetMessages(2)

環境

このツールは、ジオプロセシング環境では使用できません

関連項目

ライセンス情報

ArcView: 要 Business Analyst
ArcEditor: 要 Business Analyst
ArcInfo: 要 Business Analyst

10/4/2010