{"library":"pyogrio","code":"import geopandas as gpd\nfrom pyogrio import read_dataframe, write_dataframe\nfrom shapely.geometry import Point\nimport os\n\n# Create a dummy GeoDataFrame\ndata = {'name': ['Location A', 'Location B'], 'value': [10, 20]}\ngeometry = [Point(1, 1), Point(2, 2)]\ngdf = gpd.GeoDataFrame(data, geometry=geometry, crs=\"EPSG:4326\")\n\n# Define output path\noutput_file = \"my_geodata.gpkg\"\n\n# Write GeoDataFrame to a GeoPackage file\nprint(f\"Writing data to {output_file}...\")\nwrite_dataframe(gdf, output_file, driver=\"GPKG\", layer=\"my_points\")\nprint(\"Write complete.\")\n\n# Read GeoDataFrame from the GeoPackage file\nprint(f\"Reading data from {output_file}...\")\nread_gdf = read_dataframe(output_file, layer=\"my_points\")\nprint(\"Read complete.\")\nprint(read_gdf)\n\n# Clean up the created file\n# os.remove(output_file)\n# print(f\"Cleaned up {output_file}.\")","lang":"python","description":"This quickstart demonstrates how to create a basic GeoPandas GeoDataFrame, write it to a GeoPackage file using `pyogrio.write_dataframe`, and then read the data back into a GeoDataFrame using `pyogrio.read_dataframe`.","tag":null,"tag_description":null,"last_tested":"2026-04-24","results":[{"runtime":"python:3.10-alpine","exit_code":1},{"runtime":"python:3.10-slim","exit_code":1},{"runtime":"python:3.11-alpine","exit_code":1},{"runtime":"python:3.11-slim","exit_code":1},{"runtime":"python:3.12-alpine","exit_code":1},{"runtime":"python:3.12-slim","exit_code":1},{"runtime":"python:3.13-alpine","exit_code":1},{"runtime":"python:3.13-slim","exit_code":1},{"runtime":"python:3.9-alpine","exit_code":1},{"runtime":"python:3.9-slim","exit_code":1}]}