Skip to content

Wrapper for standard Python module "sqlite3" which adds SpatiaLite support.

License

Notifications You must be signed in to change notification settings

malexer/spatialite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spatialite

Wrapper for standard Python module sqlite3 which adds SpatiaLite support.

Requirement: mod_spatialite

This module will try to load SpatiaLite extension in SQLite and thus requires "mod_spatialite" being present.

Ubuntu:

$ apt-get install libsqlite3-mod-spatialite

macOS:

$ brew install libspatialite

Install

Using pip:

$ pip install spatialite

Usage

import spatialite


with spatialite.connect('sl_temp.db') as db:
    print(db.execute('SELECT spatialite_version()').fetchone()[0])

About

Wrapper for standard Python module "sqlite3" which adds SpatiaLite support.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages