Vector Operations

Prompts for vector geoprocessing operations

1. Union

Merge multiple features into one.

Union all selected features in [layer_name] into a single merged polygon. Dissolve internal boundaries between adjacent features.

2. Intersection

Find overlapping areas between layers.

Calculate the intersection between [layer_1] and [layer_2]. Create a new layer containing only the areas where both layers overlap.

3. Difference

Subtract one layer from another.

Calculate the difference by removing [layer_2] areas from [layer_1]. The result should show only the parts of [layer_1] not covered by [layer_2].

4. Clip

Clip features to a boundary.

Clip [input_layer] using [clip_layer] as the boundary. Keep only the portions of features that fall within the clip boundary.

5. Dissolve

Merge features by attribute.

Dissolve [layer_name] features by [field_name]. Merge all adjacent features with the same [field_name] value into single features.

6. Simplify

Reduce geometry complexity.

Simplify the geometries in [layer_name] with a tolerance of [distance]. Reduce the number of vertices while preserving the overall shape.

7. Centroid

Calculate center points.

Generate centroid points for all polygons in [layer_name]. Create a new point layer with the center of each polygon.

8. Convex Hull

Create bounding polygons.

Generate a convex hull around all features in [layer_name]. Create the smallest convex polygon that contains all features.

9. Voronoi Polygons

Create Voronoi/Thiessen polygons.

Generate Voronoi polygons from points in [point_layer]. Each polygon should contain all area closest to its point than any other point.

10. Line to Polygon

Convert lines to polygons.

Convert the closed lines in [line_layer] to polygons. Create polygon features from any lines that form closed loops.