![]() |
Mapper
0.9.0
API documentation
|
A utility class which takes care of GDAL settings and options. More...
#include <gdal_manager.h>
Classes | |
class | GdalManagerPrivate |
Public Types | |
enum | FileFormat { GPX } |
enum | ExportOption { OneLayerPerSymbol } |
Public Member Functions | |
GdalManager () | |
Constructs a new manager object. More... | |
void | configure () |
Sets the GDAL configuration from Mapper's defaults and settings. More... | |
bool | isAreaHatchingEnabled () const |
Returns the area hatching display setting. More... | |
void | setAreaHatchingEnabled (bool enabled) |
Sets the area hatching template display setting. More... | |
bool | isBaselineViewEnabled () const |
Returns the baseline view template display setting. More... | |
void | setBaselineViewEnabled (bool enabled) |
Sets the baseline view template display setting. More... | |
void | setFormatEnabled (FileFormat format, bool enabled) |
Enables or disables handling of a particular file format by GDAL/OGR. More... | |
bool | isFormatEnabled (FileFormat format) const |
Returns if GDAL/OGR will handle a particular file format. More... | |
void | setExportOptionEnabled (ExportOption option, bool enabled) |
Enables or disables an OGR export option. More... | |
bool | isExportOptionEnabled (ExportOption option) const |
Returns if an OGR export option is enabled. More... | |
const std::vector< QByteArray > & | supportedRasterExtensions () const |
Returns the file name extensions for supported raster formats. More... | |
const std::vector< QByteArray > & | supportedVectorImportExtensions () const |
Returns the file name extensions for supported vector formats. More... | |
const std::vector< QByteArray > & | supportedVectorExportExtensions () const |
Returns the file name extensions for supported vector export formats. More... | |
QStringList | parameterKeys () const |
Returns the list of GDAL configuration parameters. More... | |
QString | parameterValue (const QString &key) const |
Returns a GDAL configuration parameter value. More... | |
void | setParameterValue (const QString &key, const QString &value) |
Sets a GDAL configuration parameter value. More... | |
void | unsetParameter (const QString &key) |
Unsets a GDAL configuration parameter value. More... | |
A utility class which takes care of GDAL settings and options.
This class provides lists of extensions supported via GDAL in Mapper. It sets and updates GDAL configuration parameters from Mapper's settings.
There is no need to keep objects of this class for an extended life time: instantiation is cheap; the actual state is shared and retained.
OpenOrienteering::GdalManager::GdalManager | ( | ) |
Constructs a new manager object.
void OpenOrienteering::GdalManager::configure | ( | ) |
Sets the GDAL configuration from Mapper's defaults and settings.
bool OpenOrienteering::GdalManager::isAreaHatchingEnabled | ( | ) | const |
Returns the area hatching display setting.
bool OpenOrienteering::GdalManager::isBaselineViewEnabled | ( | ) | const |
Returns the baseline view template display setting.
bool OpenOrienteering::GdalManager::isExportOptionEnabled | ( | GdalManager::ExportOption | option | ) | const |
Returns if an OGR export option is enabled.
bool OpenOrienteering::GdalManager::isFormatEnabled | ( | GdalManager::FileFormat | format | ) | const |
Returns if GDAL/OGR will handle a particular file format.
QStringList OpenOrienteering::GdalManager::parameterKeys | ( | ) | const |
Returns the list of GDAL configuration parameters.
Returns a GDAL configuration parameter value.
void OpenOrienteering::GdalManager::setAreaHatchingEnabled | ( | bool | enabled | ) |
Sets the area hatching template display setting.
void OpenOrienteering::GdalManager::setBaselineViewEnabled | ( | bool | enabled | ) |
Sets the baseline view template display setting.
void OpenOrienteering::GdalManager::setExportOptionEnabled | ( | GdalManager::ExportOption | option, |
bool | enabled | ||
) |
Enables or disables an OGR export option.
void OpenOrienteering::GdalManager::setFormatEnabled | ( | GdalManager::FileFormat | format, |
bool | enabled | ||
) |
Enables or disables handling of a particular file format by GDAL/OGR.
void OpenOrienteering::GdalManager::setParameterValue | ( | const QString & | key, |
const QString & | value | ||
) |
Sets a GDAL configuration parameter value.
const std::vector< QByteArray > & OpenOrienteering::GdalManager::supportedRasterExtensions | ( | ) | const |
Returns the file name extensions for supported raster formats.
const std::vector< QByteArray > & OpenOrienteering::GdalManager::supportedVectorExportExtensions | ( | ) | const |
Returns the file name extensions for supported vector export formats.
const std::vector< QByteArray > & OpenOrienteering::GdalManager::supportedVectorImportExtensions | ( | ) | const |
Returns the file name extensions for supported vector formats.
void OpenOrienteering::GdalManager::unsetParameter | ( | const QString & | key | ) |
Unsets a GDAL configuration parameter value.