Using QGIS, we can work with various databases, such as SpatiaLite, PostGIS, MSSQL, and Oracle Spatial. We'll learn here how to create a SpatiaLite database. We'll also learn to import shapefiles into such databases.
Working with databases
Creating a SpatiaLite database
The steps for creating a SpatiaLite database are as follows:
- We need to right-click on SpatiaLite in the Browser panel and then click on Create Database.
- We browse to the folder where we want to create the database, give it a name (I named it Chapter3_test), and save it.
- We see an arrow to the left of SpatiaLite. Click on this arrow:
![](https://static.packt-cdn.com/products/9781788991674/graphics/assets/25f6cae0-d82c-4e6e-bd56-5ad7f3346959.png)
- We'll see the newly created database under SpatiaLite:
![](https://static.packt-cdn.com/products/9781788991674/graphics/assets/0fb61547-0545-4733-b1fe-81a3e6ca443f.png)
- Use the DB Manager plugin under Database to check...