litegis 0.0.6

A geospatial extension for SQLite
Documentation

LiteGIS

A GIS extension for SQLite, similar to PostGIS for Postgres and SpatiaLite.

The APIs are modeled closely on PostGIS but very incomplete at this point. At the end of the day, this is a thin wrapper around the amazing GEOS.

Building & Usage

If you have a recent Rust toolchain installed, simply run

cargo build -p litegis-so --release

This will yield a shared library for your host platform, e.g: target/release/liblitegis.so. For other platforms, use the --target flag.

The library can then be loaded using sqlite3:

sqlite3 ↩️

sqlite> .load target/release/liblitegis
sqlite> SELECT LiteGIS_GEOS_Version();
3.13.1-CAPI-1.19.2

, or programmatically:

SELECT load_extension('target/release/liblitegis');

References