This tool can be used to isolate all of the features, or parts of features, in two input vectors that do not overlap. Symmetric Difference is the vector equivalent to the Boolean operator XOR used for raster overlay. Notice that the same overlay effect to Symmetric Difference can be achieved by:
Union(A.difference(B), B.difference(A))
The following is an example of a Python script that uses this tool:
wd = pluginHost.getWorkingDirectory()
inputFile1 = wd + "input2.shp"
inputFile2 = wd + "input2.shp"
outputFile = wd + "output.shp"
args = [inputFile1, inputFile2 outputFile]
pluginHost.runPlugin("SymmetricDifference", args, False)
This is a Groovy script also using this tool:
def wd = pluginHost.getWorkingDirectory()
def inputFile1 = wd + "input1.shp"
def inputFile2 = wd + "input2.shp"
def outputFile = wd + "output.shp"
String[] args = [inputFile1, inputFile2, outputFile]
pluginHost.runPlugin("SymmetricDifference", args, false)