Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Find Center Point of 'N' Points
Message
 
 
To
21/12/2000 12:32:14
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00455963
Message ID:
00455977
Views:
43
This will give you the center of your points however, that point may fall ouside of the polygon described by those points depending on the placement.

P1(Long1,Lat1)
P2(Long2,Lat2)
:
Pn(Longn,Latn)

(Long1+Long2+...+Longn)/n
(Lat1+Lat2+...+Latn)/n

where n = number of points

>Hi All,
>
>I have a need to develop an algorithm that will find the center point of 'N' other points. The total number of other points will be from 2 to 5 typically, though it could go up to around 20.
>
>I have an algorithm that will give me all ZIP locations within a circle useing the Longitude and Latitude which is somewhat the corrolat of my new need.
>
>I will also have a complete set of Longitudes and Latitudes that I can use as a source for mathematical equations. Each of the 'N' points will be able to determine its associated Longitude and Latitude.
>
>I have a couple ideas I'm toying around with but was wondering if anyone here has done this already.
>
>Thanks for your help!
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform