spatial_filter
Filter features by spatial relationship—intersects, within, contains, touches, crosses, overlaps, or disjoint—against another layer, a bounding box, or a GeoJSON geometry.
Instructions
Spatial predicate filter: features of layer that intersect / are within / contain / touch / cross / overlap / are disjoint from (a) features of another layer (other_layer + other_filters), (b) a bbox [min_lon,min_lat,max_lon,max_lat], or (c) a GeoJSON geometry. Example: pois within the polygon 'Central Park'. Ask the user if the second operand is unclear.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | [min_lon, min_lat, max_lon, max_lat] in WGS84. | |
| layer | Yes | ||
| limit | No | Max rows to return (default 100; server-side cap applies). | |
| columns | No | Attribute columns to return (default: all non-geometry). | |
| filters | No | Attribute filters on the layer, combined with AND. | |
| geometry | No | 'auto' (default): full geometry if small, else representative points; 'full'; 'centroid'; 'none' (attributes only). The complete geometry is always kept server-side under result_id for render_map. | auto |
| relation | No | intersects | |
| other_layer | No | ||
| other_filters | No | Filters selecting the features of other_layer. | |
| geojson_geometry | No | A GeoJSON geometry object in WGS84. |