Add Territory Level (Territory Design)

获得 Business Analyst 许可后可用。

摘要

Creates a new empty feature class to represent a level.

使用情况

  • Specify an existing territory solution.

  • A new level is created above the base level. Base features are aggregated to the new level.

  • The %Number% variable determines where the integer number is placed, either after or before the territory name—for example, Territory %Number% produces Territory 1, Territory 2, and so forth, whereas %Number% Territory produces 1 Territory, 2 Territory, and so forth.

  • The default primary feature class for a base level with polygon features is Base Boundaries.

  • The default primary feature class for a base level with point features is Base Centers.

参数

标注说明数据类型
Input Territory Solution

The input territory solution.

Group Layer; Feature Dataset; String
Level Name

The name of the new territory level.

String
Default Territory Name
(可选)

The name to be used as a prefix for new territories that will be created.

String
Primary Feature Class
(可选)

Specifies the class level that will be used for storing level attributes.

  • Territory BoundariesPolygon features that represent the territory boundaries.
  • Territory Centers Point features that represent the territory centers.
  • Base BoundariesPolygon features that represent the base-level feature boundaries.
  • Base CentersPoint features that represent the base-level feature centers.
String

派生输出

标注说明数据类型
Updated Territory Solution

The updated territory solution.

Group Layer

arcpy.td.AddTerritoryLevel(in_territory_solution, level_name, {default_territory_name}, {primary_feature_class})
名称说明数据类型
in_territory_solution

The input territory solution.

Group Layer; Feature Dataset; String
level_name

The name of the new territory level.

String
default_territory_name
(可选)

The name to be used as a prefix for new territories that will be created.

String
primary_feature_class
(可选)

Specifies the class level that will be used for storing level attributes.

  • TERRITORY_BOUNDARIESPolygon features that represent the territory boundaries.
  • TERRITORY_CENTERS Point features that represent the territory centers.
  • BASE_BOUNDARIESPolygon features that represent the base-level feature boundaries.
  • BASE_CENTERSPoint features that represent the base-level feature centers.
String

派生输出

名称说明数据类型
out_territory_solution

The updated territory solution.

Group Layer

代码示例

AddTerritoryLevel example (Python window)

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

import arcpy
arcpy.td.AddTerritoryLevel("Territory Solution", "Level1", "Territory", "BASE_BOUNDARIES")

许可信息

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

相关主题