Skip to main content
Glama

GIS MCP Server

sjoin_nearest_gpd

Perform nearest neighbor spatial join between two geospatial datasets with optional max distance. Specify join type and save results directly for efficient geospatial analysis.

Instructions

Nearest neighbor spatial join using geopandas.sjoin_nearest. Args: left_path: Path to the left geospatial file. right_path: Path to the right geospatial file. how: Type of join ('left', 'right'). max_distance: Optional maximum search distance. output_path: Optional path to save the result. Returns: Dictionary with status, message, and output info.

Input Schema

NameRequiredDescriptionDefault
howNoleft
left_pathYes
max_distanceNo
output_pathNo
right_pathYes

Input Schema (JSON Schema)

{ "properties": { "how": { "default": "left", "title": "How", "type": "string" }, "left_path": { "title": "Left Path", "type": "string" }, "max_distance": { "default": null, "title": "Max Distance", "type": "number" }, "output_path": { "default": null, "title": "Output Path", "type": "string" }, "right_path": { "title": "Right Path", "type": "string" } }, "required": [ "left_path", "right_path" ], "title": "sjoin_nearest_gpdArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mahdin75/gis-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server