Post Reply 
calculate the latitude and longitude of the center point of that set
09-25-2018, 02:19 PM
Post: #1
calculate the latitude and longitude of the center point of that set
Has anyone used the programming feature of HP Prime to calculate the latitude and longitude of the center point of a set of multiple Longitudes and Latitudes (aka a point that would center a view on all points.


Thanks - Cheers!
Find all posts by this user
Quote this message in a reply
09-25-2018, 05:18 PM
Post: #2
RE: calculate the latitude and longitude of the center point of that set
(09-25-2018 02:19 PM)MullenJohn Wrote:  Has anyone used the programming feature of HP Prime to calculate the latitude and longitude of the center point of a set of multiple Longitudes and Latitudes (aka a point that would center a view on all points.

It's not always possible unless the points all lie on the same side of a great circle.

— Ian Abbott
Find all posts by this user
Quote this message in a reply
09-25-2018, 06:12 PM
Post: #3
RE: calculate the latitude and longitude of the center point of that set
(09-25-2018 05:18 PM)ijabbott Wrote:  It's not always possible unless the points all lie on the same side of a great circle.

Presumbaly the general case is that there are two points, one antipodal to the other.
One case might be preferred in your condition above, though the degenerate case of all points on that great circle would make both points valid? In the case of a random distribution of coordinates, I would guess there might be no simple preferred solution. Perhaps least mean squares summation of the coordinates from the solutions might distinguish one as preferable.

Note that I am not a geographer
Find all posts by this user
Quote this message in a reply
09-25-2018, 07:03 PM
Post: #4
RE: calculate the latitude and longitude of the center point of that set
(09-25-2018 06:12 PM)ColinJDenman Wrote:  
(09-25-2018 05:18 PM)ijabbott Wrote:  It's not always possible unless the points all lie on the same side of a great circle.

Presumbaly the general case is that there are two points, one antipodal to the other.
One case might be preferred in your condition above, though the degenerate case of all points on that great circle would make both points valid? In the case of a random distribution of coordinates, I would guess there might be no simple preferred solution. Perhaps least mean squares summation of the coordinates from the solutions might distinguish one as preferable.

In general, for a "random" set of points or a set of points lying on a great circle will have two antipodal "average" points as you say, but if the points form a regular (or semiregular) polyhedron, you can't pick just two points.

— Ian Abbott
Find all posts by this user
Quote this message in a reply
09-25-2018, 08:06 PM
Post: #5
RE: calculate the latitude and longitude of the center point of that set
Perhaps CARTO Blog - Center of Points in Geometric Coordinates is an appropriate physical representation?

BEST!
SlideRule
Find all posts by this user
Quote this message in a reply
09-25-2018, 10:13 PM
Post: #6
RE: calculate the latitude and longitude of the center point of that set
(09-25-2018 08:06 PM)SlideRule Wrote:  Perhaps CARTO Blog - Center of Points in Geometric Coordinates is an appropriate physical representation?

Another new bookmark to explore. Thank you.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: