Re: [OpenMap Users] UTMProjection field immutability

From: Don Dietrick <dfdietrick_at_email.domain.hidden>
Date: Thu Feb 24 2011 - 16:56:56 EST

Hi Greg,

This was probably an oversight as the OM5 beta has accessors for those
UTMProjection parameters.

- Don

On Thu, Feb 24, 2011 at 4:33 PM, Greg Jewell <greg17@jewell.net> wrote:
> Hello,
>
> I have a question about the implementation of UTMProjection in OM 4.6.5.
> The fields zone_number, isnorthern, and ellps are set in the constructor.
> These values are used in several methods of the class.  However, a later
> change to the center of the projection never updates these values.  The
> fields are private, and setCenter(LatLonPoint llp) isn't overridden.  Was
> this intentional, or just an oversight?  Right now, every time the center
> changes (through user panning or other means), I create an entirely new
> UTMProjection instance and give it to the MapBean.  The other option is to
> subclass UTMProjection, but I'd have to essentially copy the entire class
> and add an overridden setCenter method.
>
> If this behavior was intentional, will my workarounds cause any problems?
>
>
> Thanks,
> Greg Jewell
>
>

--
[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 Feb 24 17:05:06 2011

This archive was generated by hypermail 2.1.8 : Thu Feb 24 2011 - 17:05:07 EST