SpatiaLite 🗃

SpatiaLite (SQLite + spatial)

Open Beta
.sqlite · application/x-sqlite3

SpatiaLite là một phần mở rộng không gian cho SQLite. Một định dạng cơ sở dữ liệu gọn nhẹ trong một tệp duy nhất với hỗ trợ đầy đủ cho truy vấn không gian, chỉ mục và các chuẩn OGC.

Xuất SpatiaLite ngay ✨ Open Beta — miễn phí, không giới hạn

Tính năng chính

Một tệp -- cơ sở dữ liệu đầy đủ
Truy vấn SQL không gian
Chỉ mục không gian
Tương thích SQLite
Example SpatiaLite export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

Giới thiệu về định dạng 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.

Chương trình nào mở được tệp SpatiaLite

Các chương trình và ứng dụng sau có thể mở, chỉnh sửa và làm việc với tệp SpatiaLite (SQLite + spatial) (.sqlite) được xuất từ OSM2CDR:

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

Format specifications

Ai sử dụng bản đồ SpatiaLite

🏗
Phân tích GIS cục bộ
Spatial SQL queries straight against the file, with no database server to deploy.
💻
Ứng dụng di động
A compact database for Android or iOS: SQLite is already in the system, and the map travels with the app.
📊
Cơ sở dữ liệu nhẹ
One file instead of a schema in PostGIS where there is not much data and simplicity matters more.
🎨
Tạo nguyên mẫu
A quick test of a hypothesis on real data before building a full pipeline.
🗺
Làm việc ngoại tuyến
Data at hand without a network — the database sits on disk and does not depend on a connection.

Cách xuất SpatiaLite

1
Chọn khu vực
Vẽ một hình chữ nhật hoặc đa giác trên bản đồ tương tác tại osm2cdr.ru
2
Chọn SpatiaLite
Chọn SpatiaLite (SQLite + spatial) từ danh sách 127 định dạng xuất khả dụng
3
Xuất
Nhấn Xuất và nhận tệp .sqlite của bạn trong 1-5 phút
4
Tải xuống
Tải tệp SpatiaLite đã sẵn sàng và mở trong QGIS

Cách mở tệp sau khi xuất

Bản đồ phổ biến ở định dạng SpatiaLite

Miễn phí

Nhận bản đồ xuất ở định dạng SpatiaLite (SQLite + spatial)

Tải bản đồ SpatiaLite chuyên nghiệp từ OpenStreetMap. Tạo tức thì, bất kỳ khu vực nào.

Miễn phí / lần xuất
Xuất SpatiaLite ngay →

Câu hỏi thường gặp

SpatiaLite khác GeoPackage như thế nào?
Tôi có thể mở SpatiaLite trong QGIS không?
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?

Định dạng liên quan

Thường được xuất cùng nhau

Related Articles