The QgsOSMXmlImport class imports OpenStreetMap XML format to our topological representation in a SQLite database (see QgsOSMDatabase for details).
More...
#include <qgsosmimport.h>
Detailed Description
The QgsOSMXmlImport class imports OpenStreetMap XML format to our topological representation in a SQLite database (see QgsOSMDatabase for details).
How to use the classs:
- set input XML file name and output DB file name (in constructor or with respective functions)
- run import()
- check errorString() if the import failed
Definition at line 35 of file qgsosmimport.h.
Constructor & Destructor Documentation
QgsOSMXmlImport::QgsOSMXmlImport |
( |
const QString & |
xmlFileName = QString() , |
|
|
const QString & |
dbFileName = QString() |
|
) |
| |
|
explicit |
Member Function Documentation
bool QgsOSMXmlImport::closeDatabase |
( |
| ) |
|
|
protected |
bool QgsOSMXmlImport::createDatabase |
( |
| ) |
|
|
protected |
bool QgsOSMXmlImport::createIndexes |
( |
| ) |
|
|
protected |
void QgsOSMXmlImport::deleteStatement |
( |
sqlite3_stmt *& |
stmt | ) |
|
|
protected |
QString QgsOSMXmlImport::errorString |
( |
| ) |
const |
|
inline |
bool QgsOSMXmlImport::hasError |
( |
| ) |
const |
|
inline |
bool QgsOSMXmlImport::import |
( |
| ) |
|
Run import.
This will parse the XML file and store the data in a SQLite database.
- Returns
- true on success, false when import failed (see errorString() for the error)
Definition at line 37 of file qgsosmimport.cpp.
QString QgsOSMXmlImport::inputXmlFileName |
( |
| ) |
const |
|
inline |
QString QgsOSMXmlImport::outputDbFileName |
( |
| ) |
const |
|
inline |
void QgsOSMXmlImport::progress |
( |
int |
percent | ) |
|
|
signal |
void QgsOSMXmlImport::readNode |
( |
QXmlStreamReader & |
xml | ) |
|
|
protected |
void QgsOSMXmlImport::readRoot |
( |
QXmlStreamReader & |
xml | ) |
|
|
protected |
void QgsOSMXmlImport::readTag |
( |
bool |
way, |
|
|
QgsOSMId |
id, |
|
|
QXmlStreamReader & |
xml |
|
) |
| |
|
protected |
void QgsOSMXmlImport::readWay |
( |
QXmlStreamReader & |
xml | ) |
|
|
protected |
void QgsOSMXmlImport::setInputXmlFileName |
( |
const QString & |
xmlFileName | ) |
|
|
inline |
void QgsOSMXmlImport::setOutputDbFileName |
( |
const QString & |
dbFileName | ) |
|
|
inline |
The documentation for this class was generated from the following files: