Find Similar (Business Analyst)

Уровень лицензии:BasicStandardAdvanced

Краткая информация

Scores potential sites or trade areas against an existing well-performing master site.

Learn more about how Find Similar works

Использование

Синтаксис

FindSimilar_ba (InputFeatureLayer, MasterSite, OutputFeatureClass, {UserDefineRadiuses}, {MeasureUnits}, {BDSFeatureClass}, {UseOrdinaryFS}, {UseOrdinaryFSVals}, {PCAFields}, {UserDefinedBoundVal}, {FSRankFeatNum}, {FSUseMasterSitesLayer}, {FSMasterSitesLayer}, {FSFieldMap}, {UseOnlineData})
ПараметрОбъяснениеТип данных
InputFeatureLayer

The input features containing the data to be ranked based on similarity. The input features class points (stores) or polygons (trade areas).

Feature Layer
MasterSite

The primary feature that will determine how the site-scoring variables are ranked against other features in the target layer. The master site is chosen from one of the target layers.

String
OutputFeatureClass

The output feature class that will contain the Find Similar features. The output feature class will be ranked based on similarity to the master site.

Feature Class
UserDefineRadiuses
(дополнительно)

Defines the extent at which the demographics will be queried around the master site and the points in the target layer. This is only used if you have selected a point layer as the target layer.

Double
MeasureUnits
(дополнительно)

Defines how distance is measured in the Radius.

  • Decimal Degrees
  • Feet
  • Kilometers
  • Meters
  • MilesThis is the default
  • Nautical Miles
  • Yards
String
BDSFeatureClass
(дополнительно)

The data layer containing the variables (commonly ESRI demographic data) that will be used to determine how each site is ranked.

Feature Layer
UseOrdinaryFS
(дополнительно)

Determines if the conventional Find Similar approach is used.

  • TrueUses the conventional Find Similar approach.
  • FalseUses the Principal Component Analysis approach. This is the default
Boolean
UseOrdinaryFSVals
[[Layer, {Variable}, {Percentage}, {Category}],...]
(дополнительно)

The variables that will be used in the conventional Find Similar approach selected from the analysis data layer. In the conventional approach, you can add up to five variables.

Value Table
PCAFields
[[Layer, {Variable}, {Category}],...]
(дополнительно)

The variables that will be used in the Principal Component Analysis approach selected from the analysis data layer.

Value Table
UserDefinedBoundVal
(дополнительно)

Allows you to define an Eigenvalue other than the recommended value of one.

Double
FSRankFeatNum
(дополнительно)

Defines the number of features you can rank in the target layer based on similarity to the master site.

Long
FSUseMasterSitesLayer
(дополнительно)

Determines if you can select the master site from a different layer file than the target layer.

  • TrueAllows a seperate layer to be selected as the master site.
  • FalseThe master is selected from the Target Layer. This is the default.
Boolean
FSMasterSitesLayer
(дополнительно)

The features containing the master site. This option is used if you would like to select the master site from a different layer than the layer that will be used to rank the results of the Find Similar tool.

Feature Layer
FSFieldMap
(дополнительно)

The file containing the fields that will be used to map the Master Site to the Target Layer.

File
UseOnlineData
(дополнительно)

Access online Business Analyst data to use in the analysis.

  • Checked—Allows you to acess online Business Analyst data.
  • Unchecked—You will only have access to locally loaded Business Analyst data.

Select to access online Business Analyst data to use in the analysis.

  • TrueAllows you to acess online Business Analyst data.
  • FalseYou will only have access to locally loaded Business Analyst data. This is the default.
Boolean

Пример кода

FindSimilar Example (Stand-alone Script)
# Name: FindSimilar.py
# Description: Ranks the top ten customers using a 1 mile buffer around each customer based on current total population in the San Francisco area.
# Author: Esri

# Import system modules

import arcview
import arcpy

arcpy.ImportToolbox("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 Find Similar tool
  Target = "C:/temp/sf_cust.shp"
  Master = "1 : Customer  2"
  Output = "C:/temp/findsimilar.shp"
  Data = "C:/ArcGIS/Business Analyst/US_2013/Data/BDS/esri_bg"
  numRadius = 1
  numEigen = 1
  numRank = 10
  Params = "C:\\ArcGIS\\Business Analyst\\US_2013\\Data\\BDS\\esri_bg.bds TOTPOP_CY TARGET_LAYER"
 
# Create a Find Similar ouput
  arcpy.FindSimilar_ba(Target, Master, Output, "1", "Miles", Data , "false" , "#", Params, numEigen, numRank)
 
# 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