Mapper  0.9.0
API documentation
Classes | Public Types | Public Member Functions | List of all members
OpenOrienteering::GdalManager Class Reference

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...
 

Detailed Description

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.

Member Enumeration Documentation

◆ ExportOption

Enumerator
OneLayerPerSymbol 

◆ FileFormat

Enumerator
GPX 

Constructor & Destructor Documentation

◆ GdalManager()

OpenOrienteering::GdalManager::GdalManager ( )

Constructs a new manager object.

Member Function Documentation

◆ configure()

void OpenOrienteering::GdalManager::configure ( )

Sets the GDAL configuration from Mapper's defaults and settings.

◆ isAreaHatchingEnabled()

bool OpenOrienteering::GdalManager::isAreaHatchingEnabled ( ) const

Returns the area hatching display setting.

◆ isBaselineViewEnabled()

bool OpenOrienteering::GdalManager::isBaselineViewEnabled ( ) const

Returns the baseline view template display setting.

◆ isExportOptionEnabled()

bool OpenOrienteering::GdalManager::isExportOptionEnabled ( GdalManager::ExportOption  option) const

Returns if an OGR export option is enabled.

◆ isFormatEnabled()

bool OpenOrienteering::GdalManager::isFormatEnabled ( GdalManager::FileFormat  format) const

Returns if GDAL/OGR will handle a particular file format.

◆ parameterKeys()

QStringList OpenOrienteering::GdalManager::parameterKeys ( ) const

Returns the list of GDAL configuration parameters.

◆ parameterValue()

QString OpenOrienteering::GdalManager::parameterValue ( const QString key) const

Returns a GDAL configuration parameter value.

◆ setAreaHatchingEnabled()

void OpenOrienteering::GdalManager::setAreaHatchingEnabled ( bool  enabled)

Sets the area hatching template display setting.

◆ setBaselineViewEnabled()

void OpenOrienteering::GdalManager::setBaselineViewEnabled ( bool  enabled)

Sets the baseline view template display setting.

◆ setExportOptionEnabled()

void OpenOrienteering::GdalManager::setExportOptionEnabled ( GdalManager::ExportOption  option,
bool  enabled 
)

Enables or disables an OGR export option.

◆ setFormatEnabled()

void OpenOrienteering::GdalManager::setFormatEnabled ( GdalManager::FileFormat  format,
bool  enabled 
)

Enables or disables handling of a particular file format by GDAL/OGR.

◆ setParameterValue()

void OpenOrienteering::GdalManager::setParameterValue ( const QString key,
const QString value 
)

Sets a GDAL configuration parameter value.

◆ supportedRasterExtensions()

const std::vector< QByteArray > & OpenOrienteering::GdalManager::supportedRasterExtensions ( ) const

Returns the file name extensions for supported raster formats.

◆ supportedVectorExportExtensions()

const std::vector< QByteArray > & OpenOrienteering::GdalManager::supportedVectorExportExtensions ( ) const

Returns the file name extensions for supported vector export formats.

◆ supportedVectorImportExtensions()

const std::vector< QByteArray > & OpenOrienteering::GdalManager::supportedVectorImportExtensions ( ) const

Returns the file name extensions for supported vector formats.

◆ unsetParameter()

void OpenOrienteering::GdalManager::unsetParameter ( const QString key)

Unsets a GDAL configuration parameter value.


The documentation for this class was generated from the following files: