HP Forums
calculate the latitude and longitude of the center point of that set - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: calculate the latitude and longitude of the center point of that set (/thread-11461.html)



calculate the latitude and longitude of the center point of that set - MullenJohn - 09-25-2018 02:19 PM

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!


RE: calculate the latitude and longitude of the center point of that set - ijabbott - 09-25-2018 05:18 PM

(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.


RE: calculate the latitude and longitude of the center point of that set - ColinJDenman - 09-25-2018 06:12 PM

(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


RE: calculate the latitude and longitude of the center point of that set - ijabbott - 09-25-2018 07:03 PM

(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.


RE: calculate the latitude and longitude of the center point of that set - SlideRule - 09-25-2018 08:06 PM

Perhaps CARTO Blog - Center of Points in Geometric Coordinates is an appropriate physical representation?

BEST!
SlideRule


RE: calculate the latitude and longitude of the center point of that set - ColinJDenman - 09-25-2018 10:13 PM

(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.