weights_from_shapefile
Build queen or rook contiguity weights from a shapefile and return a neighbor summary instead of the full weights matrix.
Instructions
Build queen or rook contiguity weights. Returns a neighbor summary, not the full weights matrix.
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": {
"shapefile_path": "<shapefile_path>"
},
"name": "weights_from_shapefile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_field | No | ||
| contiguity | No | queen | |
| shapefile_path | Yes |