knn_weights
Build k-nearest-neighbor spatial weights from point coordinates to model local spatial relationships in GIS analysis.
Instructions
Build k-nearest-neighbor spatial weights from point coordinates.
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": {
"data_path": "<data_path>",
"k": "<k>"
},
"name": "knn_weights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | Yes | ||
| id_field | No | ||
| data_path | Yes |