SpatiaLite 🗃

SpatiaLite (SQLite + spatial)

Open Beta
.sqlite · application/x-sqlite3

SpatiaLite és una extensió espacial per a SQLite. Un format de base de dades compacte d'un sol fitxer amb suport complet per a consultes espacials, índexs i estàndards OGC.

Exporta SpatiaLite ara ✨ Beta oberta — gratuït, sense límits

Característiques clau

Un sol fitxer: base de dades completa
Consultes SQL espacials
Índexs espacials
Compatible amb SQLite
Example SpatiaLite export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

Sobre el format 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.

Quin programa obre els fitxers SpatiaLite

Els programes i les aplicacions següents poden obrir, editar i treballar amb fitxers SpatiaLite (SQLite + spatial) (.sqlite) exportats des d'OSM2CDR:

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

Format specifications

Qui utilitza els mapes SpatiaLite

🏗
Anàlisi SIG local
Spatial SQL queries straight against the file, with no database server to deploy.
💻
Aplicacions mòbils
A compact database for Android or iOS: SQLite is already in the system, and the map travels with the app.
📊
Bases de dades lleugeres
One file instead of a schema in PostGIS where there is not much data and simplicity matters more.
🎨
Prototipatge
A quick test of a hypothesis on real data before building a full pipeline.
🗺
Treball fora de línia
Data at hand without a network — the database sits on disk and does not depend on a connection.

Com exportar SpatiaLite

1
Selecciona l'àrea
Dibuixa un rectangle o un polígon al mapa interactiu d'osm2cdr.ru
2
Tria SpatiaLite
Tria SpatiaLite (SQLite + spatial) de la llista de 127 formats d'exportació disponibles
3
Exporta
Fes clic a Exporta i rep el fitxer .sqlite en 1-5 minuts
4
Descarrega
Descarrega el fitxer SpatiaLite llest i obre'l amb QGIS

Com obrir el fitxer després de l'exportació

Mapes populars en SpatiaLite

Free

Obtingues exportacions de mapes SpatiaLite (SQLite + spatial)

Descarrega mapes SpatiaLite professionals d'OpenStreetMap. Generació instantània, qualsevol àrea.

Gratuït / exportació
Exporta SpatiaLite ara →

Preguntes freqüents

En què es diferencia SpatiaLite de GeoPackage?
Puc obrir un SpatiaLite a 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?

Formats relacionats

Sovint exportats junts

Related Articles