This chapter covers the creation and editing of spatial databases. While there are many spatial database types that QGIS can connect to, such as Oracle SDO, MySQL, SQL Server, and of course PostGIS, for ease of use, we're going to concentrate on a spatial database type that requires no installation and that can be easily shared. SpatiaLite (.sqlite) and GeoPackage (.gpkg) are the most common portable databases.
GeoPackage is being pushed as the replacement for the Industry Standard GIS file type, the SHP file, and you may notice as you start to use QGIS more that it crops up as the first choice of file type to open or export to.
In this chapter, we will touch on the core concepts of databases but moreover explore the following topics:
- Fundamental database concepts
- Creating a spatial database (GeoPackage)
- Connecting to a GeoPackage
- Importing...