Description
This tool converts the polygons in a polygon data source to lines (polylines) in a new or existing line data source. This works with multipart polygons, and with any inner rings or holes in the polygon: all the component lines that make up the polygon are included in the output line. The unique polygon ID is written to the line attribute table. Note that the resulting lines will overlap where two polygons share the same boundary (this algorithm does not simplify the resulting line data to remove segments from different polygons where there is precise overlap).
Syntax
convert.polygonstolines(in, uidfield, out, [where]);
| in | the input polygon data source | |
| uidfield | the unique ID field of the input feature data source | |
| out | the output line (polyline) 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.polygonstolines(in="C:\data\plots.shp", uidfield="PLOTID", out="C:\data\bndlines.shp");
convert.polygonstolines(in="C:\data\parcels.shp", uidfield="PARCELID", out="C:\data\bndlines.shp");