Fiona reads and writes spatial data files
88
Build a tool that counts features and calculates property statistics from GIS vector data files using memory-efficient iteration.
@generates
def count_features(filepath: str) -> int:
"""
Count the total number of features in a GIS file.
Args:
filepath: Path to the GIS vector data file
Returns:
Total number of features
"""
pass
def calculate_property_sum(filepath: str, property_name: str) -> float:
"""
Calculate the sum of a numeric property across all features.
Args:
filepath: Path to the GIS vector data file
property_name: Name of the numeric property to sum
Returns:
Sum of the property values
"""
pass
def find_property_max(filepath: str, property_name: str) -> float:
"""
Find the maximum value of a numeric property across all features.
Args:
filepath: Path to the GIS vector data file
property_name: Name of the numeric property
Returns:
Maximum value of the property
"""
passProvides GIS vector data reading capabilities with efficient iteration support.
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