Validate Territories (Territory Design)

获得 Business Analyst 许可后可用。

摘要

Validates a territory solution for invalid territories.

使用情况

  • Run this tool after manually editing the territory solution. Any violations will need to be reviewed and resolved manually.

  • Validation issues will be included in the tool messages and added to the Territory Validation Errors field or Feature Validation Errors field.

  • Territory validation issues will be displayed in the Territory Validation Errors field.

  • The Feature Validation Errors field will display features that contain validation issues for a territory.

  • The tool will analyze the territory solution for the following errors:

    • Barriers violation
    • Buffer distance constraint violation
    • Minimum attribute constraint limit violation
    • Maximum attribute constraint limit violation
    • Minimum distance between centers constraint violation
    • Maximum territory radius constraint violation
    • Territory is empty
    • Territory center is undefined
    • Territory is not contiguous
    • Territory has holes
    • Territory name is not unique

参数

标注说明数据类型
Input Territory Solution

The territory solution that will be validated.

Group Layer; Feature Dataset; String
Level

The level that will be analyzed in the validation.

String

派生输出

标注说明数据类型
Updated Territory Solution

The territory solution output.

Group Layer

arcpy.td.ValidateTerritories(in_territory_solution, level)
名称说明数据类型
in_territory_solution

The territory solution that will be validated.

Group Layer; Feature Dataset; String
level

The level that will be analyzed in the validation.

String

派生输出

名称说明数据类型
out_territory_solution

The territory solution output.

Group Layer

代码示例

ValidateTerritories example (Python window)

The following Python window script demonstrates how to use the ValidateTerritories function.

import arcpy
arcpy.td.ValidateTerritories(in_territory_solution, level)

环境

此工具不使用任何地理处理环境。

许可信息

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

相关主题