A babel format capable of converting input files to GPX files.
More...
#include <qgsbabelformat.h>
|
| QgsBabelSimpleImportFormat (const QString &format, const QString &description, Qgis::BabelFormatCapabilities capabilities, const QStringList extensions=QStringList()) |
| Constructor for QgsBabelSimpleImportFormat. More...
|
|
QString | description () const |
| Returns the friendly description for the format. More...
|
|
QStringList | extensions () const |
| Returns the list of known extensions for the format, e.g. More...
|
|
QStringList | importCommand (const QString &babel, Qgis::GpsFeatureType featureType, const QString &input, const QString &output, Qgis::BabelCommandFlags flags=Qgis::BabelCommandFlags()) const override |
| Generates a command for importing data into a GPS format using babel. More...
|
|
virtual | ~QgsAbstractBabelFormat ()=default |
|
Qgis::BabelFormatCapabilities | capabilities () const |
| Returns the format's capabilities. More...
|
|
virtual QStringList | exportCommand (const QString &babel, Qgis::GpsFeatureType featureType, const QString &input, const QString &output, Qgis::BabelCommandFlags flags=Qgis::BabelCommandFlags()) const |
| Generates a command for exporting GPS data into a different format using babel. More...
|
|
virtual QStringList | importCommand (const QString &babel, Qgis::GpsFeatureType featureType, const QString &input, const QString &output, Qgis::BabelCommandFlags flags=Qgis::BabelCommandFlags()) const |
| Generates a command for importing data into a GPS format using babel. More...
|
|
QString | name () const |
| Returns the format's name. More...
|
|
A babel format capable of converting input files to GPX files.
- Since
- QGIS 3.22
Definition at line 109 of file qgsbabelformat.h.
◆ QgsBabelSimpleImportFormat()
QgsBabelSimpleImportFormat::QgsBabelSimpleImportFormat |
( |
const QString & |
format, |
|
|
const QString & |
description, |
|
|
Qgis::BabelFormatCapabilities |
capabilities, |
|
|
const QStringList |
extensions = QStringList() |
|
) |
| |
Constructor for QgsBabelSimpleImportFormat.
The format argument specifies the babel identifier for the input format.
The description argument specified a descriptive name for the format.
The capabilities argument must reflect whether the format is capable of handling waypoints, routes and/or tracks.
The optional extensions argument can be used to populate a list of known file extensions for the format (e.g. "csv", "txt").
Definition at line 66 of file qgsbabelformat.cpp.
◆ description()
QString QgsBabelSimpleImportFormat::description |
( |
| ) |
const |
|
inline |
Returns the friendly description for the format.
Definition at line 132 of file qgsbabelformat.h.
◆ extensions()
QStringList QgsBabelSimpleImportFormat::extensions |
( |
| ) |
const |
|
inline |
Returns the list of known extensions for the format, e.g.
"csv", "txt".
Definition at line 137 of file qgsbabelformat.h.
◆ importCommand()
QStringList QgsBabelSimpleImportFormat::importCommand |
( |
const QString & |
babel, |
|
|
Qgis::GpsFeatureType |
featureType, |
|
|
const QString & |
input, |
|
|
const QString & |
output, |
|
|
Qgis::BabelCommandFlags |
flags = Qgis::BabelCommandFlags() |
|
) |
| const |
|
overridevirtual |
Generates a command for importing data into a GPS format using babel.
- Parameters
-
babel | babel path to the babel executable |
featureType | type of GPS feature to import |
input | input data path |
output | output path |
flags | optional flags to control how babel command is generated |
Returns an empty list if the format does not support imports (see capabilities()).
Reimplemented from QgsAbstractBabelFormat.
Definition at line 77 of file qgsbabelformat.cpp.
The documentation for this class was generated from the following files: