Το SpatiaLite είναι μια χωρική επέκταση για το SQLite. Μια συμπαγής μορφή βάσης δεδομένων ενός αρχείου με πλήρη υποστήριξη χωρικών ερωτημάτων, ευρετηρίων και προτύπων OGC.
Βασικά χαρακτηριστικά

Σχετικά με τη μορφή 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
Τα ακόλουθα προγράμματα και εφαρμογές μπορούν να ανοίξουν, να επεξεργαστούν και να εργαστούν με αρχεία SpatiaLite (SQLite + spatial) (.sqlite) που έχουν εξαχθεί από το OSM2CDR:
Format specifications
- Open standard
- 3D coordinates supported
- Lossless (no quality loss)
- Stores feature attributes
- Output: 1 file
- SpatiaLite .sqlite (open SQLite extension). Indexed spatial queries with R-Tree. Opens in QGIS, SpatiaLite GUI.
Ποιοι χρησιμοποιούν χάρτες SpatiaLite
Πώς να εξαγάγετε SpatiaLite
Πώς να το ανοίξετε μετά την εξαγωγή
- QGIS — drag the file into the program window or add it through the Data Source Manager; the tables will appear as ordinary layers.
- DB Browser for SQLite — look through the tables and run a query; for spatial functions load the mod_spatialite module.
- spatialite-gui and the console spatialite — the project's own tools: queries with spatial functions work out of the box.
- Python — sqlite3 with mod_spatialite loaded for queries, or geopandas.read_file with the table you need given as the layer.
- GDAL — ogr2ogr converts the database into GeoPackage and back with one command if another format turns out to be needed.
Δημοφιλείς χάρτες σε SpatiaLite
Αποκτήστε εξαγωγές χαρτών SpatiaLite (SQLite + spatial)
Κατεβάστε επαγγελματικούς χάρτες SpatiaLite από το OpenStreetMap. Άμεση δημιουργία, για οποιαδήποτε περιοχή.
Συχνές ερωτήσεις
Σχετικές μορφές
Συχνά εξάγονται μαζί
Related Articles
SpatiaLite format: SQLite + GEOS + PROJ — portable spatial database for OSM
SpatiaLite by Alessandro Furieri 2008: SQLite extension with WKB BLOB, R-Tree, ST_* functions, single-file spatial datab
guideGeoPackage: One File for All Your Geodata
GeoPackage is an SQLite-based format for storing vector, raster, styles, and metadata in a single file. Complete guide f