Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Latlong position over any world map image using at charts

Latlong position over any world map image using at charts

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5chartsqtchartimage
3 Posts 2 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vicky_mac
    wrote on last edited by
    #1

    Hi,
    I am developing a simple app where user can enter the latlong position and the corresponding dot will be created over world map image.

    I am using qt carts for creating dot or say plotting a list of latlong positions.

    My problem is how to convert latlong position to actual image pixel and fit it to qtchart.

    I am using world image as background of qt chart. Having fixed x and y axis range same as image width and height.

    Please help .

    1 Reply Last reply
    0
    • Kent-DorfmanK Offline
      Kent-DorfmanK Offline
      Kent-Dorfman
      wrote on last edited by Kent-Dorfman
      #2

      It's not a simple app. There is a lot of study and a lot of math involved in doing this with real accuracy. You'll need to understand reference spheroids, DATUM, coordinate systems such as UTM vs arc-degrees, the idea of "cartographic projections", the "great circle" algorithm, and the value in translating to a linear coordinate system like UTM to make your location translations linear. GDAL is also a useful open source tool for cartographic number crunching. I always translate arc-degrees to UTM to work on since I have no interest in extreme latitudes.

      Not trying to discourage your curiosity, but don't plan on quick-n-dirty. You're going to have to dig into the science. Look at existing open-source cartographic apps to see what they are doing.

      If you meet the AI on the road, kill it.

      V 1 Reply Last reply
      0
      • Kent-DorfmanK Kent-Dorfman

        It's not a simple app. There is a lot of study and a lot of math involved in doing this with real accuracy. You'll need to understand reference spheroids, DATUM, coordinate systems such as UTM vs arc-degrees, the idea of "cartographic projections", the "great circle" algorithm, and the value in translating to a linear coordinate system like UTM to make your location translations linear. GDAL is also a useful open source tool for cartographic number crunching. I always translate arc-degrees to UTM to work on since I have no interest in extreme latitudes.

        Not trying to discourage your curiosity, but don't plan on quick-n-dirty. You're going to have to dig into the science. Look at existing open-source cartographic apps to see what they are doing.

        V Offline
        V Offline
        vicky_mac
        wrote on last edited by
        #3

        @Kent-Dorfman thanx for reply.

        Actually I saw few java script programs for pointing accurate pixel values on image by using Mercator projection and it's formula.

        I checked it works fine in Java script. But in qt I want to display whole lat long trace so wanted to plot chart with image as it's background. But not able to correctly det the background image as per chart x and y axis values.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved