Re: [OpenMap Users] Projection Initialisation

From: Don Dietrick <dietrick_at_bbn.com>
Date: Thu, 16 Dec 2004 17:40:26 -0500

Hi Mark,


On Dec 16, 2004, at 5:49 AM, Potter, Mark A (UK Rochester) wrote:

>
> How do I stop this message:
>
> ProjectionFactory.getDefaultProjectionFromEnvironment(): Can't use
> (openmap.Projection = null) property as a projection class, need a
> class name instead. Using default of com.bbn.openmap.proj.Mercator.

You can set the openmap.Projection property in the Environment class to
be com.bbn.openmap.proj.Mercator. I've modified the ProjectionFactory
to suppress that statement for the next release.

That property usually gets set in the openmap.properties file.

- Don


> OpenMap(tm) Version 4.6.1
> Copyright (C) BBNT Solutions LLC. All rights reserved.
> See http://openmap.bbn.com/ for details.
>
> ProjectionFactory.getDefaultProjectionFromEnvironment(): Can't use
> (openmap.Projection = null) property as a projection class, need a
> class name instead. Using default of com.bbn.openmap.proj.Mercator.
>
> When I call
> MapPanel mapPanel = new BasicMapPanel();
>
> which I need to do before I can
> mapBean = mapPanel.getMapBean();
> mapBean.setProjection(new
> com.bbn.openmap.proj.Mercator(currentPos,65000f,1024,768));
>
> Which is where I set the projection? Do I need to set the projection
> elsewhere first somehow?
>
> Thanks,
>
> Mark Potter.
>
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
> --
> [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 Thu Dec 16 2004 - 17:41:55 EST

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