|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.maps.format.dted.IlvDTEDReader
public class IlvDTEDReader
This class can be used to read DTED files.
The Digital Terrain
Elevation Data (DTED) format is a map format for representing
terrain elevations, which is published by the US National Imagery
and Mapping Agency (NIMA).
This reader produces only one map
feature which is an IlvMapRaster.
The DTED reader provided in this package is based on the specification document MIL-PRF-89020A of 19 April 1996.
DTED files are available with various precision levels: DTED0, DTED1 and DTED2, with DTED2 offering the greatest precision.
IlvMapRaster,
IlvDefaultRasterRenderer| Constructor Summary | |
|---|---|
IlvDTEDReader(DataInput dataInput)
Creates an instance of the DTED reader from a DataInput. |
|
IlvDTEDReader(String fileName)
Creates an instance of the DTED reader for the specified file name. |
|
IlvDTEDReader(URL url)
Creates an instance of the DTED reader for the specified URL. |
|
| Method Summary | |
|---|---|
void |
dispose()
Releases the resources allocated to the reader. |
void |
finalize()
Is called by the Java Garbage Collector to release the resources allocated to the reader. |
protected int |
getColumnCount()
Returns the number of columns of the data. |
IlvCoordinateSystem |
getCoordinateSystem()
Returns the spatial reference system that describes the coordinate system of geometric coordinates of the map features. |
IlvFeatureRenderer |
getDefaultFeatureRenderer()
Returns an instance of IlvDefaultFeatureRenderer. |
IlvCoordinate |
getLowerRightCorner()
Returns the coordinates of the lower-right corner of the DTED raster image. |
short |
getMaxElevation()
Returns the highest elevation. |
short |
getMinElevation()
Returns the lowest elevation. |
IlvMapFeature |
getNextFeature()
Returns the raster of elevations. |
protected int |
getRowCount()
Returns the number of rows of the data. |
IlvCoordinate |
getUpperLeftCorner()
Returns the coordinates of the upper-left corner of the DTED raster image. |
boolean |
isGeoreferenced()
Returns true because this format is a georeferenced format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IlvDTEDReader(String fileName)
throws IOException,
IlvMapFormatException,
FileNotFoundException
fileName - The name of the DTED file to be read.
FileNotFoundException - if the file does not exist.
IlvMapFormatException - if there is a format error.
IOException - if an IO error occurs.
public IlvDTEDReader(URL url)
throws IOException,
IlvMapFormatException
url - The URL of the DTED file to be read.
IlvMapFormatException - if there is a format error.
IOException - if an IO error occurs.
public IlvDTEDReader(DataInput dataInput)
throws IOException,
IlvMapFormatException
DataInput.
dataInput - A data input opened on a DTED file.
IlvMapFormatException - if there is a format error.
IOException - if an IO error occurs.| Method Detail |
|---|
public short getMaxElevation()
public short getMinElevation()
protected int getColumnCount()
protected int getRowCount()
public 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 boolean isGeoreferenced()
true because this format is a georeferenced format.
isGeoreferenced in interface IlvMapFeatureIteratorpublic IlvCoordinateSystem getCoordinateSystem()
getCoordinateSystem in interface IlvMapFeatureIteratornull
if the coordinate system is unknown.public IlvCoordinate getUpperLeftCorner()
getUpperLeftCorner in interface IlvMapFeatureIteratorpublic IlvCoordinate getLowerRightCorner()
getLowerRightCorner in interface IlvMapFeatureIterator
public IlvMapFeature getNextFeature()
throws IOException
getNextFeature in interface IlvMapFeatureIteratorIOException - when an error occurs while reading the data.IlvMapRasterpublic IlvFeatureRenderer getDefaultFeatureRenderer()
IlvDefaultFeatureRenderer.
getDefaultFeatureRenderer in interface IlvMapFeatureIterator
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||