SpatiaLite 🗃

SpatiaLite (SQLite + spatial)

Open Beta
.sqlite · application/x-sqlite3

SpatiaLite är en spatial utökning för SQLite. Ett kompakt databasformat i en enda fil med fullständigt stöd för spatiala frågor, index och OGC-standarder.

Exportera SpatiaLite nu ✨ Öppen beta — gratis, inga begränsningar

Viktiga funktioner

En fil — komplett databas
Spatiala SQL-frågor
Spatiala index
SQLite-kompatibel
Example SpatiaLite export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

Om formatet SpatiaLite

SpatiaLite is SQLite with a spatial extension: a single file database, no server, yet real SQL with geometry, spatial functions and indexes. The file is simply copied, put into a repository or onto a flash drive and works anywhere.

The format is taken when the data has to be computed with rather than admired: select buildings within a radius, sum up street length by type, join layers with a query, filter by an attribute. All of that is done with a query straight against the file, without deploying PostGIS.

What is inside: one database file where each OSM layer is a separate table with geometry and attributes; the service tables are filled in and spatial indexes are built at write time. The coordinates are WGS84 (EPSG:4326). QGIS opens the file by drag and drop, GDAL/OGR and Python read it directly.

About the neighbouring format: GeoPackage is also SQLite and also a single file, but it is an OGC standard and other people's software understands it better. SpatiaLite wins where you write the queries yourself and need its full set of spatial functions.

Vilket program öppnar SpatiaLite-filer

Följande program och applikationer kan öppna, redigera och arbeta med SpatiaLite (SQLite + spatial)-filer (.sqlite) som exporterats från OSM2CDR:

🌎QGIS 💻SpatiaLite GUI 💻DB Browser for SQLite 💻Python (sqlite3) 💻GDAL/OGR

Format specifications

Vem använder SpatiaLite-kartor

🏗
Lokal GIS-analys
Spatial SQL queries straight against the file, with no database server to deploy.
💻
Mobilappar
A compact database for Android or iOS: SQLite is already in the system, and the map travels with the app.
📊
Lättviktsdatabaser
One file instead of a schema in PostGIS where there is not much data and simplicity matters more.
🎨
Prototypframtagning
A quick test of a hypothesis on real data before building a full pipeline.
🗺
Offlinearbete
Data at hand without a network — the database sits on disk and does not depend on a connection.

Så exporterar du SpatiaLite

1
Välj område
Rita en rektangel eller polygon på den interaktiva kartan på osm2cdr.ru
2
Välj SpatiaLite
Välj SpatiaLite (SQLite + spatial) från listan med 127 tillgängliga exportformat
3
Exportera
Klicka på Exportera och få din .sqlite-fil på 1–5 minuter
4
Ladda ner
Ladda ner den färdiga SpatiaLite-filen och öppna den i QGIS

Så öppnar du filen efter exporten

Populära kartor i SpatiaLite

Free

Hämta kartexporter i SpatiaLite (SQLite + spatial)

Ladda ner professionella SpatiaLite-kartor från OpenStreetMap. Direktgenerering, valfritt område.

Gratis / export
Exportera SpatiaLite nu →

Vanliga frågor

Hur skiljer sig SpatiaLite från GeoPackage?
Kan jag öppna SpatiaLite i QGIS?
Which tables will be in the database?
Which coordinate system is the geometry stored in?
Do I need to install anything to open the file?

Relaterade format

Ofta exporterade tillsammans

Related Articles