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.3
Last modified March 8, 2012
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

NOTE: This topic was updated for 9.3.1.


Creates a point feature class based on an input polygon, line, or multipoint feature class. The attributes of the input features are maintained in the output points feature class.


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 (either polygon or line or multipoint) that will be converted to point features.

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 resulting point's location will be determined as follows:

  • multipoint: The x- and y-coordinate of the resulting point will be the average of the input multipoint's x- and y-values.
  • line: The x- and y-coordinate of the resulting point will be the 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 (centroid) of the polygon will be used.

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

  • multipoint: A point coincident to one of the input's points will be used.
  • line: A point on the line will be used.
  • polygon: A point inside the polygon will be used.

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 (either polygon or line or multipoint) that will be converted to point features.

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 resulting point's location will be determined as follows:

  • multipoint: The x- and y-coordinate of the resulting point will be the average of the input multipoint's x- and y-values.
  • line: The x- and y-coordinate of the resulting point will be the 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 (centroid) of the polygon will be used.

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

  • multipoint: A point coincident to one of the input's points will be used.
  • line: A point on the line will be used.
  • polygon: A point inside the polygon will be used.

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.