#include <core/GeoRasterValue.hpp>
Public Member Functions | |
GeoRasterValue ()=delete | |
GeoRasterValue (const std::string &FilePath, const std::string &FileName) | |
virtual | ~GeoRasterValue () |
openfluid::core::UnstructuredValue::UnstructuredType | getType () const |
GDALDataset * | data () |
std::string | getAbsolutePath () |
Public Member Functions inherited from openfluid::core::GeoValue | |
GeoValue ()=delete | |
GeoValue (const std::string &FilePath, const std::string &FileName) | |
virtual | ~GeoValue ()=0 |
std::string | getFilePath () |
Public Member Functions inherited from openfluid::core::UnstructuredValue | |
UnstructuredValue ()=default | |
virtual | ~UnstructuredValue () |
Protected Member Functions | |
void | tryToOpenSource () |
Protected Attributes | |
GDALDataset * | mp_Data |
Protected Attributes inherited from openfluid::core::GeoValue | |
std::string | m_FilePath |
std::string | m_FileName |
std::string | m_AbsolutePath |
Additional Inherited Members | |
Public Types inherited from openfluid::core::UnstructuredValue | |
enum | UnstructuredType { GeoVectorValue, GeoRasterValue } |
Static Public Member Functions inherited from openfluid::core::GeoValue | |
static std::string | computeAbsolutePath (const std::string &FilePath, const std::string &FileName) |
Static Public Member Functions inherited from openfluid::core::UnstructuredValue | |
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.
|
delete |
openfluid::core::GeoRasterValue::GeoRasterValue | ( | const std::string & | FilePath, |
const 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.
[in] | FilePath | The path of the file(s). |
[in] | FileName | The name or the relative path of the file to open. |
|
virtual |
Closes the opened GDAL dataset.
GDALDataset* openfluid::core::GeoRasterValue::data | ( | ) |
Gets the associated opened GDAL dataset in read-only access. If the dataset is not already opened, tries to open it first.
openfluid::base::FrameworkException | 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::FrameworkException | if GDAL doesn't succeed to open the datasource. |
Implements openfluid::core::GeoValue.
|
protected |
The GDALDataset associated to this GeoRasterValue.