Fiona reads and writes spatial data files
88
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.
Install with Tessl CLI
npx tessl i tessl/pypi-fionadocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10