Simplify Geometry
simplify_toolReduce vertices in LineString or Polygon geometry to simplify shapes and decrease file size without losing essential form. Ideal for improving map rendering performance.
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.
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 |