Edge proportion

This tool will measure the edge proportion, i.e. the proportion of grid cells in a polygon that are located along the polygon's boundary, for an input raster image. Edge proportion is an indicator of polygon shape complexity and elongation. The user must specify the name of the output raster file, which will be raster layer containing the input features assigned the edge proportion. The user may also optionally choose to output text data for easy input to a spreadsheet or database.

See Also:

Scripting:

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

wd = pluginHost.getWorkingDirectory()
inputFile = wd + "input.dep"
outputFile = wd + "output.dep"
textOutput = "true"
args = [inputFile, outputFile, textOutput]
pluginHost.runPlugin("EdgeProportion", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def inputFile = wd + "input.dep"
def outputFile = wd + "output.dep"
textOutput = "true"
String[] args = [inputFile, outputFile, textOutput]
pluginHost.runPlugin("EdgeProportion", args, false)

Credits: