Remove polygon holes

This tool can be used to remove any holes within a vector polygon file. The user must specify the name of the input shapefile, which must be of a polygon shape-type, and the name of the output file.

See Also:

Scripting:

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

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

This is a Groovy script also using this tool:

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

Credits: