Disponible con licencia de Business Analyst.
Resumen
Builds a territory adjacency index for a specified feature layer which will be used as the Alignment Layer in Territory Solutions.
This index increases the performance for creating, balancing and adjusting territories.
Uso
The polygonal and point layers can be used as a Layer.
The polygonal layers can only be used as a Mask Layer.
- The Mask Layer is mainly used against point Layers as a Barrier. Points from different mask polygons are considered non-adjacent. Points from the same mask polygon are considered adjacent.
- The Mask Layer can be specified only for point Layers.
The Buffer distances can be specified only for a point layer. It is defined by the distance between points for building an adjacent circle. Points that intersect with their adjacent circles are considered adjacent.
NOTE: If the adjacent index file is already built for the layer, a warning message will be displayed and the file will be re-built without taking the OverwriteOutput environment setting into account.
Sintaxis
arcpy.td.BuildTerritoryIndex_TD(in_layer, {in_mask_layer}, {In_buffer_distance})| Parámetro | Explicación | Tipo de datos |
in_layer | The Layer for which to build a territory index. | Feature Layer |
in_mask_layer (Opcional) | The Mask layer for a point layer. | Feature Layer |
In_buffer_distance (Opcional) | The Buffer distance for every point of a layer. | Linear Units |
Muestra de código
BuildTerritoryIndex_TD example (Python window)
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")
BuildTerritoryIndex_TD example 2 (stand-alone script)
The following stand-alone script demonstrates how to use the tool.
import arcgisscripting
gp = arcgisscripting.create()
gp.BuildTerritoryIndex_TD("C:/Layer1.lyr", "C:/Layer2.lyr" , "10 miles")
Entornos
Esta herramienta no utiliza ningún entorno de geoprocesamiento.
Información de licenciamiento
- Basic: Requiere Business Analyst
- Standard: Requiere Business Analyst
- Advanced: Requiere Business Analyst