read_features
Read features from a spatial layer and return them as GeoJSON. Supports filters by SQL WHERE clause, bounding box, and feature limit.
Instructions
Lee features de una capa y los devuelve como GeoJSON FeatureCollection.
Args: path: Ruta al archivo o directorio espacial. layer: Nombre de la capa (None = primera capa). limit: Número máximo de features a retornar (default 10). where: Filtro SQL OGR, ej: "POBLACION > 5000 AND TIPO = 'urbano'". bbox: Filtro espacial [xmin, ymin, xmax, ymax] en el CRS de la capa.
Si el resultado excede el límite de tamaño de salida devuelve un error con sugerencias (reducir limit, filtrar con where/bbox).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | ||
| path | Yes | ||
| layer | No | ||
| limit | No | ||
| where | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |