RE: [OpenMap Users] RPF Visibility

From: Chris Allport <chris.allport_at_red-inc.us>
Date: Wed, 23 Mar 2005 09:01:20 -0500

The projection code has been updated (since the deprecation of the "old
method"). The init code looks like the following:

--
MapHandler mapHandler = new MapHandler();
mapHandler.add(mapinternalframe);
mapBean = new BufferedMapBean();
mapinternalframe.getContentPane().add(mapBean);
ProjectionFactory pf = ProjectionFactory.getInstance();
Projection proj = pf.MakeProjection(CADRG.class,
Environment.getFloat(Environment.Latitude, 0f),
Environment.getFloat(Environment.Longitude, 0f),
                                    Environment.getFloat(Environment.Scale,
Float.POSITIVE_INFINITY),
Environment.getInteger(Environment.Width, MapBean.DEFAULT_WIDTH),
Environment.getInteger(Environment.Height, MapBean.DEFAULT_HEIGHT));
mapBean.setProjection(proj);
mapHandler.add(mapBean);
mapHandler.add(new LayerHandler());
-- then the RPF code --
I have tried numerous things:
  - Regenerating the A.TOC with MakeToc
  - Regenerating the A.TOC with MakeToc with Full Paths
  - Regenerating the A.TOC with MakeToc from the RPF Directory
  - Regenerating the A.TOC with MakeToc from another directory
  - explicity setting "paths" property and setting property
  - setting RpfLayer.setDoubledBuffered to true
I have also tried turning on debug (via command line) for RPF and receive no
messages.  I tried explicitly calling "setDebugGraphicsOptions" with
LOG_OPTION and BUFFERED_OPTION, neither yielding any apparent result.
Is there something else I need to be doing to trigger this layer?  Does
anything else need to be setup?
Thanks in advance!
-Chris
-----Original Message-----
From: Don Dietrick [mailto:dietrick_at_bbn.com]
Sent: Wednesday, March 23, 2005 8:17 AM
To: chris.allport_at_red-inc.us
Cc: OpenMap Users
Subject: Re: [OpenMap Users] RPF Visibility
Hi Chris,
Your method works for me.  I'd check your projection parameters to see
if they make sense for RPF data.  If your data worked before, it should
still be OK (I wouldn't expect there to be a case problem, where the
A.TOC is specifying upper case, and the names are actually lower case).
- Don
On Mar 22, 2005, at 6:15 PM, Chris Allport wrote:
> My application uses the following code to create an RPF Layer:
>
> ...
> String temp[] = {"/main/rpf"};
> RpfLayer rpf = new RpfLayer(temp);
>
> rpf.setVisible(true);
> rpf.setAddAsBackground(true);
>
> mapHandler.add(rpf);
> ...
>
> When the application starts, the window pops up but no maps!  This
> worked in
> 4.6, but does not appear to work with either of the newer versions.
>
> --
> Chris Allport
> Unmanned Systems Research & Development Lab
> Patuxent River Naval Air Station
> Phone: (301) 904-5943
>
>
> --
> [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 Mar 23 2005 - 09:02:22 EST

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