Yes, it appears you are correct. We treat the major axis as height and the
minor axis as width, while OpenMap and Java reverse those. I agree that
your workaround would work. The other work around I was considering was
subtracting 90.0 from the rotational angle.
Thanks again for your help.
Kennedy
Don Dietrick wrote:
>
> It seems like OpenMap is defining ellipses differently than you are.
> The OpenMap parameters for OMEllipse are the same as for the Java
> Ellipse2D object, with the OMEllipse major and minor axis corresponding
> to the Ellipse2D width and height.
>
> I think you would get accurate results by setting the your major axis
> value to the OMEllipse minor axis (h), your minor axis value to the
> OMEllipse major axis (w) and then setting the rotation angle.
>
> - Don
>
> Davidian wrote:
>>> If your major axis had the larger value, it looks right to me.
>>
>> The major axis will always be the larger value as per the definition of
>> major axis.
>>
>>> The rotation is performed around the center point.
>>
>> Yes, I understand that.
>>
>>>> It looks like OpenMap's default way of drawing an OMEllipse (i.e., with
>>>> a
>>>> rotation angle of 0.0) is to place the major axis (longer) along the
>>>> east/west plane, and the minor axis along the north/south plane.
>>
>>> Yes.
>>
>> This is the part that gets me. I'm not sure why, but I thought the
>> convention was that the major axis would run north/south by default
>> (i.e.,
>> if no rotation angle was applied). Now it seems as if there is no
>> convention, which doesn't seem possible.
>>
>>> What happens if you swap your axis values when you create the OMEllipse?
>>
>> I'm sure the ellipse would appear correct, visually anyway. My problem
>> is,
>> everything is off by 90 degrees when I use the OMEllipse class. I was
>> just
>> wondering if anyone has ever brought this up before.
>>
>
> --
> [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"]
>
>
-- View this message in context: http://www.nabble.com/OMEllipse-question-tp17515338p17520655.html Sent from the OpenMap mailing list archive at Nabble.com. -- [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 Wed May 28 15:52:55 2008
This archive was generated by hypermail 2.1.8 : Wed May 28 2008 - 15:52:56 EDT