simplify_layer
Simplify GIS geometries using Douglas-Peucker while preserving topology. Measures area/length drift before and after, handles geographic CRS via UTM estimation, and verifies feature count unchanged.
Instructions
Simplify geometries (Douglas-Peucker, topology preserved) with the drift measured: the manifest records total area and length before and after.
Geographic-CRS inputs are simplified in an estimated UTM zone (decision recorded) and returned in the input CRS — a tolerance in degrees is a different distance at every latitude. On projected CRS the tolerance is interpreted in the CRS units. The feature count is verified unchanged; vertex counts before/after are in the result. Inputs without a CRS are refused.
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": {
"input_path": "<input_path>",
"tolerance_meters": "<tolerance_meters>",
"output_path": "<output_path>"
},
"name": "simplify_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_path | Yes | ||
| output_path | Yes | ||
| tolerance_meters | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||