Class Raster
Defined in File Raster.hpp
Inheritance Relationships
Derived Type
public navtk::geospatial::GdalRaster(Class GdalRaster)
Class Documentation
Interface to an Elevation Reader based on a rectangular grid of pixels (i.e.
posts).
Subclassed by navtk::geospatial::GdalRaster
Public Functions
Returns the total number of pixels in each line.
- Returns
The number of pixels in the line.
Returns the total number of lines in the dataset object (i.e.
in the file).
- Returns
The number of lines.
Transform the coordinates from wgs84 (lat/lon) to pixel offset.
The pixel offset is the decimal distance from the top left of the tile, must be converted to an int to get a specific pixel index.
- Parameters
latitude – latitude in degrees
longitude – longitude in degrees
- Returns
The converted coordinates as a pixel offset from the top left of the tile.
Returns a single double representing the elevation at the given pixel index.
- Parameters
idx_x – index of pixel in the line, value should be between 0 and get_width().
idx_y – index of line to read, value should be between 0 and get_height().
- Returns
The elevation at the pixel index, or no_data_value if the requested index is unavailable in the dataset or is out of bounds.
Return a human-readable name for this object.
- Returns
The file name.
Compare the given elevation to the raster’s no data value.
- Parameters
data – The elevation to evaluate.
- Returns
trueif the elevation is valid andfalseif not.
Remove data from memory, if cached.
Public Members
Datasets define a value which they use to denote invalid or missing data inside of a tile.
If any elevation matches this value then it is invalid.
A unique pointer to a GDALDataset object with a custom deleter.