04-12-2018 08:30 AM
I am stucked with this. I need to calculate distance in SAS between 2 set of coordinates. I only got UTM coodinates and
I use geodist function. But is does not create any output on distance and distance2.
Can you help or have some ideas ?
Thanks in advance,
04-12-2018 08:42 AM
I think that your problem is the coordinates. The numbers should be in degrees, between 0 and 360, what you have is much too high.
Maybe you have the wrong unit.
I assume that your longitudes and latitudes are 10,000 times too big, but it could be something else.
gives a missing value,
gives a distance of 111 meters and 59 centimeters. Is that what you expected?
04-12-2018 09:08 AM - edited 04-12-2018 09:09 AM
GEODIST() function cannot use UTM values as parameters. Convert those values to supported values. This function has a 5th argument <Options> (M- Miles, K- Kilometers, D-Degree and R- Radians) and the default will be 'D'. In your case it is interpreting the values as Degrees.