🗂️ Geopackage Reader
The Geopackage (GPKG) reader allows you to upload geopackage files into Geoflip. Geopckages are based on sqlite databases and can support multiple types of geometry within the single gpkg file and are a very convenient way to store spatial data.
📜 Format Details
- File type:
.gpkgthe geopackage file. - **Upload type: send the
gpkg`` asinput_file` in a multipart form. - CRS handling:
- Geoflip reads the CRS from the
.gpkgfile directly. - If
crsis missing or invalid in the geopackage file, reprojection may fail.
- Geoflip reads the CRS from the
⚙️ Example Config
{
"input": {
"format": "gpkg"
},
"transformations": [
{ "type": "union" }
],
"output": {
"format": "shp",
"epsg": 3857
}
}
📑 Example API Call
First make sure you have a valid geopackage file (.gpkg) then send to the API:
curl -X POST https://api.geoflip.io/transform \
-F 'config={
"input":{"format":"gpkg"},
"transformations":[{"type":"union"}],
"output":{"format":"shp","epsg":3857}
}' \
-F "input_file=@/tmp/parcels.gpkg;type=application/geoopackage+sqlite"
Response
{ "job_id": "abcd-ef01-2345-6789" }
Poll for status:
curl https://api.geoflip.io/result/status/abcd-ef01-2345-6789
And download from the output_url when status is SUCCESS.
✅ Notes
- CRS reprojection is applied at the output stage, based on
output.epsg. - Geopackages are a great way to store multiple geometry types in a single tidy file.
➡️ Next Steps
- Learn about the Shapefile Reader
- Learn about the DXF Reader
- See the Output Formats