Open Table of Contents

Polyline To Point

Go to ToolBox Implementation Go to .NET Implementation

Converts a polyline data set to a point feature class

Inputs:

Outputs:

Notes :

Example:

Angle at the start of segments

Angle at the end of segments

ang_start.jpg (6844 bytes)

ang_end.jpg (6707 bytes)

ToolBox implementation
(Go to TOP)

Command line syntax 

ET_GPPolylineToPoints <input_dataset> <out_feature class> <Vertex | Middle | Node> {remove_duplicates} {calc_point_pos} {point_angle} {angle_at_start} {keep_ZM}

Parameters

Part Description
<input_dataset> A Polyline feature class or feature layer
<out_feature class> A String - the full name of the output feature class (A feature class with the same full name should not exist)
<Vertex | Middle | Node> Convert Option. A String -  the export option to be used. The available options are (Case sensitive): 
  • "Vertex" -  - the vertices of all polylines will be converted to points. If {remove_duplicates} is True  the duplicate points created from the nodes of two polylines sharing a common node will be represented by one point.
  • "Middle" - only the middle point of each polyline will be exported.
  • "Node" - only the nodes of each polyline will be exported. If {remove_duplicates} is True  the duplicate points created from the nodes of two polylines sharing a common node will be represented by one point.
{remove_duplicates} A Boolean  used only with Convert Option = "Vertex" and Convert Option = "Node". If True the duplicate points representing coincident nodes will be removed.
{calc_point_pos} A Boolean indicating whether the position of the points along the polylines to be calculated (only if the "Vertex option is used)
{point_angle} A Boolean - indicates whether an angle attribute to be added to the point attribute table.
{angle_at_start} A Boolean - indicates from which polyline segment to be calculated the angle. True - from the start segment, False3 from the segment end. See the main page of the function for an example.
{keep_ZM} A Boolean indicating whether the the output will be of Z(M) type (only if the input dataset is of Z(M) type)

Scripting syntax

ET_GPPolylineToPoints (input_dataset, out_feature class, convert_option, remove_duplicates, calc_point_pos, point_angle, angle_at_start, keep_ZM)

See the explanations above:
<> - required parameter
{} - optional parameter

.NET implementation
(Go to TOP)

PolylineToPoints(pInFC As IFeatureClass, sOutFName As String, sOption As String, Optional bAngle As Boolean = False, Optional sAng As String = "From", Optional bDuplicates As Boolean = False, Optional bPos As Boolean = False, Optional bKeepZM As Boolean = False) As IFeatureClass

Copyright Ianko Tchoukanski