angled ellipses

From: Jamie Oldham <joldham@modusoperandi.com>
Date: Thu Oct 25 2001 - 08:45:24 EDT

Hi,

I have a need to create angled ellipses. The current OMCircle class does not have the capability. We created the attached class. It extends the OMCircle class. The following code uses the WimCircle class.

public OMCircle createCircle(

    float lat1,float lon1,float radius,Color color) {

  WimCircle circle = new WimCircle(

    lat1, lon1, 9, 20, 10, 20 );

  circle.setRotationAngle(0.7853982);

  circle.setLinePaint(color);

  return circle;

}

This draws an angled ellipse, however it appears to hose up other graphics drawn in the same layer. For instance if an OMLine graphic is in the same OMGraphicList it is rendered, but the length and location is incorrect. If I simply comment out the set angle call all is well.

Any thoughts on why this may be occurring.

Thanks,

Jamie

--
[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 Thu Oct 25 08:46:43 2001

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