rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave 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)
 Creates an instance of the DTED reader for the specified file name. More...
 
 IlvDTEDReader (istream &input)
 Creates an instance of the DTED reader from a istream. More...
 
 IlvDTEDReader (IlIUrlStream &input)
 Creates an instance of the DTED reader from a IlIUrlStream. More...
 
IlvFeatureRenderergetDefaultFeatureRenderer (IlvDisplay *)
 Returns an instance of IlvDefaultFeatureRenderer. More...
 
virtual IlvMapsError getInitStatus () const
 Checks the initialization status of this feature iterator. More...
 
virtual IlBoolean getLowerRightCorner (IlvCoordinate &coordinate) const
 Returns the lower right corner of the rectangle containing all the map features of this iterator. More...
 
virtual const IlvMapFeaturegetNextFeature (IlvMapsError &status)
 Returns the next map feature of the iterator, or 0 if the iteration is finished. The returned feature is owned by the feature iterator. More...
 
const IlvProjectiongetProjection () const
 Returns the projection used in the DTED file. More...
 
virtual IlBoolean getUpperLeftCorner (IlvCoordinate &) const
 Returns 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. This method is to be used when feature source is not georeferenced. The default implementation of this method does nothing. 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::IlvDTEDReader ( const char *  filename)

Creates an instance of the DTED reader for the specified file name.

Parameters
filenameThe name of the DTED file to be read.
IlvDTEDReader::IlvDTEDReader ( istream &  input)

Creates an instance of the DTED reader from a istream.

Parameters
inputA stream opened on a DTED file.
IlvDTEDReader::IlvDTEDReader ( IlIUrlStream input)

Creates an instance of the DTED reader from a IlIUrlStream.

Parameters
inputA stream opened on a DTED URL.

Member Function Documentation

IlvFeatureRenderer* IlvDTEDReader::getDefaultFeatureRenderer ( IlvDisplay )
virtual

Returns an instance of IlvDefaultFeatureRenderer.

Returns
An instance of IlvDefaultFeatureRenderer.

Implements IlvMapFeatureIterator.

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.

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

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

Returns
IlFalse if lower right is unknown.

Implements IlvMapFeatureIterator.

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

Returns the next map feature of the iterator, or 0 if the iteration is finished. The returned feature is owned by the feature iterator.

Parameters
statusStores the status of the operation. This status is IlvMaps::NoError() if no error occurs.
Returns
The next map feature available.

Implements IlvMapFeatureIterator.

const IlvProjection* IlvDTEDReader::getProjection ( ) const
virtual

Returns the projection used in the DTED file.

The projection is an IlvGeographicProjection.

Returns
The projection.

Implements IlvMapFeatureIterator.

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

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

Returns
IlFalse if upper left is unknown.

Implements IlvMapFeatureIterator.


© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.