24 class QXmlStreamReader;
39 explicit QgsOSMXmlImport(
const QString& xmlFileName = QString(),
const QString& dbFileName = QString() );
53 bool hasError()
const {
return !mError.isEmpty(); }
57 void progress(
int percent );
61 bool createDatabase();
63 void deleteStatement( sqlite3_stmt*& stmt );
67 void readRoot( QXmlStreamReader& xml );
68 void readNode( QXmlStreamReader& xml );
69 void readWay( QXmlStreamReader& xml );
70 void readTag(
bool way,
QgsOSMId id, QXmlStreamReader& xml );
81 sqlite3_stmt* mStmtInsertNode;
82 sqlite3_stmt* mStmtInsertNodeTag;
83 sqlite3_stmt* mStmtInsertWay;
84 sqlite3_stmt* mStmtInsertWayNode;
85 sqlite3_stmt* mStmtInsertWayTag;