distance_band_weights
Generate a spatial weights matrix from point features using a distance band. Set a threshold to define neighbors, select binary or inverse distance weighting, and optionally assign custom observation IDs.
Instructions
Create a distance-based spatial weights (W) object from point data.
data_path: path to point shapefile or GeoPackage
threshold: distance threshold for neighbors (in CRS units, e.g., meters)
binary: True for binary weights, False for inverse distance weights
id_field: optional attribute name to use as observation IDs
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>",
"threshold": "<threshold>"
},
"name": "distance_band_weights"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_path | Yes | ||
| threshold | Yes | ||
| binary | No | ||
| id_field | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||