ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Hilfe
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Die Mapping-Plattform für Ihre Organisation

ArcGIS Desktop

Ein vollständiges professionelles GIS

ArcGIS Enterprise

GIS in Ihrem Unternehmen

ArcGIS Developers

Werkzeuge zum Erstellen standortbezogener Apps

ArcGIS Solutions

Kostenlose Karten- und App-Vorlagen für Ihre Branche

ArcGIS Marketplace

Rufen Sie Apps und Daten für Ihre Organisation ab.

  • Dokumentation
  • Support
Esri
  • Anmelden
user
  • Eigenes Profil
  • Abmelden

ArcMap

  • Startseite
  • Erste Schritte
  • Karte
  • Analysieren
  • Verwalten von Daten
  • Werkzeuge
  • Erweiterungen

Create Territory Solution

Mit der Business Analyst-Lizenz verfügbar.

  • Zusammenfassung
  • Verwendung
  • Syntax
  • Codebeispiel
  • Umgebungen
  • Lizenzinformationen

Zusammenfassung

Creates a new Territory Solution with one empty territory level.

Verwendung

  • The Polygon and Point layers to be used as an Alignment Layer for the new Territory Solution.

  • A String, Integer, SmallInteger, Double, Single, Date, OID, GlobalID or GUID field of Alignment Layer can be used as the Display Field. The default value is the Alignment Layer’s display field. If the Alignment Layer’s display field is not defined the first suitable field will be applied.

  • If unspecified, the default Territory Level Name will be read from the ATDConfig.xml file.

  • By default, the Territory Solution Location is under the "Territories" folder in the current BA project.

  • A default Territory Solution Name is generated if not specified.

Syntax

arcpy.td.CreateTerritorySolution_TD(in_alignment_layer, {in_display_field}, {in_level_name}, {in_territory_solution_location}, {in_territory_solution_name})
ParameterErklärungDatentyp
in_alignment_layer

The Alignment Layer for the new Territory Solution.

Feature Layer
in_display_field
(optional)

The Display Field for the Territory Solution.

Field
in_level_name
(optional)

The name of the first territory level.

String
in_territory_solution_location
(optional)

The location of the Territory Solution.

String
in_territory_solution_name
(optional)

The name of the Territory Solution.

String

Codebeispiel

CreateTerritorySolution example (Python window)

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

import arcgisscripting
gp = arcgisscripting.create()
gp.CreateTerritorySolution_TD("ZIPCodes_zp", "NAME", "Territories", "C:/BA Output/Project/Default Project/Territories/", "new layer")
CreateTerritorySolution 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
alignmentLayer = "ZIPCodes_zp"
displayField = "NAME"
levelName = "Territories"
solutionLocation = "C:/BA Output/Project/Default Project/Territories/"
solutionName = "new layer"

# Execute tool
gp.CreateTerritorySolution_TD(alignmentLayer, displayField, levelName, solutionLocation, solutionName)

Umgebungen

Dieses Werkzeug verwendet keine Geoverarbeitungsumgebungen.

Lizenzinformationen

  • Basic: Erfordert Business Analyst
  • Standard: Erfordert Business Analyst
  • Advanced: Erfordert Business Analyst

Verwandte Themen

  • An Overview of the Create Territory Solution Toolset
  • Delete Territory Solution
  • Build Territory Index
  • Import Territory Solution

ArcGIS Desktop

  • Startseite
  • Dokumentation
  • Support

ArcGIS

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

Über Esri

  • Über uns
  • Karriere
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Wir sind an Ihrer Meinung interessiert.
Copyright © 2021 Esri. | Datenschutz | Rechtliches