CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-fiona

Fiona reads and writes spatial data files

88

1.10x
Overview
Eval results
Files

rubric.jsonevals/scenario-10/

{
  "context": "This evaluation assesses how well the engineer uses Fiona's field type system to read schemas, define new schemas with different field types, and write data with converted types. It focuses on proper usage of Fiona's schema structure and type specifications.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Opens input dataset",
      "description": "Uses fiona.open() to open the input dataset for reading",
      "max_score": 10
    },
    {
      "name": "Reads schema",
      "description": "Accesses the input collection's schema property to retrieve the current field definitions",
      "max_score": 10
    },
    {
      "name": "Creates output schema",
      "description": "Constructs a new schema dictionary with 'geometry' and 'properties' keys for the output dataset",
      "max_score": 15
    },
    {
      "name": "Maps field types",
      "description": "Correctly updates the 'properties' dictionary in the schema with new field type specifications from the type_mapping parameter, using Fiona's type notation (e.g., 'int', 'float', 'str', 'date', 'datetime', 'bytes')",
      "max_score": 20
    },
    {
      "name": "Opens output dataset",
      "description": "Uses fiona.open() in write mode with the driver, schema, and CRS parameters to create the output dataset",
      "max_score": 15
    },
    {
      "name": "Converts property values",
      "description": "Iterates through input features and converts property values to match the new field types specified in the schema (e.g., parsing strings to int/float/datetime, encoding to bytes, etc.)",
      "max_score": 20
    },
    {
      "name": "Writes features",
      "description": "Uses the output collection's write() or writerecords() method to write converted features to the output dataset",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-fiona

tile.json