Geospatial Modelling Environment

geom.extractpolygoncomponents (Extract Polygon Components)

Extracts the exterior or interior components of polygons containing holes


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.


geom.extractpolygoncomponents(in, out, extract, [copyfields], [where]);

inthe input polygon data source
outthe output polygon feature data source
extractthe 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)


geom.extractpolygoncomponents(in=”C:datalakes.shp”, out=”C:datashore.shp”, extract=”EXTERIOR”);

geom.extractpolygoncomponents(in=”C:datalakes.shp”, out=”C:dataislands.shp”, extract=”INTERIOR”, copyfields=TRUE, where=”AREA > 10000″);


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

Tips on how to use this interface efficiently 


Open Source GIS

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