Hi Tore,
You have to figure out the end point first, and then create the
OMLine. If you want the end point based on a spheroid model of the
earth, you can use the com.bbn.openmap.proj.GreatCircle class, using
the sphericalBetween(...) method.
If you want to calculate the point based on the ellipsoid, use the
com.bbn.openmap.geo.Geo class, using the offset(distance, angle)
method. The distance should be in radians, you can use the Length
class for the conversion.
Hope this helps,
Don
On Jul 31, 2008, at 5:05 PM, Tore Halset wrote:
> Hello.
>
> I want to create a OMLine() based on a LatLonPoint start, a angle
> relative to north (not necessary up) and a distance (Length +
> numUnit). I do not know the projection parameters when creating the
> OMGraphic. Anyone know where I should start?
>
> Regards,
> - Tore.
>
> --
> [To unsubscribe to this list send an email to "majdart_at_bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri Aug 01 2008 - 10:32:57 EDT