ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Build Territory Index

  • Summary
  • Usage
  • Syntax
  • Code Sample
  • Environments
  • Licensing Information

Summary

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.

Usage

  • 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.

Syntax

BuildTerritoryIndex_TD_td (in_layer, {in_mask_layer}, {In_buffer_distance})
ParameterExplanationData Type
in_layer

The Layer for which to build a territory index.

Feature Layer
in_mask_layer
(Optional)

The Mask layer for a point layer.

Feature Layer
In_buffer_distance
(Optional)

The Buffer distance for every point of a layer.

Linear Units

Code Sample

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 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)

Environments

This tool does not use any geoprocessing environments

Licensing Information

  • ArcGIS for Desktop Basic: Requires Business Analyst
  • ArcGIS for Desktop Standard: Requires Business Analyst
  • ArcGIS for Desktop Advanced: Requires Business Analyst

Related Topics

  • An Overview of the Create Territory Solution Toolset
  • Delete Territory Solution
  • Create Territory Solution
  • Import Territory Solution
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal