Comments (6)
Hi @Danaozhong
Thanks for your report!
Could you please provide a complete example in one piece so we just have to copy/paste it to reproduce your issue please? Also, could you run your code with echo=True
passed to create_engine
and post the result here? It will be much easier to understand what's going on with this.
Thanks
from geoalchemy2.
Sure!
Here is a logfile created with echo=True
.
complete_log.txt
A minimum example can be found here: https://github.com/Danaozhong/geoalchemy2-spatialite-example
from geoalchemy2.
I'm surprised by this line in your log:
updateTableTriggers: "no such module: rtree"
I think that, because of this, the spatial index is marked as enabled for your table but the creation of the tables actually containing the index values fails. So when you want to insert a new geometry, SpatiaLite tries to create a new index entry but fails since the required table does not exist.
Is it possible that your SpatiaLite was compiled without the R*Tree module?
from geoalchemy2.
@Danaozhong I tested your script and it works properly for me. So I really think this issue comes from your SpatiaLite library that is not properly installed or compiled. Did you try to perform the same operations manually using raw SQL (so without GeoAlchemy2)?
from geoalchemy2.
Thank you, it seems that the root cause is indeed the way the SpatiaLite library was compiled.
from geoalchemy2.
Ok, great!
I close this issue but don't hesitate to reopen it if you have any other question on this.
from geoalchemy2.
Related Issues (20)
- How do I install it in an offline environment? HOT 4
- Unit tests fail on s390x (big-endian) HOT 10
- Performance improvement suggestions for load_spatialite HOT 2
- 0.14.0 broken initialization of WKTElements HOT 6
- Add type annotations
- Multipolygon with one polygon is forced to be Polygon HOT 2
- Fix MySQL dialect HOT 2
- AtttributeError: 'Nonetype' object has no attribute 'replace' HOT 7
- Add support for Mapped and mapped_column from sqlalchemy 2 HOT 3
- bigquery insert error with geometry field HOT 3
- WKBElement in postgres CASE WHEN doesn't work HOT 9
- mypy: Skipping analyzing "geoalchemy2.functions": module is installed, but missing library stubs or py.typed marker [import] HOT 7
- [Feature request] Support Python3.12 HOT 4
- [How to use] GeoAlchemy ORM with MySQL HOT 6
- [Bug report] When using MariaDB, `add` generates wrong SQL HOT 9
- using func.ST_DWithin outputs error stating "No function matches the given name and argument types." HOT 8
- Assistanze in using 3D Geometries HOT 4
- [How to use] I'm not able to use ST_* functions during insertion HOT 4
- [Feature request] Add compatibility with MSSQL
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geoalchemy2.