Add Territory Barriers (Territory Design)

此 ArcGIS 2.7 文档已 存档,并且不再对其进行更新。 其中的内容和链接可能已过期。 请参阅最新文档

获得 Business Analyst 许可后可用。

描述

Allows the addition of polygon or line features to prevent or restrict the growth of territories.

插图

Line barriers

使用方法

  • Line or polygon layers can be used as barriers.

  • New features can be added to an existing barrier.

  • Each level can contain both an impedance and a restricted area.

语法

arcpy.td.AddTerritoryBarriers(in_territory_solution, level, in_barrier_features, {barrier_type}, {append_data})
参数说明数据类型
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 barriers will be applied.

String
in_barrier_features

Line or polygon features used as a barrier.

Feature Layer
barrier_type
(可选)

Specifies the type of barrier.

  • IMPEDANCE Limits the growth of territories. This is the default.
  • RESTRICTED_AREAPrevents the creation of territories.
String
append_data
(可选)

Specifies whether to append or replace the records to the barriers layer.

  • APPENDAppends records to an existing barrier layer.
  • REPLACECreates a new barrier layer or replaces records in an existing barrier layer. This is the default.
Boolean

派生输出

名称说明数据类型
out_territory_solution

The updated territory solution.

Group Layer

代码示例

AddTerritoryBarriers example (Python window)

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

import arcpy
arcpy.td.AddTerritoryBarriers("in_territory_solution", "Level[1]", "in_barrier_features", "IMPEDANCE", "REPLACE_DATA")

许可信息

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

相关主题