All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
openfluid::core::GeoRasterValue Class Reference

Container class for geospatial raster data, represented by a GDAL dataset. More...

#include <core/GeoRasterValue.hpp>

Inheritance diagram for openfluid::core::GeoRasterValue:
openfluid::core::GeoValue openfluid::core::UnstructuredValue

List of all members.

Public Member Functions

 GeoRasterValue (std::string FilePath, std::string FileName)
 Creates a new value.
 ~GeoRasterValue ()
 Closes the opened GDAL dataset.
openfluid::core::UnstructuredValue::UnstructuredType getType () const
 Returns the type of this GeoRasterValue.
GDALDataset * get ()
 Gets the associated opened GDAL dataset in read-only access.
std::string getAbsolutePath ()
 Returns the absolute Path of this GeoRasterValue.

Protected Member Functions

void tryToOpenSource ()
 Open the GDALDataset of this GeoRasterValue.

Protected Attributes

GDALDataset * mp_Data
 The GDALDataset associated to this GeoRasterValue.

Detailed Description

Container class for geospatial raster data, represented by a GDAL dataset.


Constructor & Destructor Documentation

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.

Parameters:
FilePathThe path of the file(s).
FileNameThe name or the relative path of the file to open.

Closes the opened GDAL dataset.


Member Function Documentation

Gets the associated opened GDAL dataset in read-only access.

If the dataset is not already opened, tries to open it first.

Returns:
The opened GDAL dataset.
Exceptions:
openfluid::base::OFExceptionif GDAL doesn't succeed to open the dataset.

Returns the absolute Path of this GeoRasterValue.

void openfluid::core::GeoRasterValue::tryToOpenSource ( ) [protected, virtual]

Open the GDALDataset of this GeoRasterValue.

Exceptions:
openfluid::base::OFExceptionif GDAL doesn't succeed to open the datasource.

Implements openfluid::core::GeoValue.


Member Data Documentation

GDALDataset* openfluid::core::GeoRasterValue::mp_Data [protected]

The GDALDataset associated to this GeoRasterValue.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines