Feature Vertices To Points (Data Management)

License Level:BasicStandardAdvanced

Summary

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

Illustration

Feature Vertices To Points
Feature Vertices To Points

Usage

Syntax

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

The input features that can be line or polygon.

Feature Layer
out_feature_class

The output point feature class.

Feature Class
point_location
(Optional)

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.
String

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"
arcpy.FeatureVerticesToPoints_management("parcels.shp",
                                         "c:/output/output.gdb/parcels_corner", 
                                         "ALL")
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")

Environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: No
ArcGIS for Desktop Advanced: Yes
11/18/2013