Views
Maps Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions
IlvDTEDReader Class Reference

This class can be used to read DTED files. More...

#include <ilviews/maps/format/dted/dtedreader.h>

Inheritance diagram for IlvDTEDReader:
IlvMapFeatureIterator

Public Member Functions

 IlvDTEDReader (const char *filename)
 Initializes a new instance of the DTED reader for a specified file name. More...
 
 IlvDTEDReader (IlIUrlStream &input)
 Initializes a new instance of the DTED reader from a IlIUrlStream. More...
 
 IlvDTEDReader (std::istream &input)
 Initializes a new instance of the DTED reader from an input stream. More...
 
IlvFeatureRenderergetDefaultFeatureRenderer (IlvDisplay *display)
 Returns an instance of IlvDefaultFeatureRenderer. More...
 
virtual IlvMapsError getInitStatus () const
 Checks the initialization status of this feature iterator. More...
 
virtual IlBoolean getLowerRightCorner (IlvCoordinate &) const
 Computes the lower right corner of the rectangle containing all the map features of this iterator. More...
 
virtual const IlvMapFeaturegetNextFeature (IlvMapsError &)
 Returns the next map feature of the iterator. More...
 
const IlvProjectiongetProjection () const
 Returns the projection used in the DTED file. More...
 
virtual IlBoolean getUpperLeftCorner (IlvCoordinate &) const
 Computes the upper left corner of the rectangle containing all the map features of this iterator. More...
 
- Public Member Functions inherited from IlvMapFeatureIterator
virtual IlvClassInfogetClassInfo () const =0
 Returns the class information for this feature iterator. More...
 
virtual void setSourceProjection (IlvProjection *projection)
 Sets the projection of geometries generated by this feature iterator. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from IlvMapFeatureIterator
static IlvClassInfoClassInfo ()
 Returns the class information of the class. More...
 
static IlvClassInfo ** ClassInfoRef ()
 Returns the address of the class information of the class. More...
 

Detailed Description

This class can be used to read DTED files.

Library: ilvmaps

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.

Samples of DTED files can be downloaded from the Geospatial Engine.

Constructor & Destructor Documentation

◆ IlvDTEDReader() [1/3]

IlvDTEDReader::IlvDTEDReader ( const char *  filename)

Initializes a new instance of the DTED reader for a specified file name.

Parameters
filenameThe name of the DTED file to be read.

◆ IlvDTEDReader() [2/3]

IlvDTEDReader::IlvDTEDReader ( std::istream &  input)

Initializes a new instance of the DTED reader from an input stream.

Parameters
inputAn input stream, that must be opened on a DTED file.

◆ IlvDTEDReader() [3/3]

IlvDTEDReader::IlvDTEDReader ( IlIUrlStream input)

Initializes a new instance of the DTED reader from a IlIUrlStream.

Parameters
inputA stream opened on a DTED URL.

Member Function Documentation

◆ getDefaultFeatureRenderer()

IlvFeatureRenderer* IlvDTEDReader::getDefaultFeatureRenderer ( IlvDisplay display)
virtual

Returns an instance of IlvDefaultFeatureRenderer.

Parameters
displayThe display instance that is used by the renderer.
Returns
An instance of IlvDefaultFeatureRenderer.

Implements IlvMapFeatureIterator.

◆ getInitStatus()

virtual IlvMapsError IlvDTEDReader::getInitStatus ( ) const
virtual

Checks the initialization status of this feature iterator.

Returns
The error code that may have happened during the iterator initialization.

Implements IlvMapFeatureIterator.

◆ getLowerRightCorner()

virtual IlBoolean IlvDTEDReader::getLowerRightCorner ( IlvCoordinate result) const
virtual

Computes the lower right corner of the rectangle containing all the map features of this iterator.

Parameters
resultSet on return to the lower right corner of the rectangle containing all the map features of this iterator.
Returns
IlFalse if lower right is unknown.

Implements IlvMapFeatureIterator.

◆ getNextFeature()

virtual const IlvMapFeature* IlvDTEDReader::getNextFeature ( IlvMapsError &  status)
virtual

Returns the next map feature of the iterator.

Parameters
statusSet on return to the status of the operation. This status is IlvMaps::NoError() if no error occurs.
Returns
The next map feature available, or 0 if the iteration is finished. The returned feature is owned by the feature iterator.

Implements IlvMapFeatureIterator.

◆ getProjection()

const IlvProjection* IlvDTEDReader::getProjection ( ) const
virtual

Returns the projection used in the DTED file.

The projection is an IlvGeographicProjection.

Returns
The projection.

Implements IlvMapFeatureIterator.

◆ getUpperLeftCorner()

virtual IlBoolean IlvDTEDReader::getUpperLeftCorner ( IlvCoordinate result) const
virtual

Computes the upper left corner of the rectangle containing all the map features of this iterator.

Parameters
resultSet on return to the upper left corner of the rectangle containing all the map features of this iterator.
Returns
IlFalse if upper left is unknown.

Implements IlvMapFeatureIterator.