SpatiaLite 🗃

SpatiaLite (SQLite + spatial)

Open Beta
.sqlite · application/x-sqlite3

SpatiaLite é uma extensão espacial para SQLite. Um formato de base de dados compacto de ficheiro único com suporte total para consultas espaciais, índices e padrões OGC.

Exportar SpatiaLite agora ✨ Beta Aberta — gratuito, sem limites

Principais características

Um ficheiro — base de dados completa
Consultas SQL espaciais
Índices espaciais
Compatível com SQLite
Example SpatiaLite export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

Sobre o formato 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.

Que programa abre ficheiros SpatiaLite

Os seguintes programas e aplicações podem abrir, editar e trabalhar com ficheiros SpatiaLite (SQLite + spatial) (.sqlite) exportados do OSM2CDR:

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

Format specifications

Quem utiliza mapas SpatiaLite

🏗
Análise SIG local
Spatial SQL queries straight against the file, with no database server to deploy.
💻
Aplicações móveis
A compact database for Android or iOS: SQLite is already in the system, and the map travels with the app.
📊
Bases de dados leves
One file instead of a schema in PostGIS where there is not much data and simplicity matters more.
🎨
Prototipagem
A quick test of a hypothesis on real data before building a full pipeline.
🗺
Trabalho offline
Data at hand without a network — the database sits on disk and does not depend on a connection.

Como exportar para SpatiaLite

1
Selecionar área
Desenhe um retângulo ou polígono no mapa interativo em osm2cdr.ru
2
Escolher SpatiaLite
Selecione SpatiaLite (SQLite + spatial) na lista de 127 formatos de exportação disponíveis
3
Exportar
Clique em Exportar e receba o seu ficheiro .sqlite em 1-5 minutos
4
Descarregar
Descarregue o ficheiro SpatiaLite pronto e abra-o no QGIS

Como abrir depois da exportação

Mapas populares em SpatiaLite

Free

Obtenha exportações de mapas em SpatiaLite (SQLite + spatial)

Descarregue mapas profissionais em SpatiaLite a partir do OpenStreetMap. Geração instantânea, qualquer área.

Gratuito / exportação
Exportar SpatiaLite agora →

Perguntas frequentes

Em que difere o SpatiaLite do GeoPackage?
Posso abrir SpatiaLite no 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?

Formatos relacionados

Frequentemente exportados em conjunto

Related Articles