GME

Geospatial Modelling Environment

convert.polygonstopoints

Converts polygons to points by extracting the vertices of the polygons

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

inthe input polygon 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.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");


Messages

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

An apology for failing to respond to correspondence in recent months  Read more...

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

Sign up for the newsletter if you wish to receive notification of updates, new functionality, bug fixes, and other related news

Links

Open Source GIS

Copyright © 2001-2010 Hawthorne L. Beyer, Spatial Ecology LLC