Setup Solution Extent by Boundary of Layer (Territory Design)
Summary
Tool allows setup Territory Extent to the Territory Solution by boundary of a polygonal layer.
Usage
-
Territory Extent hides part of Territory Hierarchy by limiting with extent geometry.
- Features having geometries not relevant to Territory Extent settings will not changed during operations changes territories on level (Create, Balance, Improve and so on).
- Out-of-Extent features can be changed only during operations changes whole Territory Hierarchy or Territory Solution (Remove Out-of-Extent Territories, Import Territories From Database, Remove Territory Level and so on).
Syntax
SetupExtentByBoundaryOfLayer_TD_td (in_territory_solution_layer, in_extent_calc_method, In_boundary_layer)
Parameter | Explanation | Data 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.
| 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