public class IlvRasterCADRGReader extends IlvRasterAbstractReader
IlvCADRGCoverage
set using addCADRGCoverage(IlvCADRGCoverage)
.
Example of use:// read the CADRG table of contents IlvCADRGTocReader tocReader = new IlvCADRGTocReader(fileName); // retrieve the cadrg coverages. IlvCADRGCoverage coverages[]= tocReader.getCoverages(); // create the CADRG Raster reader. IlvRasterCADRGReader cadrgReader = new IlvRasterCADRGReader(); // add all coverages into the raster reader. for(int iCov=0;iCov<coverages.length;iCov++) { cadrgReader.addCADRGCoverage(coverages[iCov]); }
IlvCADRGTocReader
,
IlvRasterAbstractReader
,
Serialized FormneedReload
Constructor and Description |
---|
IlvRasterCADRGReader()
Creates a new
IlvRasterCADRGReader . |
IlvRasterCADRGReader(IlvInputStream stream)
Creates a new
IlvRasterCADRGReader from previously saved information in the input stream. |
Modifier and Type | Method and Description |
---|---|
void |
addCADRGCoverage(IlvCADRGCoverage cov)
Adds a CADRG Coverage to the list of images being managed.
|
void |
addCADRGFrame(IlvCADRGFrame frame)
Adds a single CADRG Frame to the list of images being managed.
|
IlvCoordinateSystem |
getCoordinateSystem()
Returns a WGS84 system.
|
IlvMathTransform |
getInternalTransformation(int imageIndex)
Return the projection associated with the raster stored at the given
index.
|
IlvCoordinate |
getLowerRightCorner(IlvCADRGFrame frame,
int subFrameIndex)
Computes the upper lower right of a sub frame.
|
IlvFeatureAttributeProperty |
getProperties(int imageIndex)
Returns the feature properties to be associated with the image.
|
IlvCoordinate |
getUpperLeftCorner(IlvCADRGFrame frame,
int subFrameIndex)
Computes the upper left corner of a sub frame.
|
void |
reload(IlvThreadMonitoringData monitorInfo)
Given the state of the reader (number of images read, coverage zone,...), the purpose of this method
is to recreate all images from the original source.
|
void |
write(IlvOutputStream stream)
Writes the attributes of a persistent object.
|
addRaster, computeGisImageBounds, computeLimits, createRasterTileLoader, dispose, getDefaultFeatureRenderer, getDefaultMaximumIntervalsForDeterminingImageLocation, getImageBounds, getImageCount, getInverseTransformation, getLowerRightCorner, getLowerRightCorner, getMaximumIntervalsForDeterminingImageLocation, getNextFeature, getRasterMappedBuffer, getRasterProperties, getTileLoader, getTileLoader, getTileLoaders, getTransformation, getUpperLeftCorner, getUpperLeftCorner, isForceImageLoadingWhenSaving, isGeoreferenced, isHighQualityRendering, isNeedReload, removeRaster, restart, setDefaultMaximumIntervalsForDeterminingImageLocation, setForceImageLoadingWhenSaving, setHighQualityRendering, setMaximumIntervalsForDeterminingImageLocation, setTransformation
public IlvRasterCADRGReader()
IlvRasterCADRGReader
.public IlvRasterCADRGReader(IlvInputStream stream) throws IlvReadFileException
IlvRasterCADRGReader
from previously saved information in the input stream.stream
- Stream being read.IlvReadFileException
public IlvCoordinateSystem getCoordinateSystem()
null
if the coordinate system is unknown.IlvMapFeatureIterator.getCoordinateSystem()
public IlvMathTransform getInternalTransformation(int imageIndex)
getInternalTransformation
in class IlvRasterAbstractReader
imageIndex
- The index of the raster.IlvRasterAbstractReader.getInternalTransformation(int)
public IlvFeatureAttributeProperty getProperties(int imageIndex)
getProperties
in class IlvRasterAbstractReader
imageIndex
- The index of the image.IlvRasterAbstractReader.getProperties(int)
public void addCADRGCoverage(IlvCADRGCoverage cov)
cov
- Coverage to manage as a set of images.public void reload(IlvThreadMonitoringData monitorInfo)
IlvRasterProperties
of the reader as they
might not be saved when the theme only is saved.reload
in class IlvRasterAbstractReader
monitorInfo
- Used to update task progress.IlvRasterAbstractReader.reload(ilog.views.maps.raster.datasource.IlvThreadMonitoringData)
public IlvCoordinate getUpperLeftCorner(IlvCADRGFrame frame, int subFrameIndex)
frame
- Frame containing the subframesubFrameIndex
- sub frame index (0-35)public IlvCoordinate getLowerRightCorner(IlvCADRGFrame frame, int subFrameIndex)
frame
- Frame containing the subframesubFrameIndex
- sub frame index (0-35)public void addCADRGFrame(IlvCADRGFrame frame)
frame
- Frame to add to the set of managed images.public void write(IlvOutputStream stream) throws IOException
write
in interface IlvPersistentObject
write
in class IlvRasterAbstractReader
stream
- The output stream.IOException
- thrown when an exception occurs during
the write operation for this object.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.