GME

Geospatial Modelling Environment

convert.linestopoints (Convert Lines To Points)

Converts lines (polylines) to points by extracting the vertices of the polylines

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]);

inthe input line data source
uidfieldthe unique ID field of the input feature data source
outthe 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");


Messages

Please consider making a purchase to support the continued development of these tools  Read more...

Tips on how to use this interface efficiently  Read more...

Links

Open Source GIS

Copyright © 2001-2014 Hawthorne L. Beyer, Ph.D., Spatial Ecology LLC    Connect on LinkedIn