Git Product home page Git Product logo

myxql's People

Watchers

 avatar  avatar

myxql's Issues

Geom field disturbing other fields

So in general, decoding works, when testing on a single element. It does not, however, work with a fully filled up row. This is mostly seen in our actual client app, where all the sudden, when there is a Point or a Polygon, another field (for now, a :naive_datetime field) cannot be decoded.

My hunch is that bytes go missing when reading them in the polygon decoding step, which screws it up for the remaining fields. But that is just a hunch. I will try to get a failing test up with this behaviour, so we can move from there.

Geometry kickoff

So we are trying to implement different geometry types into myxql. We do not have extensive postgis knowledge, we were using Mariaex for quite a while and then suddenly needed MultiPolygon, which was not included.

After many, many hours to try and get our head around the binary pattern of the internal MySQL geo format, and using external libs (Geo mix package) we finally had a small breakthrough in parsing a single point without errors!

Next up are all other types, for us, in the following order of importance:

  • Point (more tests?)
  • Polygon
  • MultiPolygon

Then for completeness:

  • LineString
  • Geometry
  • ...

The first thing for the polygon we need to figure out is where the number of rings/points inside the polygon is stored. For that I think we can look into Mariaex which has support for Polygons. Then, hopefully, the bridge to MultiPolygon will not be too difficult.

Let us know what bit you would like to work on, so we do not overlap.

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.