Usgs Spatcat Distance To Layers
usgs_spatcat_distance_to_layersFind the nearest vector features in specified USGS layers to a WGS84 point, polygon, or multipolygon, with distance in meters and an outward search buffer.
Instructions
Find nearest vector features to a WGS84 Point, Polygon, or MultiPolygon.
Esri/WFS distance is closest approach in meters, zero for overlap, searching outward up to buffer_meters. S3 vectors use polygon centroids and ignore buffer_meters. Raster distance (COG/WCS/WMS raster) is NOT implemented. Discover supported layers first. No match does not prove absence beyond the search radius; preserve per-layer errors.
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": {
"layer_ids": "<layer_ids>",
"geometry": "<geometry>"
},
"name": "usgs_spatcat_distance_to_layers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| geometry | Yes | Bounded two-dimensional WGS84 GeoJSON geometry (longitude, latitude). | |
| layer_ids | Yes | ||
| buffer_meters | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| source | Yes | ||
| warnings | No | ||
| retrieved_at | Yes |