đź’ľâś… Saving and Exporting Shapefiles & GeoPackages in QGIS
Â
📌 Why Export?
You may want to:
- Save edited layers
- Convert layer formats (e.g., shapefile to GeoPackage or vice versa)
- Share data with others
- Reduce file clutter by packaging all layers in a single GeoPackage
🟢 1. Saving Edits to an Existing Layer
If you’ve made edits to a shapefile or layer:
-
Click 💾 Save Layer Edits from the toolbar
or right-click on the layer → Save Edits
📎 Note: This does not create a new file — it saves changes to the existing layer.
🟢 2. Exporting a Layer to a New File
To save a layer in a different location or format:
Â
âś… Step-by-Step:
-
Right-click the layer in the Layers panel
→ Select Export → Save Features As… -
In the dialog box:
Field What to Do Format Choose:Â ESRI Shapefile
,ÂGeoPackage
, etc.File name Browse to where you want to save the file Layer name (for GeoPackage) Enter the name of the layer inside the .gpkg
CRS Choose projection (keep as default or set new one) Encoding Leave as UTF-8 unless you have special characters Geometry (optional) Filter by geometry type (point, line, polygon) Extent (optional) Export a subset of features based on map view Click OK
Â
🗂️ Export Format Options
Format | Description |
---|---|
ESRI Shapefile | Most common, but consists of multiple files (.shp , .shx , .dbf , etc.) |
GeoPackage (.gpkg) | Modern, single-file format that can hold multiple layers |
CSV / KML / GPX | Use for non-GIS or GPS applications |
🔄 Example: Convert Shapefile to GeoPackage
- Right-click shapefile → Export → Save Features As
- Format:Â GeoPackage
- File name:Â
Landuse_Data.gpkg
- Layer name:Â
Landuse
- Click OK
✅ Done! You now have a .gpkg
 file with the same data.
đź§ Tips:
- GeoPackage is preferred for QGIS projects since it reduces file clutter.
- You can store multiple vector layers in a singleÂ
.gpkg
. - Use Layer → Create Layer → New GeoPackage Layer… to create from scratch.