Skip to main content

🗂️ Geopackage (GPKG) Writer

The Geopackage writer exports your results as an Geopackage (gpkg) file.


📜 Format Details

  • Delivery: Always a .gpkg file.
  • MIME type: application/geopackage+sqlite
  • CRS handling: Output CRS is defined by output.epsg in your request.

⚙️ Example Config

{
"input": { "format": "geojson" },
"transformations": [
{ "type": "buffer", "params": { "distance": 100, "units": "meters" } }
],
"output": {
"format": "gpkg",
"epsg": 4326
}
}

📑 Example API Call

curl -X POST https://api.geoflip.io/transform \
-F 'config={
"input":{"format":"geojson"},
"transformations":[{"type":"buffer","params":{"distance":100,"units":"meters"}}],
"output":{"format":"gpkg","epsg":4326}
}' \
-F "input_file=@/path/to/aoi.geojson;type=application/geo+json"

Response

{ "job_id": "abcd-ef01-2345-6789" }

Poll status:

curl https://api.geoflip.io/result/status/abcd-ef01-2345-6789

When status is SUCCESS, download from the output_url:

curl -O https://api.geoflip.io/result/output/abcd-ef01-2345-6789

This downloads a .gpkg file of you converted geojson attributes and geometry.


✅ Notes

  • Attributes from your input are preserved in the .gpkg where applicable.
  • Works with any supported reader input (geojson, shp, dxf) and transformation pipeline.

➡️ Next Steps