Re: [OpenMap Users] Raster Product Format / CIB support

From: Don Dietrick <dietrick_at_bbn.com>
Date: Sat, 31 Jul 2004 16:47:33 -0400

Hi Todd.

On Jul 30, 2004, at 6:08 PM, Webb, Todd wrote:

> I am attempting for the first time to display a CIB (Controlled Image
> Base) map. I get the following error to System.out
> *** ERROR ***
> RpfTocHandler: Invalid TOC File in C:\data\RPF
> *************
>
> A.TOC is there, and was copied unmodified straight from the CD. Is
> CIB really supported by the RPFLayer? If so, what else might be the
> problem?
>
> RpfLayer layer = new RpfLayer();
> //Properties layerProps = new Properties();
> //layerProps.put("rpf.paths", "C:\\data\\RPF");

Use

       //layerProps.put("paths", "C:\\data\\RPF");

> //layer.setProperties(layerProps);

You're not calling setProperties("rpf", props), so the 'rpf.paths'
property won't work.

- Don


> layer.setPaths(new String[]{"C:\\data\\RPF"});
> add(layer);
> CADRG proj = new CADRG(new LatLonPoint(30.5, 45.5), 1500000f,1024,
> 768);
> setProjection(proj);
>
> P.S. We do not use property files, we create everything through the
> API. It appears that the RPFLayer doesn't pay any attention the
> "rpf.paths" property if it is passed to layer.setProperties(). The
> layer couldn't even find the TOC file until we used the RpfLayer
> specific setPaths() method. Any solution must NOT involve a property
> file.
>
> Any help appreciated
> Thanks!
> Todd
> --
> [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 Sat Jul 31 2004 - 16:48:39 EDT

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