nearest_point_on_geometry
Identify the nearest point on one geometry relative to another using Well-Known Text (WKT) inputs. Outputs the closest point location as WKT for geospatial analysis and decision-making.
Instructions
Find the nearest point on geometry2 to geometry1 using shapely.ops.nearest_points.
Args:
geometry1: WKT string of the first geometry (e.g., a point).
geometry2: WKT string of the second geometry.
Returns:
Dictionary with status, message, and the nearest point as WKT.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
geometry1 | Yes | ||
geometry2 | Yes |
Input Schema (JSON Schema)
{
"properties": {
"geometry1": {
"title": "Geometry1",
"type": "string"
},
"geometry2": {
"title": "Geometry2",
"type": "string"
}
},
"required": [
"geometry1",
"geometry2"
],
"title": "nearest_point_on_geometryArguments",
"type": "object"
}