Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spatialite support #127

Open
fgregg opened this issue Jan 16, 2022 · 3 comments
Open

spatialite support #127

fgregg opened this issue Jan 16, 2022 · 3 comments

Comments

@fgregg
Copy link

fgregg commented Jan 16, 2022

Thanks so much for this great tool. Would love for it to work with spatialite databases.

@gvoysey
Copy link

gvoysey commented Jun 29, 2023

currently ( on litecli 1.9.0):

select load_extension('/usr/lib/mod_spatialite.so');

returns not authorized, even though litecli has been installed with a python that has spatialite support enabled and was built with:

export PYTHON_CONFIGURE_OPTS="--enable-shared  --enable-loadable-sqlite-extensions"
export LDFLAGS="-L/usr/local/opt/sqlite/lib -L/usr/local/opt/zlib/lib"
export CPPFLAGS="-I/usr/local/opt/sqlite/include -I/usr/local/opt/zlib/include"```

@rrrnld
Copy link

rrrnld commented May 3, 2024

It works for me if I use the .load special command (litecli 1.10.0, libspatialite 5.1.0):

.load '/path/to/libspatialite/lib/mod_spatialite.so'

@gvoysey
Copy link

gvoysey commented May 3, 2024

confirmed that the .load form works for me, as well. After executing that, i can subsequently select ST_AsText(geometry_column) from GeometryTable and see wkt not wkb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants