Re: AW: [OpenMap Users] "Measuring Rod" & Blinking OMGraphic

From: David J. Ward <davidjeromeward@hotmail.com>
Date: Sat Feb 22 2003 - 13:52:59 EST

Don,
One learns something new about open map everyday! Thanks for pointing out
com.bbn.openmap.proj.Length.

Everyone,
I Modified the ScaleDisplayLayer to use
com.bbn.openmap.proj.Length.KM.fromRadians(radians). Now it depends only on
OpenMap classes.

Don,
On the question of contributing the ScaleDisplayLayer to the general
package. Sure, no problem. It would be nice if I had time to enhance the
layer so that the displayed unit of measure is configurable via properties
and the an interface of some sort.

Cheers,
David

>From: Don Dietrick <dietrick@bbn.com>
>To: "David J. Ward" <davidjeromeward@hotmail.com>
>CC: openmap-users@bbn.com, rgubler@init-ka.de
>Subject: Re: AW: [OpenMap Users] "Measuring Rod" & Blinking OMGraphic Date:
>Sat, 22 Feb 2003 13:34:10 -0500
>
>You can also use com.bbn.openmap.proj.Length.KM.fromRadians(radians) to
>convert radians to km.
>
>David, I didn't see your ScaleDisplayLayer attached. Is that something
>that you want to contribute to the general package?
>
>- Don
>
>On Friday, February 21, 2003, at 06:29 PM, David J. Ward wrote:
>
>>
>>Rudiger,
>>
>>Opps!
>>
>>Should have been:
>>
>>dist *= ((float)(180.0/Math.PI)) * 60.0f * (1.0f/0.53989f);
>>
>>
>>spherical_distance() returns the arc distance in radians. It must be
>>converted to Kilometers for this scale layer, OR, to another unit of
>>measure as you desire. The modification was to remove the dependence on a
>>utility class we use for routine conversion between various units of
>>measure.
>>
>>
>>Well, to make it easier for anyone interested I have attached the
>>ScaleDisplayLayer class and the Convert class source files. The
>>ScaleDisplayLayer uses the Convert.radiansToKm() method to convert from
>>radian to kilometers. You will, of couse, need to make apprioriate changes
>>to the "package" and "import" statements.
>>
>>Cheers,
>>David
>>
>>
>>
>>
>>
>>
>>>From: "Gubler, Rudiger" <rgubler@init-ka.de>
>>>To: "David J. Ward" <davidjeromeward@hotmail.com>
>>>Subject: AW: [OpenMap Users] "Measuring Rod" & Blinking OMGraphic
>>>Date: Fri, 21 Feb 2003 14:09:47 +0100
>>>
>>>
>>>Hello David,
>>>
>>>where must the old dist be placed: Instead the 60.0f ?
>>>
>>>
>>>Yours Rudiger
>>>
>>>
>>>-----Ursprungliche Nachricht-----
>>>Von: David J. Ward [mailto:davidjeromeward@hotmail.com]
>>>Gesendet: Dienstag, 18. Februar 2003 23:09
>>>An: openmap-users@bbn.com
>>>Betreff: Re: [OpenMap Users] "Measuring Rod" & Blinking OMGraphic
>>>
>>>You will need to modify line 82 as follows:
>>>
>>>dist = ((float)(180.0/Math.PI)) * 60.0f * (1.0f/0.53989f);
>>>
>>>Cheers,
>>>David J. Ward
>>
>>
>>_________________________________________________________________
>>The new MSN 8: smart spam protection and 2 months FREE*
>>http://join.msn.com/?page=features/junkmail
>>
>>--
>>[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"]
>>
>>
>
>
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>Don Dietrick, BBN Technologies, dietrick@bbn.com
>10 Moulton Street, Cambridge, MA 02138
>617-873-3031 [fax]-2794
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail

--
[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 Sat Feb 22 13:53:52 2003

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