Simplify Geometry
simplify_toolReduce vertices in LineString or Polygon geometries with Douglas-Peucker simplification to shrink file sizes and improve rendering performance while preserving shape. Works offline without API calls.
Instructions
Simplify a LineString or Polygon by reducing the number of vertices while preserving the general shape. Uses the Douglas-Peucker algorithm. Useful for reducing file sizes and improving rendering performance. Works offline without API calls.
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": {
"geometry": "<geometry>"
},
"name": "simplify_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geometry | Yes | LineString or Polygon coordinates | |
| tolerance | No | Simplification tolerance (higher values = more simplification). Default: 0.01 | |
| highQuality | No | Use high quality simplification (slower but more accurate). Default: false |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| simplified | Yes | Simplified geometry coordinates | |
| originalVertexCount | Yes | ||
| reductionPercentage | Yes | ||
| simplifiedVertexCount | Yes |