Description
This tool allows you to create a new polygon layer consisting of only the exterior or interior components of the input polygons. Thus, it is only usefully applied to polygons containing 'holes' when you either want the outer edges of the polygon without preserving the holes, or you want to convert the holes to new polygons.
The 'where' clause can be used to define a subset of polygons to process. See the 'where' section for further details on how to formulate a where clause.
Syntax
geom.extractpolygoncomponents(in, out, extract, [copyfields], [where]);
| in | the input polygon data source | |
| out | the output polygon feature data source | |
| extract | the keyword defining what components to extract (options: EXTERIOR, INTERIOR) | |
| [copyfields] | (TRUE/FALSE): if TRUE the fields in the input attribute table are copied to the output attribute table (default=FALSE) | |
| [where] | the selection statement that will be applied to the line feature data source to identify a subset of lines to process (see full Help documentation for further details) |
Example
geom.extractpolygoncomponents(in="C:\data\lakes.shp", out="C:\data\shore.shp", extract="EXTERIOR");
geom.extractpolygoncomponents(in="C:\data\lakes.shp", out="C:\data\islands.shp", extract="INTERIOR", copyfields=TRUE, where="AREA > 10000");