Description
This tool converts the polygons in a polygon data source to points in a new or existing point data source by extracting all of the vertices that define the polygon. This works with multipart polygons, and with any inner rings or holes in the polygon: all the vertices are extracted. The unique polygon ID is written to the point attribute table. Note that the resulting points will overlap where two polygons share the same boundary (this algorithm does not simplify the resulting point data to remove points from different polygons where there is precise overlap).
Syntax
convert.polygonstopoints(in, uidfield, out, [where]);
| in | the input polygon 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.polygonstopoints(in="C:\data\plots.shp", uidfield="PLOTID", out="C:\data\bndpoints.shp");
convert.polygonstopoints(in="C:\data\parcels.shp", uidfield="PARCELID", out="C:\data\bndpoints.shp");