Set Territory Level Options (Territory Design)

获得 Business Analyst 许可后可用。

摘要

Sets options for how territory levels are created.

使用情况

  • A Compactness parameter value of 100 is a circle where all parameters are satisfied.

  • A low Compactness value means variables and preferences are satisfied, but shape is compromised.

  • The Fill Extent Automatically parameter assigns features to their closest territories regardless of the constraint parameters.

  • By default, a random number generator is used for the seed.

  • To generate consistent territories, use an integer value greater than or equal to 0.

参数

标注说明数据类型
Input Territory Solution

The Territory Design solution layer that will be used in the analysis.

Group Layer; Feature Dataset; String
Level

The level to which the options will be applied.

String
Compactness
(可选)

A numeric value between 0 and 100 that defines the shape of territories.

Long
Fill Extent Automatically
(可选)

Specifies whether features are automatically assigned to the nearest territory.

  • Checked—Features are automatically assigned to the nearest territory.
  • Unchecked—Features are not automatically assigned to the nearest territory. This is the default.
Boolean
Random Number Generator Seed
(可选)

An integer used for the seed value. The default is no value and uses a random generator.

  • Uses ACM-collected algorithm 599 to produce random territories.
  • If the seed value is greater or equal to 0, the same seed value will be used to produce consistent territories.

Long
Spatial Relationship
(可选)

Specifies the spatial relationship of how features are related to determine adjacency.

  • Contiguity Edges OnlyPolygon features that share a boundary or share a node with neighboring features.
String
Buffer Tolerance
(可选)

The distance between features to determine adjacency. Features that are within the buffer tolerance are considered adjacent features.

Linear Unit

派生输出

标注说明数据类型
Updated Territory Solution

The updated territory solution.

Group Layer

arcpy.td.SetTerritoryLevelOptions(in_territory_solution, level, {compactness}, {fill_extent}, {random_seed}, {spatial_relationship}, {buffer_tolerance})
名称说明数据类型
in_territory_solution

The Territory Design solution layer that will be used in the analysis.

Group Layer; Feature Dataset; String
level

The level to which the options will be applied.

String
compactness
(可选)

A numeric value between 0 and 100 that defines the shape of territories.

Long
fill_extent
(可选)

Specifies whether features are automatically assigned to the nearest territory.

  • AUTO_FILL_EXTENTFeatures are automatically assigned to the nearest territory.
  • DO_NOT_AUTO_FILL_EXTENTFeatures are not automatically assigned to the nearest territory. This is the default.
Boolean
random_seed
(可选)

An integer used for the seed value. The default is no value and uses a random generator.

  • Uses ACM-collected algorithm 599 to produce random territories.
  • If the seed value is greater or equal to 0, the same seed value will be used to produce consistent territories.

Long
spatial_relationship
(可选)

Specifies the spatial relationship of how features are related to determine adjacency.

  • CONTIGUITY_EDGES_ONLYPolygon features that share a boundary or share a node with neighboring features.
String
buffer_tolerance
(可选)

The distance between features to determine adjacency. Features that are within the buffer tolerance are considered adjacent features.

Linear Unit

派生输出

名称说明数据类型
out_territory_solution

The updated territory solution.

Group Layer

代码示例

SetTerritoryLevelOptions example (Python window)

The following Python window script demonstrates how to use the SetTerritoryLevelOptions tool.

import arcpy
arcpy.td.SetTerritoryLevelOptions("td", "Territories[1]", 75, "DO_NOT_AUTO_FILL_EXTENT", None, "CONTIGUITY_EDGES_ONLY", "20 DecimalDegrees")

环境

特殊情况

许可信息

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

相关主题