### Intersection

The Intersection operation computes the spatial intersection between the objects of two layers. The objects of the input layer that have intersection with the objects of the overlay layer will be cut and included in an output layer.

It is accessed through:

Vector Processing > Intersection...

1. Select the Input layer to apply the intersection operation.
2. Optionally check Only Selected box to apply the intersection only over selected objects.
3. Select the Overlay layer to intersect with.
4. Optionally check Only Selected box to apply the intersection only over selected objects.
5. Optionally check Include attributes of input layer box to include all attributes of objects that were cut into the output layer.
6. 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. to select the output Data Source.

7. Inform the new Layer Name to store the intersection result, if the repository is a data source.
8. Click OK to perform the operation or Cancel to close the interface.

Usage tips:

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

If the Input layer and the Overlay layer are in different SRSs (Spatial Reference System) the geometries of the Overlay layer will be converted before executing the operation. If only one of them have an unknown SRS a message will be issued, since no conversion will be possible and the result might be incorrect.

The option to use only selected objects from the Input and/or Overlay layers is under development.