snap_geometry
Align one geometry to another by snapping it within a specified tolerance using shapely.ops.snap on the GIS MCP Server, returning the snapped geometry as a WKT string.
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.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
geometry1 | Yes | ||
geometry2 | Yes | ||
tolerance | Yes |
Input Schema (JSON Schema)
{
"properties": {
"geometry1": {
"title": "Geometry1",
"type": "string"
},
"geometry2": {
"title": "Geometry2",
"type": "string"
},
"tolerance": {
"title": "Tolerance",
"type": "number"
}
},
"required": [
"geometry1",
"geometry2",
"tolerance"
],
"title": "snap_geometryArguments",
"type": "object"
}