Ebenenvariablen hinzufügen (Territory Design Tools)
Zusammenfassung
Fügt ein neues Feld auf der festgelegten Ebene hinzu.
Verwendung
Hinzugefügte Felder basieren auf einem numerischen Feld aus der Ebene unterhalb der Gebietsebene und werden anhand des angegebenen Statistiktyps berechnet.
Die Variable wird einer beliebigen Ebene oberhalb der Basis- oder Ausrichtungsebene (0) hinzugefügt.
Alle numerischen Felder werden unterstützt.
Parameter
Beschriftung
Erläuterung
Datentyp
Eingabe-Gebietsplanung
Die Eingabe-Gebietsplanung.
Group Layer; Feature Dataset; String
Ebene
Die Ebene, der das berechnete Feld hinzugefügt wird.
String
Basisebene
Die Ebene unterhalb der Gebietsebene, zu der der Attributwert hinzugefügt wird.
String
Variablen
Die Variablen, die der Ebene hinzugefügt werden.
Spalten der Wertetabelle:
Statistic Field —The field that will be used for the statistical calculation.
Statistic —Type of statistical calculation.
Count —The number of values included in the calculation will be identified.
Sum —The values for the specified field will be added together.
Maximum —The largest value for the specified field will be identified.
Minimum —The smallest value for the specified field will be identified.
Average —The average of the values for the specified field will be calculated.
Median —The median of the values for the specified field will be calculated.
Standard Deviation —The standard deviation of values for the specified field will be calculated.
Percent of Total —The percentage of each value for the specified field will be calculated from the total sum of the values for the field.
Field Name —Valid name of the field on the level where the calculated data will be stored.
Field Alias Name —Readable and understandable name of the calculated field.
Value Table
Abgeleitete Ausgabe
Beschriftung
Erläuterung
Datentyp
Aktualisierte Gebietsplanung
Die aktualisierte Gebietsplanung
Group Layer
arcpy.td.AddLevelVariables(in_territory_solution, level, base_level, variables)
Name
Erläuterung
Datentyp
in_territory_solution
Die Eingabe-Gebietsplanung.
Group Layer; Feature Dataset; String
level
Die Ebene, der das berechnete Feld hinzugefügt wird.
String
base_level
Die Ebene unterhalb der Gebietsebene, zu der der Attributwert hinzugefügt wird.
String
variables
[[statistic, statistic_field, field_name, field_alias_name],...]
Die Variablen, die der Ebene hinzugefügt werden.
Spalten der Wertetabelle:
Statistic Field —The field that will be used for the statistical calculation.
Statistic —Type of statistical calculation.
COUNT —The number of values included in the calculation will be identified.
SUM —The values for the specified field will be added together.
MAXIMUM —The largest value for the specified field will be identified.
MINIMUM —The smallest value for the specified field will be identified.
AVERAGE —The average of the values for the specified field will be calculated.
MEDIAN —The median of the values for the specified field will be calculated.
STANDARD_DEVIATION —The standard deviation of values for the specified field will be calculated.
PERCENT_OF_TOTAL —The percentage of each value for the specified field will be calculated from the total sum of the values for the field.
Field Name —Valid name of the field on the level where the calculated data will be stored.
Field Alias Name —Readable and understandable name of the calculated field.
Value Table
Abgeleitete Ausgabe
Name
Erläuterung
Datentyp
out_territory_solution
Die aktualisierte Gebietsplanung
Group Layer
Codebeispiel
AddLevelVariables: Beispiel (Python-Fenster)
Das folgende Skript im Python-Fenster veranschaulicht, wie Sie die Funktion AddLevelVariables verwenden.
import arcpy
arcpy.td.AddLevelVariables("TD", "Territory[1]", "BaseLevel[0]", "populationtotals_totpop_cy SUM TotalPopulation 'Total Pop'")
Umgebungen
Aktueller Workspace
Lizenzierungsinformationen
Basic: Erfordert Business Analyst
Standard: Erfordert Business Analyst
Advanced: Erfordert Business Analyst