CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-fiona

Fiona reads and writes spatial data files

88

1.10x
Overview
Eval results
Files

task.mdevals/scenario-7/

Coordinate Reference System Converter

A utility that standardizes coordinate reference system (CRS) information from multiple input formats into a common output format.

Capabilities

Parse CRS from EPSG code

  • When given the integer 4326, returns a dictionary with CRS information in PROJ JSON format @test
  • When given the integer 3857, returns a dictionary with CRS information in PROJ JSON format @test

Parse CRS from PROJ string

  • When given the PROJ string "+proj=longlat +datum=WGS84 +no_defs", returns a dictionary with CRS information in PROJ JSON format @test
  • When given the PROJ string "+proj=merc +a=6378137 +b=6378137", returns a dictionary with CRS information in PROJ JSON format @test

Parse CRS from WKT string

  • When given a WKT string for WGS84, returns a dictionary with CRS information in PROJ JSON format @test

Convert CRS to WKT format

  • When given an EPSG code 4326, returns the Well-Known Text representation of the CRS @test
  • When given a PROJ string "+proj=longlat +datum=WGS84 +no_defs", returns the Well-Known Text representation of the CRS @test

Implementation

@generates

API

def parse_crs_to_dict(crs_input):
    """
    Parse a CRS from various input formats and return as a dictionary.

    Args:
        crs_input: Can be an integer (EPSG code), a PROJ string, or a WKT string

    Returns:
        dict: CRS information in PROJ JSON format (dictionary representation)
    """
    pass

def convert_crs_to_wkt(crs_input):
    """
    Convert a CRS from various input formats to Well-Known Text format.

    Args:
        crs_input: Can be an integer (EPSG code), a PROJ string, or a WKT string

    Returns:
        str: WKT representation of the CRS
    """
    pass

Dependencies { .dependencies }

fiona { .dependency }

Provides GIS data handling and coordinate reference system support.

Install with Tessl CLI

npx tessl i tessl/pypi-fiona

tile.json