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

From: David Ward <mry_yachtsman_at_hotmail.com>
Date: Fri, 30 Jul 2004 21:29:15 -0700

Todd,

Here is what we have done to display CADRG programatically, I imagine it
would work
for CIB as well.

        RpfLayer rpfLayer = new RpfLayer();
        Properties rpfProps = new Properties();
        rpfProps.put("rpfLayer.paths", "your path here");
        rpfProps.put("rpfLayer.opaque", "255");
        rpfProps.put("rpfLayer.numberColors", "216");
        rpfProps.put("rpfLayer.showmaps", "true");
        rpfProps.put("rpfLayer.showinfo", "false");
        rpfProps.put("rpfLayer.scaleImages", "true");
        rpfProps.put("rpfLayer.imageScaleFactor", "4");
        rpfProps.put("rpfLayer.killCache", "true");
        rpfProps.put("rpfLayer.chartSeries", "ANY");
        rpfProps.put("rpfLayer.autofetchAttributes", "false");
        rpfProps.put("rpfLayer.coverage", "true");
        rpfProps.put("rpfLayer.subframeCacheSize", "1");
        rpfProps.put("rpfLayer.auxSubframeCacheSize", "1");
        rpfLayer.setProperties("rpfLayer",rpfProps);
        mapBean.add(rpfLayer);

At "your path here" we have a method call to return the currently configured
path(s) to the raster CADRG data.

Cheers,
David



>From: "Webb, Todd" <twebb_at_titan.com>
>To: <openmap-users_at_bbn.com>
>Subject: [OpenMap Users] Raster Product Format / CIB support
>Date: Fri, 30 Jul 2004 15:08:42 -0700
>
>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");
> //layer.setProperties(layerProps);
> 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"]
Cheers,
David

-----------------
David J. Ward
mry_yachtsman_at_hotmail.com

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

--
[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 - 00:30:12 EDT

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