Classes | Typedefs | Functions
openfluid::utils Namespace Reference

Classes

class  CMakeProxy
 
class  CommandLineCommand
 
class  CommandLineOption
 
class  CommandLineParser
 
class  ExternalProgram
 
class  FileDownloader
 
class  FluidHubAPIClient
 
struct  GDALDriverInfos_t
 
class  GitProxy
 
class  GrassGISProxy
 
class  KillableSingleton
 
class  MeyerSingleton
 
class  ProgramProxy
 
class  RESTClient
 

Typedefs

typedef std::map< std::string, GDALDriverInfos_tGDALDriversFilesExts_t
 

Functions

const GDALDriversFilesExts_t OPENFLUID_API getOGRFilesDriversForOpenFLUID ()
 
const GDALDriversFilesExts_t OPENFLUID_API getGDALFilesDriversForOpenFLUID ()
 
const std::set< std::string > OPENFLUID_API getOGRFilesExtensionsForOpenFLUID ()
 
QString OPENFLUID_API getOGRGDALFormatsForQFileDialogs (const GDALDriversFilesExts_t &Drivers, const QString &AllFormatsLabel)
 
bool OPENFLUID_API isOGRInteger (OGRFieldType FieldType)
 

Typedef Documentation

◆ GDALDriversFilesExts_t

Function Documentation

◆ getGDALFilesDriversForOpenFLUID()

const GDALDriversFilesExts_t OPENFLUID_API openfluid::utils::getGDALFilesDriversForOpenFLUID ( )

Returns a list of GDAL drivers available in OpenFLUID for GIS vector files

Returns
an openfluid::utils::GDALDriversFilesExts_t

◆ getOGRFilesDriversForOpenFLUID()

const GDALDriversFilesExts_t OPENFLUID_API openfluid::utils::getOGRFilesDriversForOpenFLUID ( )

Returns a list of OGR drivers available in OpenFLUID for GIS vector files

Returns
an openfluid::utils::GDALDriversFilesExts_t

◆ getOGRFilesExtensionsForOpenFLUID()

const std::set<std::string> OPENFLUID_API openfluid::utils::getOGRFilesExtensionsForOpenFLUID ( )

Returns a set of GIS vector files extensions available in OpenFLUID

Returns
a set of files extensions

◆ getOGRGDALFormatsForQFileDialogs()

QString OPENFLUID_API openfluid::utils::getOGRGDALFormatsForQFileDialogs ( const GDALDriversFilesExts_t Drivers,
const QString &  AllFormatsLabel 
)

Returns the available GDAL/OGR formats as a QFileDialog formats string. The string is built according to GDAL/OGR available drivers. The OGRRegisterAll() and/or GDALAllRegister() instruction must be called before using this function.

Parameters
[in]DriversThe available extensions list
[in]AllFormatsLabelthe label displayed for all formats
Returns
the format string (e.g. "All vector files (*.shp *.mif *.tab);;ESRI Shapefiles (*.shp);;Mapinfo (*.mif *.tab)")

◆ isOGRInteger()

bool OPENFLUID_API openfluid::utils::isOGRInteger ( OGRFieldType  FieldType)
inline

Returns true if the given field type is an OGR integer or an OGR 64bits integer, taking into account the compatibility with both GDAL 1.xx and 2.xx

Parameters
[in]FieldTypethe OGR field type
Returns
true if the field type is integer