Difference Features
Function Overview
The Difference Features tool calculates the spatial difference between two vector layers. It preserves the parts of the First input vector file that are not covered by the Second input vector file. In other words, the second layer is used as an erase area that removes overlapping spatial areas from the first layer.
The output geometry comes only from the remaining geometry of the first input layer. Features that do not intersect the second layer are retained completely. Overlapping features are cut and their overlapping parts are removed. Features completely covered by the second layer are not included in the result. The tool can handle coordinate system differences between the two layers internally, but input geometry validity still affects overlay results.
Use Cases
- Remove restricted areas, water bodies, protected zones, or other exclusion areas from a planning layer.
- Use the difference result as an intermediate step in a longer GIS processing workflow.
- Improve efficiency in batch processing, repeated execution, or standardized delivery scenarios.
Parameters
| Parameter | Description | Notes |
|---|---|---|
| First input vector file | Specifies the vector file from which overlapping areas will be removed. | Required |
| Second input vector file | Specifies the vector file used as the subtraction or erase area. | Required |
| Output vector file | Specifies the output vector file. | Required |
Operating Steps
- Start the tool: Open the Geoprocessing Toolbox, go to Analysis Tools > Overlay Analysis, and start Difference Features.
- Prepare inputs: Select the First input vector file and Second input vector file, and confirm that both input datasets are complete and readable.
- Set core parameters: Confirm that the second input correctly represents the area to subtract from the first input.
- Set output: Specify the Output vector file, and confirm that the output path, format, and naming rules meet downstream requirements.
- Run and check results: Click Run to execute the task. After completion, check the output extent, field structure, geometry type, and spatial position.
Notes
- Test the parameter settings with a small sample dataset before processing production data in batches.
- Validate input geometries before running the overlay operation to reduce the risk of failed or abnormal results.