Customer Prospecting By Demographic Data (Business Analyst)

Zusammenfassung

Searches for areas that contain a specific type of demographic attribute.

Learn more about how Customer Prospecting By Demographic Data works

Abbildung

Customer Prospecting

Verwendung

Syntax

DemoCustomerProspecting_ba (InputBoundaryLayer, InputGeographyLevel, OutputFeatureClass, {WayToDefineDemoQuery}, {DMQFile}, {DemographicQueryWhereClause})
ParameterErläuterungDatentyp
InputBoundaryLayer

The input feature layer that determines the extent at which the analysis will query and return results from the geography level layer.

Feature Layer
InputGeographyLevel

The input feature class that contains the data to be used in the demographic query.

Feature Layer
OutputFeatureClass

The feature class that will contain the customer profile features.

Feature Layer
WayToDefineDemoQuery
(optional)

The parameters to be queried against the geography level.

  • USE_DMQ_FILEAllows you to point to an existing DMQ file.
  • EDIT_QUERY_IN_PLACEAllows you to manually create your own DMQ file in the Demographic Query WHERE Clause dialog box. This is the default.
Boolean
DMQFile
(optional)

The definition input file generated in customer prospecting that sets the parameters to filter the geography level.

File
DemographicQueryWhereClause
(optional)

Allows you to manually enter the field statistics for the demographic query.

String

Codebeispiel

DemoCustomerProspecting Example (Stand-alone Script)
# Name: DemoCustomerProspecting.py
# Description: Imports pre-generated customer profile (*.dmq file) to locate block groups that meet the criteria set in that profile.
# 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")
 
# Define the parameters for the Customer Prospecting by Demographic Data tool
Extent = "C:/temp/Boundary.shp"
GeoLevel = "C:/Program Files/ArcGIS/Desktop10.0/Business Analyst/Data/BDS/esri_bg.bds"
OutputFile= "C:/temp/Demo_Prospect.shp"
DmqFile= "C:/temp/DMQ_output.dmq"
 
# Create Customer Prospecting output file
arcpy.DemoCustomerProspecting_ba(Extent, GeoLevel, OutputFile, "USE_DMQ_FILE", DmqFile)
 
# Release extension license 
arcpy.CheckInExtension("Business")
 
except:
  print arcpy.GetMessages(2)

Umgebungen

Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.

Verwandte Themen

Lizenzinformationen

ArcView: Erfordert Business Analyst
ArcEditor: Erfordert Business Analyst
ArcInfo: Erfordert Business Analyst

10/4/2010