Skip To Content

Set Territory Level Options

Summary

Sets options for how territory levels are created. This tool controls the shape of each territory and whether unassigned features will be automatically assigned to the closest territory.

Usage

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

  • A low value of Compactness 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.

Syntax

SetTerritoryLevelOptions_td (in_territory_solution, level, {compactness}, {fill_extent})
ParameterExplanationData Type
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
(Optional)

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

Long
fill_extent
(Optional)

Specifies whether features are automatically assigned to the nearest territory.

  • AUTO_FILL_EXTENT Features are automatically assigned to the nearest territory.
  • DO_NOT_AUTO_FILL_EXTENT Features are not automatically assigned to the nearest territory. This is the default.
Boolean

Derived Output

NameExplanationData Type
out_territory_solution

The updated territory solution.

Group Layer

Code sample

SetTerritoryLevelOptions example (Python window)

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

import arcpy
arcpy.td.SetTerritoryLevelOptions("TerritorySolution", "Territories[1]", 75, "DO_NOT_AUTO_FILL_EXTENT")

Licensing information

  • Basic: Requires Business Analyst
  • Standard: Requires Business Analyst
  • Advanced: Requires Business Analyst

Related topics