BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
tevfik
Calcite | Level 5

Hi,

i am new on sas enterprise guide (7.11 version) so that reason my question sounds silly

i want to make routes for field teams for intensive points. I have data-set which includes decimal points at a city and i want to define 1km diameter-length fields which includes min 60 max 80 points.  To make this i took the center point (decimal) of the city and try to calculate the distance (haversine formula) from center and later making group of them which 1km distance interval but i can not make it right. Have you any advice or how can i make the distance calculation? 

By the way i am using computed columns to take this action not programming. Thank you in advance

Note: Geodist function does not exist in 7.11 version of SAS Enterprise Guide

 

LATITLONGIProvinceCity
36,6088334,32703neverlandnowhere
36,7130234,33731neverlandnowhere
36,4580434,15251neverlandnowhere
36,6338634,34518neverlandnowhere
36,6094934,31894neverlandnowhere
36,4583234,14116neverlandnowhere
36,5517834,23458neverlandnowhere
36,5935234,28714neverlandnowhere
1 ACCEPTED SOLUTION

Accepted Solutions
art297
Opal | Level 21

You can calculate the distances without needing the geodist function. Take a look at: http://www.sascommunity.org/wiki/Driving_Distances_and_Drive_Times_using_SAS_and_Google_Maps

 

Then, I'd use proc modeclus to find the closest 60 or 80 points. Code is provided at: http://www.sas-programming.com/2013/05/finding-closest-pair-in-dataset-using.html

 

Art, CEO, AnalystFinder.com

 

View solution in original post

2 REPLIES 2
art297
Opal | Level 21

You can calculate the distances without needing the geodist function. Take a look at: http://www.sascommunity.org/wiki/Driving_Distances_and_Drive_Times_using_SAS_and_Google_Maps

 

Then, I'd use proc modeclus to find the closest 60 or 80 points. Code is provided at: http://www.sas-programming.com/2013/05/finding-closest-pair-in-dataset-using.html

 

Art, CEO, AnalystFinder.com

 

tevfik
Calcite | Level 5

thank you for swift reply!

 

Now i must improve my coding technique on SAS 🙂

 

it s a bit hard for me because i m new on SAS Enterprise Guide

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1268 views
  • 0 likes
  • 2 in conversation