Importing data into a SpatiaLite database
Importing data into a SpatiaLite database is easy using the DB Manager. SpatiaLite supports the following commonly-used formats, as well as many other formats, for importing files:
- Shapefile (
.shp
) - dBase (
.dbf
) - Text (
.txt
), Commas Separate Values (.csv
), and Excel spreadsheets (.xls
/.xlsx
) - AutoCAD DXF (
.dxf
) - Geography Markup Language (
.gml
) - Keyhole Markup Language (
.kml
) - Geometry JavaScript Object Notation (
.geojson
) - Scalable Vector Graphics (
.svg
)
Let's use DB Manager to import data in a few different formats into our GiffordPinochet.sqlite
database.
Importing KML into SpatiaLite
To import a KML file into a SpatiaLite database, complete the following steps:
- Open DB Manager by clicking on DB Manager under Database ...
Get Mastering QGIS - 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.