Feature Vertices To Points (Data Management)


Creates a feature class containing points generated from specified vertices or locations of the input features.


Feature Vertices To Points
Feature Vertices To Points



FeatureVerticesToPoints_management (in_features, out_feature_class, {point_location})
ParameterExplanationData Type

The input features that can be line or polygon.

Feature Layer

The output point feature class.

Feature Class

Specifies where an output point will be created.

  • ALLA point will be created at each input feature vertex. This is the default.
  • MIDA point will be created at the midpoint, not necessarily a vertex, of each input line or polygon boundary.
  • STARTA point will be created at the start point (first vertex) of each input feature.
  • ENDA point will be created at the end point (last vertex) of each input feature.
  • BOTH_ENDSTwo points will be created, one at the start point and another at the endpoint of each input feature.
  • DANGLEA dangle point will be created for any start or end point of an input line, if that point is not connected to another line at any location along that line. This option does not apply to polygon input.

Code Sample

FeatureVerticesToPoints Example 1 (Python window)

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

import arcpy
from arcpy import env
env.workspace = "C:/data"
FeatureVerticesToPoints Example 2 (stand-alone script)

The following stand-alone script is a simple example of how to apply the FeatureVerticesToPoints function in a scripting environment.

# Name: FeatureVerticesToPoints_Example2.py
# Description: Use FeatureVerticesToPoints function to get the mid-points
#              of input line features
# Author: ESRI
# import system modules 
import arcpy
from arcpy import env

# Set environment settings
env.workspace = "C:/data"
# Set local variables
inFeatures = "majorrds.shp"
outFeatureClass = "c:/output/output.gdb/majorrds_midpt"

# Execute FeatureVerticesToPoints
arcpy.FeatureVerticesToPoints_management(inFeatures, outFeatureClass, "MID")


Related Topics

Licensing Information

ArcView: No
ArcEditor: No
ArcInfo: Yes