Container class for geospatial raster data, represented by a GDAL dataset. More...
#include <core/GeoRasterValue.hpp>
Public Member Functions | |
GeoRasterValue (std::string FilePath, std::string FileName) | |
Creates a new value. More... | |
~GeoRasterValue () | |
Closes the opened GDAL dataset. More... | |
openfluid::core::UnstructuredValue::UnstructuredType | getType () const |
Returns the type of this GeoRasterValue. More... | |
GDALDataset * | get () |
Gets the associated opened GDAL dataset in read-only access. More... | |
std::string | getAbsolutePath () |
Returns the absolute Path of this GeoRasterValue. More... | |
![]() | |
GeoValue (std::string FilePath, std::string FileName) | |
virtual | ~GeoValue ()=0 |
std::string | getFilePath () |
![]() | |
UnstructuredValue () | |
virtual | ~UnstructuredValue () |
Protected Member Functions | |
void | tryToOpenSource () |
Open the GDALDataset of this GeoRasterValue. More... | |
Protected Attributes | |
GDALDataset * | mp_Data |
The GDALDataset associated to this GeoRasterValue. More... | |
![]() | |
std::string | m_FilePath |
std::string | m_FileName |
std::string | m_AbsolutePath |
Additional Inherited Members | |
![]() | |
enum | UnstructuredType { GeoVectorValue, GeoRasterValue } |
![]() | |
static std::string | computeAbsolutePath (std::string FilePath, std::string FileName) |
![]() | |
static bool | getValueTypeFromString (const std::string ValueTypeString, UnstructuredValue::UnstructuredType &ValueType) |
static std::string | getStringFromValueType (const UnstructuredValue::UnstructuredType ValueType) |
Container class for geospatial raster data, represented by a GDAL dataset.
openfluid::core::GeoRasterValue::GeoRasterValue | ( | std::string | FilePath, |
std::string | FileName | ||
) |
Creates a new value.
The FileName
may be the name of a .jpeg, .tiff, .img or .asc file...
It doesn't open the associated GDAL dataset.
FilePath | The path of the file(s). |
FileName | The name or the relative path of the file to open. |
openfluid::core::GeoRasterValue::~GeoRasterValue | ( | ) |
Closes the opened GDAL dataset.
GDALDataset* openfluid::core::GeoRasterValue::get | ( | ) |
Gets the associated opened GDAL dataset in read-only access.
If the dataset is not already opened, tries to open it first.
openfluid::base::OFException | if GDAL doesn't succeed to open the dataset. |
std::string openfluid::core::GeoRasterValue::getAbsolutePath | ( | ) |
Returns the absolute Path of this GeoRasterValue.
|
virtual |
Returns the type of this GeoRasterValue.
Implements openfluid::core::UnstructuredValue.
|
protectedvirtual |
Open the GDALDataset of this GeoRasterValue.
openfluid::base::OFException | if GDAL doesn't succeed to open the datasource. |
Implements openfluid::core::GeoValue.
|
protected |
The GDALDataset associated to this GeoRasterValue.