Results 1 to 3 of 3

Thread: conversion of x and y coordinates to latitude and longitude

  1. #1
    Join Date
    May 2015
    Posts
    1
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default conversion of x and y coordinates to latitude and longitude

    sir ,

    Actually i have a gui which contains qcustomplot widget with a map inside the widget. if i click on the widget am able to get the cursor position on the map with x and y values . now i need to convert that x and y coordinates into latitude and longitude .
    presently am using qt4 . can any body suggest me how to do this . my specific request is to suggest me the solution at the earliest

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: conversion of x and y coordinates to latitude and longitude

    If you know the origin position and size of the image in pixels and the start and end longitudes and latitudes of the map, then this is an easy algebra problem.

  3. #3
    Join Date
    Nov 2014
    Posts
    32
    Thanked 1 Time in 1 Post
    Qt products
    Platforms
    Windows

    Default Re: conversion of x and y coordinates to latitude and longitude


Similar Threads

  1. Replies: 10
    Last Post: 9th June 2016, 17:02
  2. Replies: 1
    Last Post: 10th April 2013, 09:08
  3. Replies: 4
    Last Post: 18th March 2010, 10:11
  4. Hex Conversion
    By umulingu in forum Newbie
    Replies: 5
    Last Post: 5th March 2010, 18:07
  5. use Latitude and longitude to calculate distance?
    By lengshuang in forum General Programming
    Replies: 6
    Last Post: 11th May 2009, 14:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.