Comments (4)
Hi @FelixEickeler !
Thanks for this report. I made a few tests and it seems that the constructed query is incorrect in this case: surprisingly the query in this case should be INSERT INTO lake (name, geom) VALUES (Lake, GeomFromEWKT('SRID=-1;LINESTRING(0 0 0, 1 1 1)'));
(no Z
at the end of LINESTRING
). I don't know why SpatiaLite works like this while other dialects keep the Z
. I will add some tests in GeoAlchemy2 to confirm this behavior and fix it if.
Sorry for the inconvenience, unfortunately I can't see any temporary workaround for this so you will have to wait for the official fix :-/
from geoalchemy2.
@sdp5 I think the way to fix this issue should be to update the WKT given to this function: https://github.com/geoalchemy/geoalchemy2/blob/master/geoalchemy2%2Ftypes%2Fdialects%2Fsqlite.py#L9-L22
from geoalchemy2.
I can reproduce the issue. thanks @FelixEickeler !
@adrien-berchet Yea, get to that point. Not sure, should we get srid
from spatial_type
? doing some more testing ..
from geoalchemy2.
Hi @FelixEickeler
The new version GeoAlchemy2 == 0.15.0
has just been released and should fix your issue.
Can you please check and confirm the result here?
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
- "no such table: main.idx_{table}_{col}" Exception when writing Spatialite HOT 6
- 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
- [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.