Standardentfernung (Räumliche Statistiken)

Lizenzstufe:BasicStandardAdvanced

Zusammenfassung

Misst den Grad der Konzentration oder Verteilung der Features um den geometrischen Mittelpunkt.

Weitere Informationen zur Funktionsweise von "Standardentfernung"

Bild

Abbildung "Standardentfernung"

Verwendung

Syntax

StandardDistance_stats (Input_Feature_Class, Output_Standard_Distance_Feature_Class, Circle_Size, {Weight_Field}, {Case_Field})
ParameterErläuterungDatentyp
Input_Feature_Class

Eine Feature-Class, die eine Verteilung von Features enthält, für die die Standardentfernung berechnet wird.

Feature Layer
Output_Standard_Distance_Feature_Class

Eine Polygon-Feature-Class, die ein Kreispolygon für jeden Eingabemittelpunkt enthält. Diese Kreispolygone stellen die Standardentfernung an jedem Mittelpunkt grafisch dar.

Feature Class
Circle_Size

Die Größe von Ausgabekreisen in Standardabweichungen. Die Standardkreisgröße beträgt 1; gültige Optionen sind 1, 2 oder 3 Standardabweichungen.

  • 1_STANDARD_DEVIATION
  • 2_STANDARD_DEVIATIONS
  • 3_STANDARD_DEVIATIONS
String
Weight_Field
(optional)

Das Zahlenfeld, das verwendet wird, um Orte nach ihrer relativen Bedeutung zu gewichten.

Field
Case_Field
(optional)

Das Feld, das zur Gruppierung von Features für separate Berechnungen der Standardentfernung verwendet wird. Das Untersuchungsfeld kann eine Ganzzahl, ein Datum oder eine Zeichenfolge aufweisen.

Field

Codebeispiel

StandardDistance – Beispiel (Python-Fenster)

Das folgende Skript im Python-Fenster veranschaulicht die Verwendung des Werkzeugs "StandardDistance".

import arcpy
arcpy.env.workspace = r"C:\data"
arcpy.StandardDistance_stats("AutoTheft.shp", "auto_theft_SD.shp", "1_STANDARD_DEVIATION", "#", "#")
StandardDistance – Beispiel (eigenständiges Python-Skript)

Das folgende eigenständige Python-Skript veranschaulicht, wie das Werkzeug "StandardDistance" verwendet wird.

# Measure the geographic distribution of auto thefts
 
# Import system modules
import arcpy
 
# Local variables...
workspace = "C:/data"
locations = "AutoTheft.shp"
links = "AutoTheft_links.shp"
standardDistance = "auto_theft_SD.shp"
stardardEllipse = "auto_theft_SE.shp"
linearDirectMean = "auto_theft_LDM.shp"
 
try:
    # Set the workspace (to avoid having to type in the full path to the data every time)
    arcpy.env.workspace = workspace
 
    # Process: Standard Distance of auto theft locations...
    arcpy.StandardDistance_stats(locations, standardDistance, "1_STANDARD_DEVIATION", "#", "#")
 
    # Process: Directional Distribution (Standard Deviational Ellipse) of auto theft locations...
    arcpy.DirectionalDistribution_stats(locations, standardEllipse, "1_STANDARD_DEVIATION", "#", "#")
 
    # Process: Linear Directional Mean of auto thefts...
    arcpy.DirectionalMean_stats(links, linearDirectMean, "DIRECTION", "#")
 
except:
    # If an error occurred while running a tool, print the messages 
    print arcpy.GetMessages()

Umgebung

Ausgabe-Koordinatensystem

Die Feature-Geometrie wird vor der Analyse auf das Ausgabe-Koordinatensystem projiziert. Alle mathematischen Berechnungen basieren auf dem Raumbezug des Ausgabe-Koordinatensystems.

Verwandte Themen

Lizenzierungsinformationen

ArcGIS for Desktop Basic: Ja
ArcGIS for Desktop Standard: Ja
ArcGIS for Desktop Advanced: Ja
6/5/2014