Jump to content

center of 3 points


gwbbh

Recommended Posts

I am working on a GPS problem involving Longitude and Latitude. I have 3 waypoints making a triangle and I need to find the center and the cooresponding coordinates to that center.

 

A= N 44.18.642

w 76.33.807

 

B= N 44.18.362

w 76.34.163

 

C= N 44.18.313

w 76.33.383

 

I know you draw a circle that touches on each point, but how can I derive a set of GPS ccordinates to find the location?

Link to comment

I am working on a GPS problem involving Longitude and Latitude. I have 3 waypoints making a triangle and I need to find the center and the cooresponding coordinates to that center.

 

A= N 44.18.642

w 76.33.807

 

B= N 44.18.362

w 76.34.163

 

C= N 44.18.313

w 76.33.383

 

I know you draw a circle that touches on each point, but how can I derive a set of GPS ccordinates to find the location?

 

I think you can simply convert to decimal degrees and average the Latitudes together, and the Longitudes together. I get 44.30731667 N and 76.56307222 W

Edited by JSWilson64
Link to comment

I am working on a GPS problem involving Longitude and Latitude. I have 3 waypoints making a triangle and I need to find the center and the cooresponding coordinates to that center.

 

...

 

I know you draw a circle that touches on each point, but how can I derive a set of GPS ccordinates to find the location?

 

I think you can simply convert to decimal degrees and average the Latitudes together, and the Longitudes together. I get 44.30731667 N and 76.56307222 W

 

Unfortunately, this answer is incorrect. To see why, imagine that all 3 points are in the same half of the circle. Averaging the points does not work.

 

There are a couple ways to solve the problem, but if the points are not too far apart you can convert them to UTM and use the formula easily found online to find a circle given three (x, y) points. Then convert back from the UTM center to Lat/Lon.

 

I've written a program that does this and related problems iteratively, but it is not yet ready for release to the public. [:D]

Link to comment

Averaging does work.... It is not exact if you use lat/lon as the lines of longitude are not parallel, but for most cases it is very close. For the coordinates above the error will be way below the accuracy of a GPS.

 

Convert to UTM and average those. That will be the center, or more precisely the centroid of the triangle. A centroid is only one type of center....

 

http://www.jimloy.com/geometry/centers.htm

Edited by Red90
Link to comment

I read the problem entirely different from how it was presented.

 

For any triangle drawn on the surface of a sphere, there are two really two centers. If it's a relatively small triangle, your mind's eye naturally places the center "inside" the triangle. The other center would be at the antipodes, even though it might look like that's "outside." It's more evident when the triangle gets larger. Imagine three points on the equator at 0, -120 and +120 longitude. Staying on the surface -- is the North Pole or South Pole the "center?"

 

This is also true of ANY simple closed curve drawn on the surface of a sphere - although some analytical part of my brain is waving from the back of the room, trying to draw attention away from the intuitive part. Something about not having a rigorous proof that the two centers are always at the antipodes from each other. Anybody want to take a shot at that one?

 

Maybe I just had too much coffee this morning.

Edited by lee_rimar
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...