Hi Don and others,
Well, i did approximatly what you said and i have now my TopLeft and
BottomRight latlonPoint which allow me to calculate scale. I have now a problem
i haven't thought before because the bounding points are not on the frame i
show which is too small. I thought the method getScale() would manage with the
size of my frame. How can i do to get a scale that suits with the size of the
frame ? Do you see what i mean ?
Thanks, Fred
Selon Don Dietrick <dietrick@bbn.com>:
> That's the one you want. c is in radians, which you can calculate
> using one of the Lenth static members (Length.KM.toRadians()). Az is
> in radians, too, a direction with north being 0, and east positive.
> You'll want to also check out the ProjMath.getScale() methods to get
> the scale of a projection which will enclose two points.
>
> - Don
>
>
>
> On May 3, 2004, at 9:07 AM, Frédéric Trifiro wrote:
>
> > In fact, i am looking at the method sperical_between() which
> > calculates a point
> > at azimuth and distance from another point. It seems to answer my
> > problem. But,
> > i don't know how to use it, especially the 'c' parameter. I don't
> > undestand :(
> >
> > Fred
> >
> > Selon Don Dietrick <dietrick@bbn.com>:
> >
> >> Hi Fred,
> >>
> >> Are you talking about coordinates that are represented in distance
> >> units, or figuring out coordinates for a distance from a lat/lon
> >> point?
> >>
> >> With the first, the coordinates are already projected, and you need to
> >> use that projection definition to inverse project those coordinates
> >> into decimal degree lat/lon coordinates. This code isn't something
> >> you'd find in the OpenMap toolkit, you'd have to use a projection
> >> library or something else to do it.
> >>
> >> With the second, you can use the com.bbn.openmap.proj.GreatCircle
> >> class
> >> to figure out coordinates that are a certain distance and azimuth from
> >> another coordinate.
> >>
> >> Hope this helps,
> >>
> >> Don
> >>
> >> On Apr 30, 2004, at 11:02 AM, Frédéric Trifiro wrote:
> >>
> >>> Hi everyone,
> >>>
> >>> Is there a way to convert a distance in (kilo)meters in informations
> >>> that can
> >>> be used by OpenMap like Lat/Lon oy X/Y points ?
> >>>
> >>> Thanks in advance, Fred
> >>>
> >>> --
> >>> [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"]
> >>>
> >>>
> >>
> >>
-- [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 Tue May 4 06:51:55 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:38 EDT