clip_raster_with_shapefile
Clips raster data to shapefile polygon boundaries and saves the result, reprojecting the shapefile to the raster CRS when needed. Use it to extract raster areas for a region of interest.
Instructions
Clip a raster to shapefile polygons and save it. The shapefile is reprojected to the raster CRS when needed.
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": {
"raster_path_or_url": "<raster_path_or_url>",
"shapefile_path": "<shapefile_path>",
"destination": "<destination>"
},
"name": "clip_raster_with_shapefile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| destination | Yes | ||
| shapefile_path | Yes | ||
| raster_path_or_url | Yes |