Fiona reads and writes spatial data files
88
{
"context": "This criteria evaluates how well the engineer uses the Fiona package to read GeoJSON data and write it to multiple vector data formats (Shapefile, GeoPackage, and GeoJSONSeq). The focus is on proper usage of Fiona's API for opening files, reading features, creating output collections with appropriate schemas and drivers, and writing features while preserving geometry and attribute data.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Open input GeoJSON",
"description": "Uses fiona.open() to open the input GeoJSON file in read mode ('r') and properly iterate through or access features",
"max_score": 15
},
{
"name": "Extract schema information",
"description": "Correctly extracts or accesses the schema (geometry type and properties) and CRS from the input collection to use for output files",
"max_score": 15
},
{
"name": "Write to Shapefile",
"description": "Uses fiona.open() with driver='ESRI Shapefile' (or 'Shapefile') and mode='w' to create a Shapefile output, specifying the correct schema and CRS",
"max_score": 20
},
{
"name": "Write to GeoPackage",
"description": "Uses fiona.open() with driver='GPKG' (or 'GeoPackage') and mode='w' to create a GeoPackage output, specifying the correct schema and CRS",
"max_score": 20
},
{
"name": "Write to GeoJSONSeq",
"description": "Uses fiona.open() with driver='GeoJSONSeq' and mode='w' to create a newline-delimited GeoJSON output, specifying the correct schema and CRS",
"max_score": 20
},
{
"name": "Write features correctly",
"description": "Writes features to each output collection using the write() or writerecords() method, properly preserving geometry and properties from the input",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-fionadocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10