Date: Mon, 22 May 2006 11:44:32 -0500
Reply-To: "Nick ." <ni14@MAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Nick ." <ni14@MAIL.COM>
Subject: Re: LAT/LONG COORDINATES--DISTANCE BETWEEN THEM
Content-Type: text/plain; charset="iso-8859-1"
Thank you all for your input to this question. I have some reading to do based on your help. Thank you all very much.
NICK
----- Original Message -----
From: "Terjeson, Mark (IM&R)"
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: LAT/LONG COORDINATES--DISTANCE BETWEEN THEM
Date: Mon, 22 May 2006 07:32:28 -0700
Hi Nick,
Here are a few tidbits to start you off from the SAS-L archives:
http://listserv.uga.edu/cgi-bin/wa?A2=ind0412B&L=sas-l&P=R5457&m=144754
http://listserv.uga.edu/cgi-bin/wa?A2=ind0202A&L=sas-l&P=R26362&m=63148
http://listserv.uga.edu/cgi-bin/wa?A2=ind0211A&L=sas-l&P=R23696
http://listserv.uga.edu/cgi-bin/wa?A2=ind9704B&L=sas-l&P=R2442
http://listserv.uga.edu/cgi-bin/wa?A2=ind0006C&L=sas-l&P=R14831
http://listserv.uga.edu/cgi-bin/wa?A2=ind0211A&L=sas-l&P=R22003
http://listserv.uga.edu/cgi-bin/wa?A2=ind9606B&L=sas-l&P=R2430
http://listserv.uga.edu/cgi-bin/wa?A2=ind0202A&L=sas-l&P=R26362&m=63148
http://listserv.uga.edu/cgi-bin/wa?A2=ind0403C&L=sas-l&P=R32874&m=144754
http://listserv.uga.edu/cgi-bin/wa?A2=ind0412B&L=sas-l&P=R5141&m=144754
Hope this is helpful.
Mark Terjeson
Senior Programmer Analyst, IM&R
Russell Investment Group
Russell
Global Leaders in Multi-Manager Investing
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Pavlo Row
Sent: Friday, May 19, 2006 1:57 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: LAT/LONG COORDINATES--DISTANCE BETWEEN THEM
Hello,
I have a data set containing LATITUDE and LONGITUDE coordinates(degrees
minute seconds). I show an example of two records:
LATITUDE LONGITUDE
40 02 40 -76 24 45
42 21 12 0880536
Q1: In SAS, how can I compute the distance in miles (km, etc.) between
LATITUDE and LONGITUDE columns above? I would like to use an accurate
mathematical formula to compute the distance.
Q2: Same as in Q1 but we can use a less sophisticated mathematical
formula to compute the distance.
What I am after in this question is that I wish to find the distance
between high-schools and nearby prisons with sex-offenders, etc. If I
know the LAT/LONG of school and prison, can I find the distance beyween
them?
In Q1 I assume that the school and prison may or may NOT be close to
each other. By close I mean within 10 miles or so. Since I don't know
how close they are, I wish to use a more sophisticated mathematical
formula to compute a fairly accurate distance, as accurate as we can
anyway.
In Q2 I assume that the school and prison are close to each other so
that the pythagorean distance can be used, I assume.
Thanks all.
NICK
--
___________________________________________________
Play 100s of games for FREE! http://games.mail.com/
--
___________________________________________________
Play 100s of games for FREE! http://games.mail.com/