Coder Social home page Coder Social logo

Comments (4)

adrien-berchet avatar adrien-berchet commented on July 28, 2024

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.

adrien-berchet avatar adrien-berchet commented on July 28, 2024

@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.

sdp5 avatar sdp5 commented on July 28, 2024

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.

adrien-berchet avatar adrien-berchet commented on July 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.