Hey,
Chris gave you the answer.
To create an OMCircle with 1km radius:
new OMCircle(lat, lon, 1f, Length.KM);
To create an OMCircle with 1000m radius:
new OMCircle(lat, lon, 1000f, Length.METER); -OR- same as above
To create an OMCricle with 1mile radius
new OMCircle(lat, lon, 1f, Length.MILE);
Brian Hudson
-----Original Message-----
From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com] On
Behalf Of Norfleet, Timothy
Sent: Thursday, July 29, 2004 11:57 AM
To: openmap-users_at_bbn.com
Subject: RE: [OpenMap Users] OMCircle conversion
Hi all
I think my question on omcircle creation was not asked the right way.
What I was trying to say is, I want to create a circle with a1.0 radius km
with a diameter of 2.0 km,
Or create a circle with a1000.0 radius m with a diameter of 2000.0 m,
Or create a circle with a1.0 radius mile with a diameter of 2.0 mile
What is the best way to do this?
Appreciate any help.
Tim
From: chopkins_at_cra.com [mailto:chopkins_at_cra.com]
Sent: Tuesday, July 27, 2004 5:19 PM
To: Norfleet, Timothy; openmap-users_at_bbn.com
Subject: RE: [OpenMap Users] OMCircle conversion
Hi Tim -
There is a constructor for OMCircle which takes a float radius and Length
units (as well as other parameters). That is the easiest way to create a
circle with a specified radius of, say, 20 miles. The Length class is found
in com.bbn.openmap.proj (at least in 4.6 it is).
- Chris
-----Original Message-----
From: Norfleet, Timothy [mailto:timothy.norfleet_at_gd-ais.com]
Sent: Tuesday, July 27, 2004 4:56 PM
To: openmap-users_at_bbn.com
Subject: [OpenMap Users] OMCircle conversion
Hi all
Has any one done conversions with OMCircles.
I am trying to create a circle of a certain size. Example 1000 meter, or 20
miles, or 1 kilometer. Is there a class or method in OpenMap that does this.
Tim
--
[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 Thu Jul 29 2004 - 13:15:28 EDT