Setup Solution Extent by Boundary of Layer (Territory Design)

License Level:BasicStandardAdvanced

Summary

Tool allows setup Territory Extent to the Territory Solution by boundary of a polygonal layer.

Usage

Syntax

SetupExtentByBoundaryOfLayer_TD_td (in_territory_solution_layer, in_extent_calc_method, In_boundary_layer)
ParameterExplanationData Type
in_territory_solution_layer

Territory Solution layer to import variables to

GP TD Layer
in_extent_calc_method

The way of calculation Territory extent.

  • GEOMETRY_CENTROID_CONTAINED_WITHIN_EXTENT only features having their geometry's centroids inside extent will be taken into account
  • GEOMETRY_COMPLETELY_CONTAINED_WITHIN_EXTENT only features having their geometry completely located inside extent will be taken into account
  • GEOMETRY_INTERSECTS_EXTENT only features having their geometry intersects extent will be taken into account
String
In_boundary_layer

Analysis area will be limited by boundary of the layer selected at this control

Feature Layer

Code Sample

SetupExtentByBoundaryOfLayer example (Python window)

The following Python window script demonstrates how to use the tool in immediate mode.

import arcgisscripting
gp = arcgisscripting.create()
gp.SetupExtentByBoundaryOfLayer_TD("new layer", "GEOMETRY_CENTROID_CONTAINED_WITHIN_EXTENT", "C:/Boundary layer")
SetupExtentByBoundaryOfLayer example2 (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
solution = "new layer"
method = "GEOMETRY_CENTROID_CONTAINED_WITHIN_EXTENT"
layer = "C:/Boundary layer"

# Execute tool
gp.SetupExtentByBoundaryOfLayer_TD(solution, method, layer)

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: Requires Business Analyst
ArcGIS for Desktop Standard: Requires Business Analyst
ArcGIS for Desktop Advanced: Requires Business Analyst
10/12/2012