com.metsci.glimpse.charts.vector.parser
Class DNCHarvest
java.lang.Object
com.metsci.glimpse.charts.vector.parser.DNCHarvest
public class DNCHarvest
- extends java.lang.Object
Command line utility to convert dnc files into metron's own internal dnc format.
To use as a stand alone command line utility, may be easiest to hard code values
for dataDir and topLevelOutputDir in the main main method.
The output directry is a multi directory format. Given a enc 000 data file like:
data/enc/atlantic-medium-enc/ENC_ROOT/US3NY01M/US3NY01M.000
The resulting metron enc file will be written to:
TOPLEVELOUTPUTDIR/atlantic-medium-enc/US3NY01M/US3NY01M_bin.txt
The parent directory of the ENC_ROOT directory will be the name of output subdirectory.
The root name (file name minus .000 extension) will the grandchild output directory.
- Author:
- john
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DNCHarvest
public DNCHarvest()
throws java.io.IOException
- Throws:
java.io.IOException
recursivelyConvertDncFiles
public boolean recursivelyConvertDncFiles(java.io.File topLevelOutputDir,
java.lang.String dataHome)
throws java.io.IOException,
java.net.URISyntaxException,
java.lang.InterruptedException
- Throws:
java.io.IOException
java.net.URISyntaxException
java.lang.InterruptedException
convertDncDB
public void convertDncDB(java.io.File topLevelOutputDir,
java.lang.String dncRootResource)
throws java.io.IOException,
java.net.URISyntaxException,
java.lang.InterruptedException
- Given an dnc db directory, will parse it and create a metron dnc formatted file.
- Throws:
java.io.IOException
java.net.URISyntaxException
java.lang.InterruptedException
convertDncFile
public void convertDncFile(java.io.File topLevelOutputDir,
java.lang.String dncRootResource,
DNCHarvest.LibraryType... libraryTypes)
throws java.io.IOException,
java.net.URISyntaxException,
java.lang.InterruptedException
- Throws:
java.io.IOException
java.net.URISyntaxException
java.lang.InterruptedException
createDNCFileFromOGRInfoConsoleFile
public void createDNCFileFromOGRInfoConsoleFile(java.io.File gdalConsoleFile)
throws java.io.IOException
- Throws:
java.io.IOException
createDNCFileFromOGRInfoConsoleFile
public void createDNCFileFromOGRInfoConsoleFile(java.io.File gdalConsoleFile,
java.io.File metsciOutFile)
throws java.io.IOException
- Throws:
java.io.IOException
specialBatch
public static void specialBatch()
main
public static void main(java.lang.String[] args)
Copyright © 2012 Metron, Inc.. All Rights Reserved.