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

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

Create Profile From Segmentation Coded Table

获得 Business Analyst 许可后可用。

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

描述

Creates a profile from a table of records that have segmentation codes already appended.

Learn more about how Create Profile From Segmentation Coded Table (Business Analyst) works

使用方法

  • The Input Table must be in a format that can be opened in ArcGIS.

  • If the input table contains summarized counts for each segmentation code, use the Create Profile By Import From Table tool.

  • Optional Volume attributes are aggregated for each unique segmentation code.

语法

arcpy.ba.CreateSegProfileFromClusterCodedTable(Dataset, ClusterCodeFieldName, ProfileFolder, {InputVolumeInfoFieldName}, {InputProfileComments})
参数说明数据类型
Dataset

The table containing the segmentation codes.

Table View
ClusterCodeFieldName

The field in the input table that contains the segmentation codes.

Field
ProfileFolder

The folder where the output profile will be created. The folder name corresponds to the name of the profile used in Business Analyst. For example, a profile created in the folder C:\My Output Data\Projects\Default Project\Segmentation\Profiles\NewProfile would be referred to as NewProfile in Business Analyst.

Folder
InputVolumeInfoFieldName
(可选)

The field from the Input Table containing volume information with which the profile can optionally be created. For example, you can create a profile using sales for each customer.

Field
InputProfileComments
(可选)

Optional comments for profile. These comments can include information such as author, source, date, and vintage.

String

代码示例

CreateSegProfileFromSegmentationCodedTable example (stand-alone script)

# Name: CreateSegProfileFromSegmentationCodedTable.py
# Description: Imports an existing Segmentation profile.
# 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 input and output parameters for the Create Profile From Segmentation Coded Table tool
  Dataset = "C:/temp/segTable.dbf"
  ClusterCodeFieldName = "SegField"
  ProfileFolder = "C:/My Output Data/Projects/Default Project/Segmentation/Profiles/NewProfile.xml"
  
# Imports an existing Segmentation profile.    
  arcpy.CreateSegProfileFromSegmentationCodedTable_ba(Dataset, ClusterCodeFieldName, ProfileFolder)
 
# Release extension license 

arcpy.CheckInExtension("Business")

环境

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

许可信息

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

相关主题

  • An overview of the Segmentation Profiles toolset

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS

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

关于 Esri

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