ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

Customer Profiling

获得 Business Analyst 许可后可用。

  • 描述
  • 使用方法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

描述

Profiles demographic attributes of customer data based on a selected demographic or custom data layer.

Learn more about how Customer Profiling works

使用方法

  • In ArcMap, analysis will only be completed on features that are within the active study area or analysis extent.

  • This tool creates a Demographic Query File that is used as an input to the Customer Prospecting by Demographic Data tool.

  • When defining the variance of the fields to profile, start with a high variance, for example, (+/-) 20 percent, to establish a general range and refine the variance further as needed.

  • Filling options allow you to define the upper and lower limits of the range of the demographic or data variables used to establish your customer profile.

  • Set your boundary layer to include the market to prospect.

语法

arcpy.ba.CustomerProfiling(CustomerLayer, InputBoundaryLayer, InputGeographyLevel, InputFieldsToProfile, InputProspectingFillingOptions, InputFillingVariance, OutputDMQFilePath, {UseSelectedFeatures})
参数说明数据类型
CustomerLayer

The input feature layer containing customer points.

Feature Layer
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
InputFieldsToProfile
[InputFieldsToProfile,...]

The selected attributes (commonly demographic data) that will be used to define your profile from the geography level.

Field
InputProspectingFillingOptions

The value ranges for the fields to profile.

  • FLOOR_VALUE —The value range to be profiled will be set at this value or greater.
  • CEILING_VALUE —The value range to be profiled will be set at less than this value.
  • BOTH —The value range to be profiled will be set between the values set here.
String
InputFillingVariance

Sets the percentages by which the filling options will be read, for example, plus or minus 20 percent.

Double
OutputDMQFilePath

The output file that stores the defined parameters (the definition query).

This file is used as an input for the Customer Prospecting By Demographic Data tool.

String
UseSelectedFeatures
(可选)

Defines which customers are used to generate the customer profile.

  • TRUE —Generates a customer profile on selected customers.
  • FALSE —Generates a customer profile on all customers. This is the default.
Boolean

代码示例

CustomerProfiling example (stand-alone script)

# Name: CustomerProfiling.py
# Description: Creates a profile of customers in San Francisco based on current year total households.
# Author: Esri

# Import system modules
import arcview
import arcpy

arcpy.ImportToolbox(r"C:\Program Files (x86)\ArcGIS\Desktop10.8\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business")
 
# Define the parameters for the Customer Profiling tool
# Please note that your paths may be different.
  CustomerLayer = "C:/temp/sf_cust.shp"
  InputBoundaryLayer = "C:/temp/Boundary.shp"
  InputGeographyLevel = "C:/ArcGIS/Business Analyst/US_2022/Data/Demographic Data/BlockGroups_bg.bds"
  InputFieldsToProfile = "TOTHH_CY"
  InputProspectingFillingOptions = "BOTH"
  InputFillingVariance = "20"
  OutputDMQFilePath = "C:/temp/DMQ_output.dmq"
 
# Create Customer Profiling output file
  arcpy.CustomerProfiling_ba(CustomerLayer, 
	InputBoundaryLayer, 
	InputGeographyLevel, 
	InputFieldsToProfile,
	InputProspectingFillingOptions, 
	InputFillingVariance, 
	OutputDMQFilePath)
 
# Release extension license
arcpy.CheckInExtension("Business")

环境

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

许可信息

  • Basic: 需要 Business Analyst
  • Standard: 需要 Business Analyst
  • Advanced: 需要 Business Analyst

相关主题

  • An overview of the Business Analyst Analysis toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2022 Esri. | 隐私政策 | 法律声明