Retrieving Latitudes and Longitudes...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashitpro
    Recognized Expert Contributor
    • Aug 2007
    • 542

    Retrieving Latitudes and Longitudes...

    Problem is pretty simple...
    I know my latitude and longitude...and asked to find the all points.(There LAT and LONG) that comes within given radius...
    So all I have is my current LAT,LONG,Radius .
    How can I get the list of points that resides within given radius from my point?
    I am working in C/C++
  • Stang02GT
    Recognized Expert Top Contributor
    • Jun 2007
    • 1206

    #2
    Moved to the C/C++ fourm

    Comment

    • donbock
      Recognized Expert Top Contributor
      • Mar 2008
      • 2427

      #3
      Do you already have an algorithm that you just need to express in C, or are you seeking help with spherical geometry?

      Can you assume a spherical earth, or do you need to find precisely accurate answers that match some particular datum (for example, GPS coordinates)? If this question doesn't make sense then the answer is "spherical earth". If you're interested in seeing just how devilishly difficult this problem could be, try googling "geographic coordinate system", "WGS 84"; or looking up "datum (geodesy)" in Wikipedia.

      The problem statement is suspect: "find all the points" is unreasonable because there are an infinite number of points within any circle.

      Comment

      • whodgson
        Contributor
        • Jan 2007
        • 542

        #4
        Its a matter of converting from polar to cartesion coordinates...u need the radius and a series of angles which u can arbitrarily decide betweenn 0° (N) and 360°(N) as in plain sailing.

        Comment

        Working...