Setup Level Distance Constraints (Territory Design)

Lizenzstufe:BasicStandardAdvanced

Zusammenfassung

Allows the setup of distance constraints at the specified level.

Verwendung

Syntax

SetupLevelDistanceConstraints_TD_td (in_territory_solution_layer, in_level, {in_distance_units}, {in_maximum_distance}, {in_minimum_distance}, {in_centers_minimum_distance})
ParameterErläuterungDatentyp
in_territory_solution_layer

The Territory Solution layer used to setup the parameters.

GP TD Layer
in_level

The Territory Level to modify.

String
in_distance_units
(optional)

The Distance Units for the distance constraints.

  • STRAIGHT_LINE_DISTANCEvalue of Measure Type:
    • MILES
    • KILOMETERS
    • FEET
    • YARDS
    • NAUTICAL_MILES
    • METERS
    • DECIMAL_DEGREES
  • DRIVE_TIMEvalue of Measure Type:
    • DAYS
    • HOURS
    • MINUTES
    • SECONDS
String
in_maximum_distance
(optional)

The Maximum distance from a territory's center.

Double
in_minimum_distance
(optional)

The Minimum distance from the center of a nearby territory.

Double
in_centers_minimum_distance
(optional)

The Minimum distance between territory centers.

Double

Codebeispiel

SetupLevelDistanceConstraints_TD example (Python window)

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

import arcgisscripting
gp = arcgisscripting.create()
gp.SetupLevelDistanceConstraints_TD("new layer", "Territories[1]", "MILES", 100, 40, 80)
SetupLevelDistanceConstraints_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
solution = "new layer"
level = "Territories[1]"
distanceUnits = "MILES"
maximumDistance = 100
minimumDistance = 40
minimumCentersDistance = 80

# Execute tool
gp.SetupLevelDistanceConstraints_TD(solution, level, maximumDistance, minimumDistance, minimumCentersDistance)

Umgebung

Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.

Verwandte Themen

Lizenzierungsinformationen

ArcGIS for Desktop Basic: Erfordert Business Analyst
ArcGIS for Desktop Standard: Erfordert Business Analyst
ArcGIS for Desktop Advanced: Erfordert Business Analyst
4/26/2014