Re: [OpenMap Users] RPF vs Frames list

From: Alexandre Gagnon <Alexandre_Gagnon_at_email.domain.hidden>
Date: Fri May 23 2008 - 16:29:34 EDT

Hi Don,

I tried RpfTocHandler and it output correctly informations about entries.
That is not the problem.

The problem is I want to get the frames about one specific entry. I tried
using RpfTocEntry.frames but it is always null.

        String rpf = "C:/projects/Data/CIB/CIB10/00004_2/RPF";
        
        RpfTocHandler toc = new RpfTocHandler();
        if (!toc.loadFile(rpf))
            log.info("RpfTocHandler: NOT read sucessfully!");
        else {
            RpfTocEntry[] e = toc.getEntries();
            log.info("For A.TOC: " + rpf);
            for (int i = 0; i < e.length; i++) {
                log.info(e[i].toString());

                // e[i].frames is always null, how can i get the frames of
that entry ????
                if (e[i].frames == null) {
                    throw new Exception ("No frames");
                }
            }
        }

Don Dietrick wrote:
>
> Hi Alexandre,
>
> This should work. Have your run the RpfTocHandler directly, as an
> application, with your rpf directory as an argument? It would be
> interesting to see how that worked out, in terms of seeing what the
> rpf/A.TOC file contains.
>
> Regards,
>
> - Don
>

Don Dietrick wrote:
>
> Hi Alexandre,
>
> This should work. Have your run the RpfTocHandler directly, as an
> application, with your rpf directory as an argument? It would be
> interesting to see how that worked out, in terms of seeing what the
> rpf/A.TOC file contains.
>
> Regards,
>
> - Don
>
>

-- 
View this message in context: http://www.nabble.com/RPF-vs-Frames-list-tp17107732p17440400.html
Sent from the OpenMap mailing list archive at Nabble.com.
--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri May 23 16:34:11 2008

This archive was generated by hypermail 2.1.8 : Fri May 23 2008 - 16:34:12 EDT