tessl install tessl/pypi-fiona@1.10.0Fiona reads and writes spatial data files
Agent Success
Agent success rate when using this tile
88%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.1x
Baseline
Agent success rate without this tile
80%
Build a Python module that retrieves specific geographic features from a spatial data file by their unique identifiers.
The module should provide a function that:
@generates
def retrieve_features_by_id(filepath: str, feature_ids: list[int]) -> list[dict]:
"""
Retrieve geographic features from a spatial data file by their IDs.
Args:
filepath: Path to the spatial data file
feature_ids: List of feature IDs to retrieve
Returns:
List of feature dictionaries (GeoJSON-like structure)
"""
passProvides GIS data reading capabilities and random access to features by ID.