public class IlvDTEDReader extends Object implements IlvMapFeatureIterator
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 and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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. |
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.public short getMaxElevation()
public short getMinElevation()
protected int getColumnCount()
protected int getRowCount()
public void dispose()
dispose
in interface IlvMapFeatureIterator
public void finalize()
dispose
method has not
been called, it releases the resources used by the reader.public boolean isGeoreferenced()
true
because this format is a georeferenced format.isGeoreferenced
in interface IlvMapFeatureIterator
public IlvCoordinateSystem getCoordinateSystem()
getCoordinateSystem
in interface IlvMapFeatureIterator
null
if the coordinate system is unknown.public IlvCoordinate getUpperLeftCorner()
getUpperLeftCorner
in interface IlvMapFeatureIterator
public IlvCoordinate getLowerRightCorner()
getLowerRightCorner
in interface IlvMapFeatureIterator
public IlvMapFeature getNextFeature() throws IOException
getNextFeature
in interface IlvMapFeatureIterator
IOException
- when an error occurs while reading the data.IlvMapRaster
public IlvFeatureRenderer getDefaultFeatureRenderer()
IlvDefaultFeatureRenderer
.getDefaultFeatureRenderer
in interface IlvMapFeatureIterator
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.