public class IlvCADRGCoverageList extends Object
// create a CADRG TOC reader. IlvCADRGTocReader tocReader = new IlvCADRGTocReader(fileName); // Create a coverage list. IlvCADRGCoverageList list = new IlvCADRGCoverageList(); // Add and sort coverages list.addCoverages(fileName, tocReader.getCoverages()); // retrieve the scale list Integer scales[] = list.getOrderedScaleList(); for (int i = 0;i < scaleDesc.length ; i--) { // retrieve coverages for each scale. IlvCADRGCoverage[] coverages = list.getCoverageList(scales[i])); // load the coverages... }
Constructor and Description |
---|
IlvCADRGCoverageList()
Creates a new
IlvCADRGCoverageList . |
Modifier and Type | Method and Description |
---|---|
void |
addCoverages(String fileName,
IlvCADRGCoverage[] coverages)
Adds a table of coverage made by reading a file.
|
void |
addCoverages(URL url,
IlvCADRGCoverage[] coverages)
Adds a table of coverage made by reading from an URL.
|
IlvCADRGCoverage[] |
getCoverageList(Integer scale)
Returns the coverages for a specific scale.
|
String |
getFileName(IlvCADRGCoverage coverage)
Returns the file name describing the CADRG coverage.
|
String[] |
getOrderedScaleDescription()
This will create a string list (with the same size as the scale list) containing the String description of the first coverage for each scale.
|
Integer[] |
getOrderedScaleList()
This method will sort the known coverages and return a table of scales.
|
public IlvCADRGCoverageList()
IlvCADRGCoverageList
.public String getFileName(IlvCADRGCoverage coverage)
coverage
- Coveragepublic void addCoverages(String fileName, IlvCADRGCoverage[] coverages)
IlvCADRGCoverage.getVerticalResolution()
and put all coverages with the same scale in a single array.
You can then retrieve the coverages by using getOrderedScaleList()
and getCoverageList(Integer)
.fileName
- name of the file read.coverages
- Coverage table.public void addCoverages(URL url, IlvCADRGCoverage[] coverages)
IlvCADRGCoverage.getVerticalResolution()
and put all coverages with the same scale in a single array.
You can then retrieve the coverages by using getOrderedScaleList()
and getCoverageList(Integer)
.url
- URL of the file read.coverages
- Coverage table.public IlvCADRGCoverage[] getCoverageList(Integer scale)
scale
- scale value.public Integer[] getOrderedScaleList()
public String[] getOrderedScaleDescription()
getOrderedScaleList()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.