Disponible con licencia de Business Analyst.
Resumen
Sets options for how territory levels are created.
Uso
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.
Sintaxis
arcpy.td.SetTerritoryLevelOptions(in_territory_solution, level, {compactness}, {fill_extent}, {random_seed}, {spatial_relationship}, {buffer_tolerance})
Parámetro | Explicación | Tipo de datos |
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 (Opcional) | A numeric value between 0 and 100 that defines the shape of territories. | Long |
fill_extent (Opcional) | Specifies whether features are automatically assigned to the nearest territory.
| Boolean |
random_seed (Opcional) | An integer used for the seed value. The default is no value and uses a random generator.
| Long |
spatial_relationship (Opcional) | Specifies the spatial relationship of how features are related to determine adjacency.
| String |
buffer_tolerance (Opcional) | The distance between features to determine adjacency. Features that are within the buffer tolerance are considered adjacent features. | Linear Unit |
Salida derivada
Nombre | Explicación | Tipo de datos |
out_territory_solution | The updated territory solution. | Group Layer |
Muestra de código
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")
Entornos
Información de licenciamiento
- Basic: Requiere Business Analyst
- Standard: Requiere Business Analyst
- Advanced: Requiere Business Analyst