Hole proportion

This calculates the proportion of the total area of a polygon's holes (i.e. islands) relative to the area of the polygon's hull. It can be a useful measure of shape complexity. The user must specify the name of the input vector file. The output data will be displayed as a new field (HOLE_PROP) in the input shapefile's database file (.dbf).

See Also:

Scripting:

The following is an example of a Python script that uses this tool:

wd = pluginHost.getWorkingDirectory()
inputFile = wd + "polygons.shp"
args = [inputFile]
pluginHost.runPlugin("HoleProportion", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def inputFile = wd + "polygons.shp"
String[] args = [inputFile]
pluginHost.runPlugin("HoleProportion", args, false)

Credits: