Show Navigation | Hide Navigation

Central Feature (Spatial Statistics)

Release 9.2
Last modified January 9, 2009
E-mail This Topic Printable Version Give Us Feedback


Related Topics

Identifies the most centrally located feature in a point, line, or polygon feature class.

Learn more about how Central Feature works


Illustration

Central Feature illustration

Usage tips

Command line syntax
An overview of the Command Line window
CentralFeature_stats <Input_Feature_Class> <Output_Feature_Class> <Euclidean Distance | Manhattan Distance> {Weight_Field} {Self_Potential_Weight_Field}

Parameter Explanation Data Type
<Input_Feature_Class>

The feature class containing a distribution of features from which to identify the most centrally located feature.

Feature Layer
<Output_Feature_Class>

The feature class that will contain the most centrally located feature in the input feature class.

Feature Class
<Euclidean Distance | Manhattan Distance>

Specifies how distances are calculated when measuring concentrations.

  • Euclidean (as the crow flies) — The straight-line distance between two points.
  • Manhattan (city block) — The distance between two points measured along axes at right angles. Calculated by summing the (absolute) differences between point coordinates.

String
{Weight_Field}

The numeric field used to weight distances in the origin-destination distance matrix.

Field
{Self_Potential_Weight_Field}

The field representing self-potential — The distance or weight between a feature and itself.

Field
Data types for geoprocessing tool parameters


Command line example

CentralFeature e:\project93\data\hospitals.shp e:\project93\output\hosp_cf.shp 'Manhattan Distance' POP #

Scripting syntax
About getting started with writing geoprocessing scripts
CentralFeature_stats (Input_Feature_Class, Output_Feature_Class, Distance_Method, Weight_Field, Self_Potential_Weight_Field)

Parameter Explanation Data Type
Input_Feature_Class (Required)

The feature class containing a distribution of features from which to identify the most centrally located feature.

Feature Layer
Output_Feature_Class (Required)

The feature class that will contain the most centrally located feature in the input feature class.

Feature Class
Distance_Method (Required)

Specifies how distances are calculated when measuring concentrations.

  • Euclidean (as the crow flies) — The straight-line distance between two points.
  • Manhattan (city block) — The distance between two points measured along axes at right angles. Calculated by summing the (absolute) differences between point coordinates.

String
Weight_Field (Optional)

The numeric field used to weight distances in the origin-destination distance matrix.

Field
Self_Potential_Weight_Field (Optional)

The field representing self-potential — The distance or weight between a feature and itself.

Field

Data types for geoprocessing tool parameters


Script example

# Measure geographic distribution characteristics of coffee house locations weighted by the number of employees
# Import system modules
import arcgisscripting

# Create the Geoprocessor object
gp = arcgisscripting.create()

# Local variables...
workspace = "C:/data"
input_FC = "coffee_shops.shp"
CF_output = "coffee_CF.shp"
MC_output = "coffee_MC.shp"
weight_field = "NUM_EMP"

try:
    # Set the workspace to avoid having to type out full path names
    gp.workspace = workspace

    # Process: Central Feature...
    gp.CentralFeature_stats(input_FC, CF_output, "Euclidean Distance", weight_field, "#")

    # Process: Mean Center...
    gp.MeanCenter_stats(input_FC, MC_output, weight_field, "#", "#")

except:
    # If an error occurred when running the tool, print out the error message.
    print gp.GetMessages()

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.