Create Thiessen Polygons (Analysis)

License Level:BasicStandardAdvanced

Summary

Creates Thiessen polygons from point input features.

Each Thiessen polygon contains only a single point input feature. Any location within a Thiessen polygon is closer to its associated point than to any other point input feature.

Illustration

Thiessen illustration

Usage

Syntax

CreateThiessenPolygons_analysis (in_features, out_feature_class, {fields_to_copy})
ParameterExplanationData Type
in_features

The point input features from which Thiessen polygons will be generated.

Feature Layer
out_feature_class

The output feature class containing the Thiessen polygons that are generated from the point input features.

Feature Class
fields_to_copy
(Optional)

Determines which attributes from the point input features will be transferred to the output feature class.

  • ONLY_FIDOnly the FID field from the input features will be transferred to the output feature class. This is the default.
  • ALLAll attributes from the input features will be transferred to the output feature class.
String

Code Sample

CreateThiessenPolygons Example (Python Window)

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

import arcpy
arcpy.env.workspace = "C:/data/data.gdb"
arcpy.CreateThiessenPolygons_analysis("schools", "c:/output/output.gdb/thiessen1", "ALL")
CreateThiessenPolygons Example 2 (Stand-alone script)

The following stand-alone script demonstrates how to use the CreateThiessenPolygons function.

# Name: CreateThiessenPolygons_Example2.py
# Description: Create symmetrical difference between input and update features
# Author: ESRI
 
# Import system modules
import arcpy
from arcpy import env
 
# Set environment settings
env.workspace = "C:/data/data.gdb"
 
# Set local variables
inFeatures = "schools"
outFeatureClass = "c:/output/output.gdb/thiessen1"
outFields = "ALL"
 
# Execute CreateThiessenPolygons
arcpy.CreateThiessenPolygons_analysis(inFeatures, outFeatureClass, outFields)

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: No
ArcGIS for Desktop Advanced: Yes
5/6/2013