Earth Observation Mission CFI Software Pointing Software User Manual |
Class for the DEM parameters. More...
Public Member Functions | |
DemId () | |
Empty Class constructor. | |
~DemId () throw (CfiError) | |
Class destructor. | |
void | init (long mode, long model, const string demFile) throw (CfiError) |
Initialise the DEM parameters. | |
double | compute (const ModelId &modelId, double lon, double lat) const throw (CfiError) |
Compute altitude over the sea level for a point in the Earth. | |
SatId | satId () const |
Get satellite id. | |
DemConfFile | getData () const throw (CfiError) |
Get DEM parameters. | |
DemInfo | getInfo (const ModelId &modelId, double lon, double lat) const throw (CfiError) |
Get DEM source data. | |
void | configure (DemIdConfig &config) throw (CfiError) |
Configure DEM cache. | |
double | getCellValue (long row, long column) const throw (CfiError) |
Get a DEM value for the given global row/column. | |
void | getCellGeod (long row, long column, double &lat, double &lon) const throw (CfiError) |
Get longitude/latitude corresponding to the the DEM point with the given global row/column. | |
Protected Member Functions | |
GenericId * | getId () |
Get the id. |
Class for the DEM parameters.
EECFI::DemId::DemId | ( | ) |
Empty Class constructor.
EECFI::DemId::~DemId | ( | ) | throw (CfiError) |
Class destructor.
References EECFI::CfiId::status(), EECFI::CfiId::subtractInstance(), and EECFI::CfiClass::throwWarn.
double EECFI::DemId::compute | ( | const ModelId & | modelId, | |
double | lon, | |||
double | lat | |||
) | const throw (CfiError) |
Compute altitude over the sea level for a point in the Earth.
modelId | Model id. | |
lon | Longitude. | |
lat | Latitude. |
void EECFI::DemId::configure | ( | DemIdConfig & | config | ) | throw (CfiError) |
Configure DEM cache.
config | DEM ID configuration. The "command" parameter in the "config" object has to be compatible with the DEM cache type in the DemId object: XPCFI_PRELOAD_CACHE cannot be used with the command XPCFI_SET_MAX_SIZE and XPCFI_FIFO_CACHE cannot be used with the command XPCFI_LOAD_TILE_SET. |
void EECFI::DemId::getCellGeod | ( | long | row, | |
long | column, | |||
double & | lat, | |||
double & | lon | |||
) | const throw (CfiError) |
Get longitude/latitude corresponding to the the DEM point with the given global row/column.
The DemId::getCellGeod method converts row and column indexes to associated latitude and longitude according to DEM caracteristics.
row | The index of the row to be converted. | |
column | The index of the column to be converted. | |
lon | Longitude [deg]. | |
lat | Latitude [deg]. |
double EECFI::DemId::getCellValue | ( | long | row, | |
long | column | |||
) | const throw (CfiError) |
Get a DEM value for the given global row/column.
The DemId::getCellValue method directly retrieves the value of a DEM cell.
row | The index of the row to be retrieved. | |
column | The index of the column to be retrieved. |
DemConfFile EECFI::DemId::getData | ( | ) | const throw (CfiError) |
Get DEM parameters.
References EECFI::CfiError::addMsg(), EECFI::DemConfFile::cacheMaxSize, EECFI::DemConfFile::cacheType, EECFI::DemConfFile::dataSize, EECFI::DemConfFile::dataType, EECFI::DemConfFile::dir, EECFI::DemMiniTiles::fileName, EECFI::DemConfFile::geoidComputation, EECFI::DemConfFile::geoidNumHarmonics, EECFI::DemMiniTiles::latSize, EECFI::DemMiniTiles::lonSize, EECFI::DemConfFile::metadataModel, EECFI::DemConfFile::miniTiles, EECFI::DemConfFile::model, EECFI::DemConfFile::northAlt, EECFI::DemConfFile::offsetX, EECFI::DemConfFile::offsetY, EECFI::DemConfFile::resUnit, EECFI::DemConfFile::resX, EECFI::DemConfFile::resY, EECFI::DemConfFile::southAlt, EECFI::CfiClass::throwWarn, EECFI::DemConfFile::userDirectory, EECFI::DemConfFile::XNumPoints, EECFI::DemConfFile::xRange, EECFI::DemConfFile::YNumPoints, and EECFI::DemConfFile::yRange.
GenericId * EECFI::DemId::getId | ( | ) | [protected] |
Get the id.
DemInfo EECFI::DemId::getInfo | ( | const ModelId & | modelId, | |
double | lon, | |||
double | lat | |||
) | const throw (CfiError) |
Get DEM source data.
modelId | Model id. | |
lon | Longitude. | |
lat | Latitude. |
References EECFI::DemInfo::dataSource, and EECFI::DemInfo::demModel.
void EECFI::DemId::init | ( | long | mode, | |
long | model, | |||
const string | demFile | |||
) | throw (CfiError) |
Initialise the DEM parameters.
The altitude is calculated from the altitudes read from a digital elevation model (DEM).
mode | Digital elevation model initialisation mode (DemModelPointingEnum). This parameter has no effect in current implementation (the DEM type is taken from configuration file), but a warning will be raised if the value does not coincide with the one in configuration file. | |
model | Digital elevation model initialisation model (dummy in current implementation). | |
demFile | File used for DEM initialisation. |
SatId EECFI::DemId::satId | ( | ) | const |
Get satellite id.