Feature to Point (Data Management) (ArcInfo only) |
|
Release 9.3
Last modified March 8, 2012 |
![]() ![]() ![]() Print all topics in : "Tools" |
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
Usage tips
The ORIG_FID field will be added to the Output Feature Class and will be set to the Input Feature's FID.
For line features that have true curves, if Inside is checked in the tool dialog box or set to INSIDE in the command line, the output point will be at the midpoint of the line.
The following environment settings affect this tool: Coordinate system, Extent, XY Tolerance, Z Tolerance, M Tolerance, XY Resolution, Z Resolution, M Resolution, Output XY domain, Output Z domain, Output M domain, Output has M values, Output has Z values, Default Z value, Configuration keyword, and Output Spatial Grid.
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:
INSIDE — The resulting point's location will be determined as follows:
|
Boolean |
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:
INSIDE — The resulting point's location will be determined as follows:
|
Boolean |
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)