Re: [OpenMap Users] ProjectionFactoryLoader problem

From: Don Dietrick <dietrick_at_bbn.com>
Date: Wed, 9 Aug 2006 18:05:40 -0400

Hi Stephane,

I see what's happening. The ProjectionFactory class is a static
singleton instance that gets created it it doesn't exist, and then
the ProjectionFactoryLoader loads it with the projections it's told
to. Since your JVM is still running when you kill the OpenMapFrame,
the ProjectionFactory holds onto its ProjectionLoaders. The
ProjectionFactoryLoader isn't smart enough to know that the
ProjectionLoaders are already in the ProjectionFactory.

I think this is a bug. Thanks for the heads-up, I'll fix it in the
next version of OpenMap.

- Don


On Aug 2, 2006, at 8:55 AM, Stéphane Wasserhardt wrote:

> Hello all !
>
> In my application, I open multiple OpenMapFrames. Each team such a
> frame is openned, I use the same properties file.
> In this properties file, I have a ProjectionFactoryLoader under the
> marker name "projFactoryLoader" :
>
> projFactoryLoader.class=com.bbn.openmap.proj.ProjectionFactoryLoader
> projFactoryLoader.projectionLoaders=mercatorloader ortholoader
> projFactoryLoader.mercatorloader.class=com.bbn.openmap.proj.MercatorLo
> ader
> projFactoryLoader.ortholoader.class=com.bbn.openmap.proj.OrthographicL
> oader
>
> But each time I open a new OpenMap frame (even if it's one at a
> time, that is to say I close and dispose the current map frame
> before openning a new one), the two projections are added to the
> projection list available in the menu bar under "navigate /
> projection".
> So for instance, if I open a first map frame, the projection list
> displays :
> Mercator
> Orthographic
>
> Then I open a second frame and the two frame's projection list
> display :
> Mercator
> Orthographic
> Mercator
> Orthographic
>
> Etc for each new frame.
>
> Anyone has an idea where this issue comes from ?
> Thanks a lot in advance !
>
> Stephane
>
> --
> [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"]



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick_at_bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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 Wed Aug 09 2006 - 18:07:19 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:07 EDT