Re: [OpenMap Users] RPF vs Frames list

From: Alexandre Gagnon <Alexandre_Gagnon_at_dmr.ca>
Date: Fri, 23 May 2008 13:29:34 -0700 (PDT)

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_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Fri May 23 2008 - 16:30:24 EDT

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