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

{
  "context": "This evaluation assesses how well the solution uses Fiona's capabilities to test datetime field support across different GIS format drivers. The focus is on proper use of MemoryFile for temporary datasets, correct schema definition for datetime/time fields, and proper feature reading/writing to detect timezone and precision preservation.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "MemoryFile Usage",
      "description": "Uses fiona.io.MemoryFile to create temporary in-memory datasets for testing each driver without creating actual files on disk",
      "max_score": 20
    },
    {
      "name": "Schema Definition",
      "description": "Correctly defines schema with 'datetime' and 'time' field types using Fiona's type system (e.g., schema = {'geometry': 'Point', 'properties': {'dt_field': 'datetime', 'time_field': 'time'}})",
      "max_score": 20
    },
    {
      "name": "Collection Opening",
      "description": "Properly uses fiona.open() or MemoryFile.open() with correct parameters including driver specification, mode='w' for writing, and schema/crs parameters",
      "max_score": 15
    },
    {
      "name": "Feature Writing",
      "description": "Writes features to the collection using proper GeoJSON-like structure with 'geometry' and 'properties' keys, and uses Python datetime/time objects with timezone and microsecond values",
      "max_score": 15
    },
    {
      "name": "Feature Reading",
      "description": "Reopens the collection in read mode and correctly iterates through or accesses features to retrieve the written data for comparison",
      "max_score": 10
    },
    {
      "name": "Timezone Detection",
      "description": "Checks if the datetime object read back has tzinfo attribute preserved by comparing original.tzinfo with read_back.tzinfo or checking if tzinfo is not None",
      "max_score": 10
    },
    {
      "name": "Precision Detection",
      "description": "Checks if microsecond/millisecond precision is preserved by comparing the microsecond component of time values before and after write/read cycle",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-fiona

tile.json