SpatiaLite 🗃

SpatiaLite (SQLite + spatial)

Open Beta
.sqlite · application/x-sqlite3

SpatiaLite 是 SQLite 的空间扩展。是一种紧凑的单文件数据库格式,全面支持空间查询、索引和 OGC 标准。

立即导出 SpatiaLite ✨ Open Beta — 免费无限制

主要特点

单一文件——完整数据库
空间 SQL 查询
空间索引
兼容 SQLite
SpatiaLite 格式导出示例(莫斯科中心,1x0.5 公里)
示例:莫斯科中心区,约 1x0.5 公里,中等详细度

关于 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.

打开 SpatiaLite 文件的程序

以下程序可以打开、编辑和处理从 OSM2CDR 导出的 SpatiaLite (SQLite + spatial)(.sqlite)文件:

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

格式规格

谁在使用 SpatiaLite 地图

🏗
本地 GIS 分析
Spatial SQL queries straight against the file, with no database server to deploy.
💻
移动应用
A compact database for Android or iOS: SQLite is already in the system, and the map travels with the app.
📊
轻量级数据库
One file instead of a schema in PostGIS where there is not much data and simplicity matters more.
🎨
原型开发
A quick test of a hypothesis on real data before building a full pipeline.
🗺
离线工作
Data at hand without a network — the database sits on disk and does not depend on a connection.

如何导出 SpatiaLite

1
选择区域
在 osm2cdr 的交互式地图上绘制矩形或多边形
2
选择 SpatiaLite
从 127 种可用导出格式中选择 SpatiaLite (SQLite + spatial)
3
导出
点击导出,1–5 分钟内收到您的 .sqlite 文件
4
下载
下载完成的 SpatiaLite 文件并在 QGIS 中打开

导出后如何打开

SpatiaLite 格式的热门地图

Free

导出 SpatiaLite (SQLite + spatial) 地图

从 OpenStreetMap 下载专业的 SpatiaLite 地图。即时生成,任意区域。

免费 / 导出
立即导出 SpatiaLite →

常见问题

SpatiaLite 与 GeoPackage 有何区别?
我能在 QGIS 中打开 SpatiaLite 吗?
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?

相关格式

经常一起导出

Related Articles