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-8/

{
  "context": "This evaluation assesses how well the engineer utilizes Fiona's random access feature retrieval capability, specifically focusing on the proper use of the collection[fid] indexing pattern and appropriate error handling for non-existent feature IDs.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Opens collection properly",
      "description": "Uses fiona.open() to open the spatial data file in read mode ('r'), correctly passing the filepath parameter",
      "max_score": 15
    },
    {
      "name": "Uses random access",
      "description": "Retrieves features by ID using the collection[feature_id] indexing pattern (not by iterating through all features)",
      "max_score": 35
    },
    {
      "name": "Handles missing IDs",
      "description": "Catches KeyError or IndexError exceptions when accessing non-existent feature IDs and continues processing remaining IDs",
      "max_score": 25
    },
    {
      "name": "Resource management",
      "description": "Uses context manager (with statement) or properly closes the collection after use to ensure resource cleanup",
      "max_score": 15
    },
    {
      "name": "Returns features correctly",
      "description": "Returns features as dictionaries in their GeoJSON-like structure (with 'geometry', 'properties', and optionally 'id' keys) without unnecessary transformations",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-fiona

tile.json