CIB data directories under a single RPF directory

67 views
Skip to first unread message

petaga...@gmail.com

unread,
Feb 17, 2016, 12:12:30 PM2/17/16
to openmap-users
In another post, Don recommended several options for optimization of CIB data.  I am trying one option "move all of your CIB data directories under a single RPF directory and run MakeToc on that.". 

I am creating this new post to avoid confusing my brain.  So I tried this option and getting an invalid A.TOC file at the end.  Here is my process:
(1) The directory structure of data BEFORE moving all CIB data directories under a single RPF directory:
[root@fooServer foof]# ls
cib01  cib05  cib10
[root@fooServer foof]# cd cib01
[root@fooServer cib01]# pwd
/media/Data/samba/fdgreen/foof/cib01

[root@fooServer cib01]# ls
cb01foo410b1  cb01foo414k4  cb01foo413c3  cb01foo417j8  cb01foo424c2  cb01foo424l9
...

For each of these subdirectories there is a single rpf directory in them.  
[root@fooServer cib01]# ls cb01foo410b1
rpf
All subdirectories under "cib01/05/10" follow this format, where the rpf dir contains a.toc file, and data.  


(2) for each /media/Data/samba/fdgreen/foof/cib01, cib05, cib10 dirs I moved all "rpf/*" directory contents, under a single "rpf" directory.
find . -iname rpf -type d -print -exec cp -R {} /media/Data/samba/fdgreen/cibshared/rpf \;


(2a) So at end cibshared/rpf dir has the last a.toc file copied over from all those dirs named rpf.  
Is this the correct way to move all CIB under a single RPF (2a) ?  OR (2b) should I have copied over the rpf parent directory into "cibshared/rp", ie end up with  cibshared/rpf/cb01foo410b1/rpf

Then run MakeToc listing all rpf dir names?  For example if using (2b)
$JAVACMD -Xmx8192m -Xbootclasspath:"$LOCALCLASSPATH"
-Dopenmap.configDir=$OPENMAP_HOME/share -Ddebug.showprogress
com.bbn.openmap.layer.rpf.MakeToc -absolute -boundary 500  -extraverbose -log
cibshared.txt /media/Data/samba/fdgreen/cibshared/rpf/cb01foo410b1/rpf/media/Data/samba/fdgreen/cibshared/rpf/cb01foo414k4/rpf  etc

When I use (2a), the end A.TOC is invalid.
$JAVACMD -Xmx8192m -Xbootclasspath:"$LOCALCLASSPATH"
-Dopenmap.configDir=$OPENMAP_HOME/share -Ddebug.showprogress
com.bbn.openmap.layer.rpf.MakeToc -absolute -boundary 500  -extraverbose -log
cibshared.txt /media/Data/samba/fdgreen/cibshared/rpf


The end output from this command seems ok
latlon2GEOREF: lat = 0.0, lon = 0.0, GEOREF = NGAA00
MakeToc: *** writing directory section ***
MakeToc: *** Normal end of make-toc ***

I copy the resulting A.TOC file to /media/Data/samba/fdgreen/cibshared/rpf.  

When run RpfTocHandler it gives exception
$JAVACMD -Xmx1024m -Xbootclasspath:"$LOCALCLASSPATH"
-Dopenmap.configDir=$OPENMAP_HOME/share -Ddebug.showprogress
com.bbn.openmap.layer.rpf.RpfTocHandler
/media/Data/samba/fdgreen/cibshared/rpf

Running above command output:
[Administrator@fooServer openmap-5.1.12]$ ./openmap
Exception in thread "main" java.lang.NegativeArraySizeException
     at
com.bbn.openmap.layer.rpf.RpfTocHandler.parseToc(RpfTocHandler.java:337)
     at
com.bbn.openmap.layer.rpf.RpfTocHandler.loadFile(RpfTocHandler.java:256)
     at
com.bbn.openmap.layer.rpf.RpfTocHandler.main(RpfTocHandler.java:1238)


So, did I mess up the "move all of your CIB data directories under a single RPF directory"?
thanks
maria

Don Dietrick

unread,
Feb 23, 2016, 9:27:19 AM2/23/16
to openmap-users
I would have expected something like

$JAVACMD -Xmx8192m -Xbootclasspath:"$LOCALCLASSPATH" -Ddebug.showprogress
com.bbn.openmap.layer.rpf.MakeToc -absolute -boundary 500  -extraverbose -log
cibshared.txt -output /media/Data/samba/fdgreen/cibshared/rpf /media/Data/samba/fdgreen/cibshared/rpf

to work.

- Don
Reply all
Reply to author
Forward
0 new messages