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
I built this for shapefile-to-sqlite but it would be useful in sqlite-utils too:
shapefile-to-sqlite
sqlite-utils
https://github.com/simonw/shapefile-to-sqlite/blob/e754d0747ca2facf9a7433e2d5d15a6a37a9cf6e/shapefile_to_sqlite/utils.py#L16-L19
SPATIALITE_PATHS = ( "/usr/lib/x86_64-linux-gnu/mod_spatialite.so", "/usr/local/lib/mod_spatialite.dylib", )
https://github.com/simonw/shapefile-to-sqlite/blob/e754d0747ca2facf9a7433e2d5d15a6a37a9cf6e/shapefile_to_sqlite/utils.py#L105-L109
def find_spatialite(): for path in SPATIALITE_PATHS: if os.path.exists(path): return path return None
The text was updated successfully, but these errors were encountered:
https://github.com/simonw/cryptozoology/blob/2ad69168f3b78ebd90a2cbeea8136c9115e2a9b7/build_cryptids_database.py#L16-L22
try_these = ( "mod_spatialite", "/usr/local/lib/mod_spatialite.dylib", "/usr/lib/x86_64-linux-gnu/mod_spatialite.so", "/usr/lib/x86_64-linux-gnu/libspatialite.so.5", "/usr/lib/x86_64-linux-gnu/libspatialite.so.7", )
Sorry, something went wrong.
I'm going to start with just the first two - I'm not convinced I understand the .so.5 variants.
.so.5
bf4c6b7
Docs: https://github.com/simonw/sqlite-utils/blob/bf4c6b7c82fab6b2400e48424f8dac1ae2f0a2dc/docs/python-api.rst#finding-spatialite
Release 2.16
ea87c2b
Refs #134, #135
No branches or pull requests
I built this for
shapefile-to-sqlite
but it would be useful insqlite-utils
too:https://github.com/simonw/shapefile-to-sqlite/blob/e754d0747ca2facf9a7433e2d5d15a6a37a9cf6e/shapefile_to_sqlite/utils.py#L16-L19
https://github.com/simonw/shapefile-to-sqlite/blob/e754d0747ca2facf9a7433e2d5d15a6a37a9cf6e/shapefile_to_sqlite/utils.py#L105-L109
The text was updated successfully, but these errors were encountered: