distance_band_weights
Generate spatial weights for point data based on distance thresholds using GIS MCP Server. Define neighbors within a specified range and apply binary or inverse distance weights for geospatial analysis.
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
Input Schema
Name | Required | Description | Default |
---|---|---|---|
binary | No | ||
data_path | Yes | ||
id_field | No | ||
threshold | Yes |
Input Schema (JSON Schema)
{
"properties": {
"binary": {
"default": true,
"title": "Binary",
"type": "boolean"
},
"data_path": {
"title": "Data Path",
"type": "string"
},
"id_field": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id Field"
},
"threshold": {
"title": "Threshold",
"type": "number"
}
},
"required": [
"data_path",
"threshold"
],
"title": "distance_band_weightsArguments",
"type": "object"
}