weights_from_shapefile
Generate spatial weights from a shapefile using queen or rook contiguity to define neighbor relationships for spatial analysis.
Instructions
Create a spatial weights (W) from a shapefile using contiguity.
contiguity: 'queen' or 'rook' (default 'queen')
id_field: optional attribute name to use as observation IDs
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shapefile_path | Yes | ||
| contiguity | No | queen | |
| id_field | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||