Build Territory Index (Territory Design)
Summary
Tool allows building territory adjacency index for specified feature layer which will be used as Alignment Layer in Territory Solutions. This index is increasing performance of creating, balancing and adjusting territories.
Usage
-
Polygonal and point layers can be used as Layer
Polygonal layers can be used as Mask Layer
- Mask Layer is mainly used for point Layers as Barrier. Points from different mask polygons are considered non-adjacent. Points from the same mask polygon are considered adjacent.
- Mask layer can be specified only for point Layers.
Buffer distance can be specified only for point layer. It means distance between points for building adjacent circle. If two points intersects by their adjacent circles then they considered adjacent
NOTE: If the adjacent index file is already built for the layer, warning message will be displayed, but file will be re-built without taking OverwriteOutput environment setting into account.
Syntax
Parameter | Explanation | Data Type |
in_layer |
Layer for which to build territory index | Feature Layer |
in_mask_layer (Optional) |
Mask layer for point layer | Feature Layer |
In_buffer_distance (Optional) |
Buffer distance for every point of Layer | Linear Units |
Code Sample
The following Python window script demonstrates how to use the tool in immediate mode.
import arcgisscripting
gp = arcgisscripting.create()
gp.BuildTerritoryIndex_TD("C:/Layer1.lyr", "C:/Layer2.lyr" , "10 miles")
The following stand-alone script demonstrates how to use the tool.
# Import system modules
import arcgisscripting
gp = arcgisscripting.create()
# Set local variables
layer = "C:/Layer1.lyr"
maskLayer = "C:/Layer2.lyr"
buffer = "10 miles"
# Execute tool
gp.BuildTerritoryIndex_TD(layer, maskLayer, buffer)