You are trying the new MyGeodata Cloud. Send feedback Back to the previous version

Raster · Tiles & pyramids

Rasterlite — Rasterlite (SQLite raster tiles)

Legacy SpatiaLite-based format storing tiled, compressed raster imagery and pyramids inside a single SQLite database.

Type
Raster · Tiles & pyramids
Extension
.sqlite
Converter
Read & write
Coordinate system
Any (georeferenced)
Bands
1–4 (grayscale, RGB, RGBA).

What is a Rasterlite file?

Rasterlite is a format for storing raster imagery inside an SQLite database. It was developed by Alessandro Furieri as a companion to the SpatiaLite spatial extension. A coverage is split into tiles that are stored as compressed BLOBs, typically PNG for lossless or JPEG for lossy compression. The tiles are held in a pair of tables: one contains the tile images and the other contains tile geometries and metadata. Reduced-resolution pyramid levels can be stored in the same tables to speed up display at small scales.

Georeferencing and the spatial reference system are recorded through SpatiaLite metadata. The whole dataset is a single portable file, which makes it convenient for distributing basemaps and orthophotos. The format is limited to 8-bit imagery such as grayscale, paletted and RGB data, so it is unsuitable for elevation or scientific data. Rasterlite has been superseded by RasterLite2 and by GeoPackage, and it is now mainly encountered in older datasets.

Rasterlite files usually come from older SpatiaLite-based workflows, where basemaps or orthophotos were packed into one SQLite database for delivery. Because the .sqlite extension is shared with many unrelated databases, check that the file actually holds Rasterlite tile tables before relying on it. Only 8-bit imagery is supported, and georeferencing depends on the SpatiaLite metadata being present and intact.

Typical uses

  • Distributing orthophotos or scanned maps as a single portable file.
  • Storing basemap tiles with pyramid levels for faster display at small scales.
  • Archiving older raster datasets produced with SpatiaLite tools.
  • Migrating legacy tile databases to GeoPackage or other raster formats.
Files: Single SQLite database (.sqlite) that stores raster tiles in tables; one file can hold several rasters.

Sample Rasterlite files — free download

Small, real datasets of the island of Saint Helena (OpenStreetMap, Copernicus DEM, Sentinel-2). Download them, open them in your software, or convert them in one click.

Preview of the sample data: Saint Helena from Sentinel-2 (true colour) st-helena-sentinel2-rgb.sqlite

Sentinel-2 true colour (20 m)

Sentinel-2 L2A true-colour image of Saint Helena from 20 April 2024 (S2A_29LRC_20240420_0_L2A), 8-bit RGB with a contrast stretch, 20 m pixels (906×762), UTM zone 30S. Rasterlite (SpatiaLite) database with JPEG tiles.

  • 3 bands · Byte
  • 1812 × 1524 px
  • 10 m
  • EPSG:32730
  • 1.1 MB

Contains modified Copernicus Sentinel data 2024

Frequently asked questions

The .sqlite extension is used by many kinds of SQLite databases. A file is only read as Rasterlite if it contains the expected pair of tile and metadata tables with SpatiaLite georeferencing information. Otherwise it may be a vector SpatiaLite database or a different application's data.

Ready to convert your data?

Drop the files and the Converter does the rest — no install, no account needed for your first conversions.