Exporting a layer to the GeoPackage format
The GeoPackage format is a developing open standard with recently added support in QGIS. The GeoPackage format has the properties of both the file format and a geodatabase. It overcomes all the limitations of the shapefile format, such as file size limits, attribute name length limits, and many other inconveniences. In a single file, GeoPackages can contain multiple vector and raster datasets. Software can query the file like a database without the overhead of a database server.
Read support for GeoPackages in QGIS is robust; however, write support has some limitations. You can save a single layer to the GeoPackage format using the QgsVectorLayer
class or the Processing Toolbox. However, if you want to ...
Get QGIS Python Programming Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.