ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Справка
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Картографическая платформа вашей организации

ArcGIS Desktop

Полноценная профессиональная ГИС

ArcGIS Enterprise

ГИС предприятия

ArcGIS Developers

Инструменты для встраивания приложений с местоположениями

ArcGIS Solutions

Бесплатные шаблоны карт и приложений для отрасли

ArcGIS Marketplace

Получение приложения и данных для вашей организации.

  • Документация
  • Поддержка
Esri
  • Войти
user
  • Мой профиль
  • Выход

ArcMap

  • На главную
  • Начало работы
  • Карта
  • Анализ
  • Управление данными
  • Инструменты
  • Дополнительные модули

Setup Level Distance Constraints

Доступно с лицензией Business Analyst.

  • Сводка
  • Использование
  • Синтаксис
  • Пример кода
  • Параметры среды
  • Информация о лицензиях

Сводка

Allows the setup of distance constraints at the specified level.

Использование

  • The Territory Level format must be as follows: Level_Name[Level_Index]

  • The Distance Units parameter depends on the value of Measure Type. This value can be modified by UI or the SetupLevelParameter tool (see in_measure_type parameter).

  • Maximum Distance, Minimum Distance and Minimum Distance Between Centers values must be greater than zero.

Синтаксис

arcpy.td.SetupLevelDistanceConstraints_TD(in_territory_solution_layer, in_level, {in_distance_units}, {in_maximum_distance}, {in_minimum_distance}, {in_centers_minimum_distance})
ПараметрОбъяснениеТип данных
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
(Дополнительный)

The Distance Units for the distance constraints.

  • STRAIGHT_LINE_DISTANCE —value of Measure Type:
    • MILES
    • KILOMETERS
    • FEET
    • YARDS
    • NAUTICAL_MILES
    • METERS
    • DECIMAL_DEGREES
  • DRIVE_TIME —value of Measure Type:
    • DAYS
    • HOURS
    • MINUTES
    • SECONDS
String
in_maximum_distance
(Дополнительный)

The Maximum distance from a territory's center.

Double
in_minimum_distance
(Дополнительный)

The Minimum distance from the center of a nearby territory.

Double
in_centers_minimum_distance
(Дополнительный)

The Minimum distance between territory centers.

Double

Пример кода

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)

Параметры среды

Этот инструмент не использует параметры среды геообработки

Информация о лицензиях

  • Basic: Требуется Business Analyst
  • Standard: Требуется Business Analyst
  • Advanced: Требуется Business Analyst

Связанные разделы

  • An Overview of the Setup Territory Solution Toolset
  • Create Territories
  • Setup Level Balancing Variables
  • Setup Level Capacity Constraints
  • Setup Solution Barriers
  • Setup Solution Restricted Areas

ArcGIS Desktop

  • На главную
  • Документация
  • Поддержка

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Об Esri

  • О нас
  • Карьера
  • Блог Esri
  • Конференция пользователей
  • Саммит разработчиков
Esri
Расскажите нам, что вы думаете.
Copyright © 2021 Esri. | Конфиденциальность | Правовая информация