clip_layer_to_extent
Clip a layer to a specified bounding box or to the extent of a reference layer, saving the result as a new layer without altering the original.
Instructions
Clip a layer to a bounding-box extent, saving the result as a new layer.
Provide exactly one of reference_layer_name (clip to that layer's
extent) or bbox as [xmin, ymin, xmax, ymax] (crs defaults to the
source layer's CRS if omitted). This clips to the rectangular extent, not
the reference layer's actual feature geometries. The original layer is
left untouched.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"layer_name": "<layer_name>"
},
"name": "clip_layer_to_extent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crs | No | ||
| bbox | No | ||
| name | No | ||
| layer_name | Yes | ||
| reference_layer_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||