Difference

This operation makes the diffenrence between the objects of two vector layers.

The new layer geometries is the result of the spatial DIFFERENCE of all objects from an input layer with another layer objects.

The new layer attributes are composed at least by an ID, and a GEOMETRY. Besides that, the input layer attributes can be chosen to compose the new layer.

It is accessed through:

Processing > Vector Processing > Difference...

  1. Select the Input layer to use as reference.
    • Optionally, check the option "Only selected" if you wish to process only the objects that are selected in the map display.
  2. Select the "Difference layer" to use the geometries to eliminate the intersections with the input layer.
    • Optionally, check the option "Only selected" if you wish to process only the objects that are selected in the map display.
  3. In the tab "Attributes", select one or more attributes that will be added in the new layer.
  4. In the tab "Output object type", select the output geometry type: Single Geometry or Multi Geometries.
  5. Inform the "Output Repository" by clicking on:
    1. (...) to select the output directory and also inform the new layer name to store the result, or
    2. database icon to select the Data Source.
  6. Inform the new Layer Name to store the dissolve result, if the repository is a data source.
  7. Click OK to perform the operation or Cancel to close the interface.
Usage Tips:

The Difference result can be stored in different TerraLib data sources. Check data source selector for more details on how to select a data source.