Add Territory Seed Points (Territory Design)

获得 Business Analyst 许可后可用。

摘要

Creates a point feature that is used to determine the starting point for creating territories.

使用情况

  • Seed points can be point locations from franchise addresses, sales offices, or distribution centers and are a common method for creating territories.

  • Seed points are used as the starting point for creating territories but do not necessarily represent the center of the territories.

    Seed points and territory centers
    Pins represents seed points. Squares represents territory centers.

参数

标注说明数据类型
Input Territory Solution

The Territory Design solution dataset.

Group Layer; Feature Dataset; String
Level

The target territory level for which the seed points feature will be created.

String
Input Seed Point Features

The points feature layer that represents seed points for territories.

Feature Layer
Field Map
(可选)

Specifies the attributes and fields that will be used for the seed point properties.

  • Name—The name for a seed point feature
  • ID—The ID for a seed point feature
  • Type—The seed point type

The field value associated with the Type attribute can only be Required or Candidate.

Value Table
Append to Existing Seed Points
(可选)

Specifies whether the data will be appended or replaced.

  • Checked—The data will be appended.
  • Unchecked—The data will be replaced. This is the default.
Boolean

派生输出

标注说明数据类型
Updated Territory Solution

The updated territory solution.

Group Layer

arcpy.td.AddTerritorySeedPoints(in_territory_solution, level, in_seed_points, {field_map}, {append_data})
名称说明数据类型
in_territory_solution

The Territory Design solution dataset.

Group Layer; Feature Dataset; String
level

The target territory level for which the seed points feature will be created.

String
in_seed_points

The points feature layer that represents seed points for territories.

Feature Layer
field_map
[[name, id, type],...]
(可选)

Specifies the attributes and fields that will be used for the seed point properties.

  • Name—The name for a seed point feature
  • ID—The ID for a seed point feature
  • Type—The seed point type

The field value associated with the Type attribute can only be Required or Candidate.

Value Table
append_data
(可选)

Specifies whether the data will be appended or replaced.

  • APPENDThe data will be appended.
  • REPLACEThe data will be replaced. This is the default.
Boolean

派生输出

名称说明数据类型
out_territory_solution

The updated territory solution.

Group Layer

代码示例

AddTerritorySeedPoints example (Python window)

The following Python window script demonstrates how to use the AddTerritorySeedPoints function.

import arcpy
arcpy.td.AddTerritorySeedPoints("TerritorySolution", "Territories[1]", r"atl_centers\shoppingctrs", None, "REPLACE")

环境

特殊情况

许可信息

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

相关主题