snap_geometry
Snap one geometry to another within a specified distance tolerance. Provide two WKT geometries and a tolerance to align nearby vertices, returning the snapped geometry as WKT.
Instructions
Snap one geometry to another using shapely.ops.snap. Args: geometry1: WKT string of the geometry to be snapped. geometry2: WKT string of the reference geometry. tolerance: Distance tolerance for snapping. Returns: Dictionary with status, message, and snapped geometry as WKT.
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": {
"geometry1": "<geometry1>",
"geometry2": "<geometry2>",
"tolerance": "<tolerance>"
},
"name": "snap_geometry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geometry1 | Yes | ||
| geometry2 | Yes | ||
| tolerance | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||