|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.format.cadrg.IlvCADRGFrameReader
public class IlvCADRGFrameReader
This class is used to read CADGR frames. A frame is a file that constitutes the basic entity of the CADRG format. Frame files can be found in the coverage directories that are below the root directory of a CADRG product.
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.
IlvMapFormatException
public 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.| Method Detail |
|---|
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.
finalize in class Objectdispose()
public IlvMapFeature getNextFeature()
throws IOException
null
when all the features are read.
getNextFeature in interface IlvMapFeatureIteratorIOException
public 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)
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||