Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Data Management toolbox > Features toolset > Tools

Feature to Point (Data Management) (ArcInfo only)

Release 9.2
Last modified November 29, 2010
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Creates a point Feature Class based on an input polygon, line, or multipoint feature class. The attributes of the input features are present in the resulting points.


Illustration

Feature to Point illustration

Usage tips

Command line syntax
An overview of the Command Line window
FeatureToPoint_management <in_features> <out_feature_class> {CENTROID | INSIDE}

Parameter Explanation Data Type
<in_features>

The input features that can be multipoint, line, polygon, or annotation.

Feature Layer
<out_feature_class>

The output feature class to which the results will be written.

Feature Class
{CENTROID | INSIDE}

Specifies the restriction on the placement of the points.

CENTROID (This is the default) — The location of the resulting point's location will be determined as follows

  • multipoint: centroid is the average of the input multipoint's x & y values.
  • line: weighted average of midpoints of line segments, where weight is the length of the segment. Parametric curves are first densified.
  • polygon: the center of gravity of the polygon

INSIDE — The location of the resulting point's location will be determined as follows

  • multipoint: coincident to one of the input multipoint's point.
  • line: on the line.
  • polygon: inside the polygon.

Boolean
Data types for geoprocessing tool parameters


Command line example

FeatureToPoint d:\workspace.mdb\income d:\workspace.mdb\income_pt INSIDE

Scripting syntax
About getting started with writing geoprocessing scripts
FeatureToPoint_management (in_features, out_feature_class, point_location)

Parameter Explanation Data Type
in_features (Required)

The input features that can be multipoint, line, polygon, or annotation.

Feature Layer
out_feature_class (Required)

The output feature class to which the results will be written.

Feature Class
point_location (Optional)

Specifies the restriction on the placement of the points.

CENTROID (This is the default) — The location of the resulting point's location will be determined as follows

  • multipoint: centroid is the average of the input multipoint's x & y values.
  • line: weighted average of midpoints of line segments, where weight is the length of the segment. Parametric curves are first densified.
  • polygon: the center of gravity of the polygon

INSIDE — The location of the resulting point's location will be determined as follows

  • multipoint: coincident to one of the input multipoint's point.
  • line: on the line.
  • polygon: inside the polygon.

Boolean

Data types for geoprocessing tool parameters


Script example

import arcgisscripting
gp = arcgisscripting.create()
gp.workspace = "h:/Workspace"

try:
    gp.FeatureToPoint "d:\workspace.mdb\income", "income_pt", "INSIDE"

except:
    print "Error occured while running FeatureToPoint"
    print gp.GetMessages(2)

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