[OpenMap Users] RE: Lat-Lon distance, and azimuth calculations

From: Christopher R. Mamorella <mamorella@syrres.com>
Date: Mon Mar 29 2004 - 09:05:51 EST

Don,
I was just told that using Rhumb lines is optional for calculating distance
between two lat-lon points. So without that restriction, is there a more
feasible way of doing this in OpenMap?

The same question applies to the azimuth problem. A clarification of your
azimuth solution would also be appreciated. Thanks.

Chris

>===== Original Message From OpenMap Support <openmap@bbn.com> =====
>Hi Chris,
>
>There isn't a class that does these calculations for Rhumb lines. The
>com.bbn.openmap.proj.GreatCircle class does these calculations for
>GreatCircle lines.
>
>You can probably use the GreatCircle class to do the Rhumb line
>calculations you want, if you create an OMLine between the two points
>with LINETYPE_RHUMB, and then inverse project the coordinates back into
>lat/lon points that describe the rhumb line. Then, you can use the
>GreatCircle algorithms between the lat/lon points.
>
>For determining the azimuth, you would only have to test between two
>points of the inverse projected set of coordinates, because the azimuth
>would be constant over all the points.
>
>Hope this helps,
>
>Don
>
>On Mar 26, 2004, at 5:43 PM, Christopher R. Mamorella wrote:
>
>> Could you direct me to the openmap class or functions which do the
>> following:
>>
>> Determine the Rhumb-line distance between 2 latitude-longitude points.
>> The
>> distance should be in nautical miles but if a conversion is required
>> that
>> would be fine.
>>
>> Also, is there a function which determines the azimuth between 2
>> latitude-longitude points (in Rhumb lines)?
>>
>> Thanks,
>>
>> Chris
>>

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Mar 29 09:06:14 2004

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:38 EDT