Setup Customers Using Tabular Data (Business Analyst)

Résumé

Geocodes tabular data and defines the output feature class as a customer file for use in the Analysis And Trade Areas tools.

Learn more about Setup Customers Using Tabular Data

Usage

Syntaxe

SetupCustomersByTable_ba (Table, Locator, MatchFields, NameField, LinkField, OutputFeatureClass, {CS_AppendsegmentationCodes}, {CS_CreateCustomerProfile}, {CSCustomerProfileName}, {InputVolumeInfoFieldName}, SegmentationBase)
ParamètreExplicationType de donnée
Table

The input table used for setting up your customer layer.

Table View
Locator

The predefined address locator service.

Address Locator
MatchFields

Input fields for geocoding addresses.

Field Info
NameField

The unique identifier for the input feature class (commonly the customer name).

Field
LinkField

Unique ID linking the customer file with the store file.

Field
OutputFeatureClass

The feature class that will contain the customer points.

Feature Class
CS_AppendsegmentationCodes
(Facultatif)

Appends Tapestry Segmentation codes to the customer layer.

  • TrueAppends the Tapestry Segmentation code to the customer file.
  • FalseWill not append Tapestry Segmentation codes to the customer file. This is the default.
Boolean
CS_CreateCustomerProfile
(Facultatif)

Creates a Tapestry Segmentation Profile based on the customer layer.

  • TrueCreates a apestry Segmentation Profile based on the customer layer.
  • FalseWill not create a apestry Segmentation Profile based on the customer layer. This is the default.
Boolean
CSCustomerProfileName
(Facultatif)

The name of the customer profile.

String
InputVolumeInfoFieldName
(Facultatif)

The field containing your volumetric field. Typically this is a sales filed associated with customer data.

Field
SegmentationBase

The base data to be used in creating the customer profile.

  • Total HouseholdsThis option will use the Total Households segmentation base to create the customer profile. This is the default.
  • Total Adult PopulationThis option will use the Adult Population (18+) segmentation base to create the customer profile.
String

Exemple de code

SetupCustomersByTable Example (Stand-alone Script)
# Name: SetupCustomersByTable.py
# Description: Geocodes San Francisco customers using tabular data. 
# Author: ESRI

# Import system modules
import arcview
import arcpy

arcpy.ImportToolbox("C:\Program Files\ArcGIS\Desktop10.0\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business") 
 
# Defines the parameters for the Setup Customers Using Tabular Data tool
  Input = 'C:/Program Files/ArcGIS/Business Analyst/Datasets/Tutorial/sf_custs.dbf'
  OutFC= "C:/temp/sf_customers.shp"
  Locator = "C:/Program Files/ArcGIS/Desktop10.0/Business Analyst/Data/USA Geocoding Service/USA Geocoding Service"
  CustName = "NAME"
  StoreId = "STORE_ID"
  FldCol = "Addr ADDRESS VISIBLE;City City VISIBLE;State State VISIBLE;ZIP ZIP VISIBLE"
 
# Generate customer layers with tabular data
  arcpy.SetupCustomersByTable_ba(Input, Locator, FldCol, CustName, StoreId, OutFC)
 
# Release extension license 
  arcpy.CheckInExtension("Business") 
 
except:
  print arcpy.GetMessages(2)

Environnements

Cet outil ne fait appel à aucun environnement de traitement de données géographiques

Rubriques associées

Informations de licence

ArcView : RequiertBusiness Analyst
ArcEditor : RequiertBusiness Analyst
ArcInfo : RequiertBusiness Analyst

10/4/2010