Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Find Center Point of 'N' Points
Message
From
21/12/2000 13:12:51
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00455963
Message ID:
00455999
Views:
33
Larry,

Ok, I'll put a little PRG together and post it later for your critique, ok?

Thanks!!

>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!
Best,


DD

A man is no fool who gives up that which he cannot keep for that which he cannot lose.
Everything I don't understand must be easy!
The difficulty of any task is measured by the capacity of the agent performing the work.
Previous
Reply
Map
View

Click here to load this message in the networking platform