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 command-line utility that converts coordinate reference system (CRS) definitions between different formats commonly used in GIS applications.
The utility should accept CRS definitions in multiple input formats and convert them to a specified output format. It must handle the following conversions:
The program should:
@generates
def parse_crs(crs_string: str):
"""
Parse a CRS definition string and return a CRS object.
Args:
crs_string: A string representing a CRS in various formats
(EPSG code, WKT, PROJ, or authority string)
Returns:
A CRS object representing the parsed coordinate reference system
Raises:
ValueError: If the CRS string cannot be parsed
"""
pass
def convert_to_wkt(crs_obj) -> str:
"""
Convert a CRS object to Well-Known Text format.
Args:
crs_obj: A CRS object
Returns:
WKT string representation of the CRS
"""
pass
def convert_to_proj(crs_obj) -> str:
"""
Convert a CRS object to PROJ string format.
Args:
crs_obj: A CRS object
Returns:
PROJ string representation of the CRS
"""
pass
def get_crs_type(crs_obj) -> str:
"""
Determine if a CRS is geographic or projected.
Args:
crs_obj: A CRS object
Returns:
'geographic' if the CRS is geographic, 'projected' if projected,
or 'unknown' if type cannot be determined
"""
passProvides coordinate reference system handling capabilities.