public class IlvCADRGFrameReader extends Object implements IlvMapFeatureIterator
The geometries returned by the IlvCADRGFrameReader are
instances of the class IlvMapImage. Usually, a CADRG Frame
contains 36 subframes. Each subframe is translated into an
IlvMapFeature.
IlvCADRGFrame,
IlvCADRGTocReader| Constructor and Description |
|---|
IlvCADRGFrameReader(DataInput dataInput,
boolean transparency)
Creates an instance of a CADRG frame reader from a dataInput opened
on a CADRG Frame.
|
IlvCADRGFrameReader(String fileName,
boolean transparency)
Creates an instance of a CADRG frame reader for the specified frame
file.
|
IlvCADRGFrameReader(URL url,
boolean transparency)
Creates an instance of a CADRG frame reader for the specified URL.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Releases the resources allocated by the reader.
|
void |
finalize()
Is called by the Java Garbage Collector to release
the resources allocated to the reader.
|
ColorModel |
getColorModel()
Returns the color model to use for this frame.
|
IlvCoordinateSystem |
getCoordinateSystem()
Returns the spatial reference system that describes the coordinate
system of geometric coordinates of the map features.
|
IlvFeatureRenderer |
getDefaultFeatureRenderer()
Returns the default renderer for this reader.
|
IlvCoordinate |
getLowerRightCorner()
Returns the coordinates of the lower-right corner of the frame in longitude
and latitude expressed in the reader's projection.
|
IlvCoordinate |
getLowerRightCorner(int subFrameIndex)
Returns the lower right coordinate of one of the 36 sub frames.
|
IlvMapFeature |
getNextFeature()
Returns the next feature read.
|
IlvCoordinate |
getUpperLeftCorner()
Returns the coordinates of the upper-left corner of the frame in longitude
and latitude expressed in the readers' projection.
|
IlvCoordinate |
getUpperLeftCorner(int subFrameIndex)
Returns the upper left coordinate of one of the 36 sub frames.
|
boolean |
isGeoreferenced()
Returns
false if the frame is an overview or a frame
containing legends. |
boolean |
isSubFrameValid(int subFrame)
Returns true if the sub frame is defined in the CADRG frame.
|
byte[] |
readNextSubFrameRaster()
Reads the next available buffer in the CADRG Frame file.
|
public IlvCADRGFrameReader(String fileName, boolean transparency) throws FileNotFoundException, IOException, IlvMapFormatException
fileName - The name of the CADRG frame filetransparency - If true, the transparent pixels
of the CADRG frame are displayed as transparent; otherwise,
they appear black.FileNotFoundException - if the file does not exist.IOException - if an IO error occurs.IlvMapFormatExceptionpublic IlvCADRGFrameReader(URL url, boolean transparency) throws IOException, IlvMapFormatException
url - The URL of the CADRG frame filetransparency - If true, the transparent pixels
of the CADRG frame are displayed as transparent; otherwise,
they appear black.IOException - if an IO error occurs.IlvMapFormatException - if a format error occurs.public IlvCADRGFrameReader(DataInput dataInput, boolean transparency) throws IOException, IlvMapFormatException
dataInput - the data input of the CADRG frame filetransparency - If true, the transparent pixels
of the CADRG frame are displayed as transparent; otherwise,
they appear black.IOException - if an IO error occurs.IlvMapFormatException - if a format error occurs.public IlvCoordinateSystem getCoordinateSystem()
getCoordinateSystem in interface IlvMapFeatureIteratornull
if the coordinate system is unknown.public IlvCoordinate getUpperLeftCorner()
getUpperLeftCorner in interface IlvMapFeatureIteratorpublic IlvCoordinate getLowerRightCorner()
getLowerRightCorner in interface IlvMapFeatureIteratorpublic IlvFeatureRenderer getDefaultFeatureRenderer()
getDefaultFeatureRenderer in interface IlvMapFeatureIteratorpublic void dispose()
dispose in interface IlvMapFeatureIteratorpublic void finalize()
dispose method
has not been called, it releases the resources used by the reader.public IlvMapFeature getNextFeature() throws IOException
null
when all the features are read.getNextFeature in interface IlvMapFeatureIteratorIOExceptionpublic byte[] readNextSubFrameRaster()
throws IOException
getNextFeature().IOExceptiongetNextFeature(),
getColorModel()public boolean isGeoreferenced()
false if the frame is an overview or a frame
containing legends.isGeoreferenced in interface IlvMapFeatureIteratorpublic ColorModel getColorModel()
public IlvCoordinate getUpperLeftCorner(int subFrameIndex)
subFrameIndex - index of the sub frame (from 0 to 35)public IlvCoordinate getLowerRightCorner(int subFrameIndex)
subFrameIndex - index of the sub frame (from 0 to 35)public boolean isSubFrameValid(int subFrame)
subFrame - index of the sub frame (from 0 to 35)© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.