Code Monkey home page Code Monkey logo

Comments (3)

raptorswing avatar raptorswing commented on August 11, 2024

Hi,

Thanks for letting me know. When I wrote this library, my use cases never included using such large objects. So I never ran into this. Probably this is a problem with conversion between coordinate spaces while drawing objects...I think I am taking some lazy shortcuts which are not "too bad" at a small/local scale but on a large scale like 200km the errors will become apparent.

I will try to take a look at this soon and see if I can make it work.

from mapgraphics.

asdzxcasd avatar asdzxcasd commented on August 11, 2024

Hi,

Thanks for your quick response. I think that the issue is that information about map projection is hidden in PrivateQGraphicsObject, and LineObject itself knows only its position to paint itself. However both endpoints of the line require map projection.

from mapgraphics.

raptorswing avatar raptorswing commented on August 11, 2024

Hello again,

Spent some time looking at this... might be tricky to make it work in a good way since the framework currently assumes that drawing takes place in East-North-Up coordinates (or rather just East-North since we only do 2D). ENU makes a flat earth assumption... which isn't too horrible over small distances, but of course it breaks down over hundreds of km.

I will think some more about this... let me know if you come up with a good way to handle this (or better yet, submit a pull request πŸ˜„ )

from mapgraphics.

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.