Description
This tool converts the lines (polylines) in a polyline data source to points in a new or existing point data source by extracting all of the vertices that define the polyline. This works with multipart polylines. The unique polygon ID is written to the point attribute table. Note that the resulting points will overlap where two line vertices have the same coordinates (this algorithm does not simplify the resulting point data to remove points where there is precise overlap).
Syntax
convert.linestopoints(in, uidfield, out, [where]);
| in | the input line (polyline) data source | |
| uidfield | the unique ID field of the input feature data source | |
| out | the output point data source | |
| [where] | the selection statement that will be applied to the feature data source to identify a subset of features to process (see full Help documentation for further details) |
Example
convert.linestopoints(in="C:\data\rivers.shp", uidfield="RIVERID", out="C:\data\riverpoints.shp");
convert.linestopoints(in="C:\data\roads.shp", uidfield="RDID", out="C:\data\rdpoints.shp");