13

What is the difference between the .qgz and .qgs project file formats in QGIS?

Vince
  • 20,017
  • 15
  • 45
  • 64
joe_gerner
  • 375
  • 1
  • 9
  • 27

2 Answers2

7

When I searched Google for 'qgz qgs difference' I found “QGZ” – A new default project file format for QGIS:

Last year we had the opportunity to implement ‘.QGZ’ as anew variant of the QGIS 3 project file format.

This is simply a zipped container for the QGS xml file.

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
6

The other answer correctly explains that a .qgz file is primarily a zipped container containing the .qgs XML file describing the project. This is described in https://docs.qgis.org/latest/en/docs/user_manual/appendices/qgis_file_formats.html

However, the .qgz zipped container may also contain sidecar files. At the present time, these are:

  1. Since 2017/2018, a .qgd file containing auxiliary storage such as custom labeling for layers in the project. See Is it safe to delete .qgd files in QGIS 3? for more information.

  2. Since 2023, a project style database with extension .db (see https://github.com/qgis/QGIS/commit/c6beb62216fcfbfe3ca64283c09117da53800a98) covering styles unique to the project.

Houska
  • 7,976
  • 19
  • 48