GME

Geospatial Modelling Environment

geom.extractpolygoncomponents (Extract Polygon Components)

Extracts the exterior or interior components of polygons containing holes

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

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)

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


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-2012 Hawthorne L. Beyer, Ph.D., Spatial Ecology LLC    Connect on LinkedIn