-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Initialize SpatiaLite without KNN virtual table #11
Comments
I think this is the revelant code: shapefile-to-sqlite/shapefile_to_sqlite/utils.py Lines 128 to 141 in 2b2233d
|
https://www.gaia-gis.it/fossil/libspatialite/wiki?name=KNN says:
|
Maybe the fix is to run |
I tried using this against my broken DB file:
And it worked - I could then deploy that database using an older version of SpatiaLite. |
Now that Homebrew has upgraded SpatiaLite on my laptop to 5.0 this tool seems to be creating databases that aren't compatible with SpatiaLite 4.3.x - which currently breaks
datasette publish
(see simonw/datasette#1249).I think the problem is that a
KNN
virtual table is being created -CREATE VIRTUAL TABLE KNN USING VirtualKNN();
Since the databases created by this tool don't necessarily need
KNN
it would be better if it didn't create that.The text was updated successfully, but these errors were encountered: