20 #include <QStringList>
52 void setFileName(
const QString& dbFileName ) { mDbFileName = dbFileName; }
53 QString
filename()
const {
return mDbFileName; }
63 int countNodes()
const;
64 int countWays()
const;
75 QList<QgsOSMTagCountPair> usedTags(
bool ways )
const;
82 bool exportSpatiaLite( ExportType type,
const QString& tableName,
const QStringList& tagKeys = QStringList() );
85 bool prepareStatements();
86 int runCountStatement(
const char* sql )
const;
87 void deleteStatement( sqlite3_stmt*& stmt );
89 void exportSpatiaLiteNodes(
const QString& tableName,
const QStringList& tagKeys );
90 void exportSpatiaLiteWays(
bool closed,
const QString& tableName,
const QStringList& tagKeys );
91 bool createSpatialTable(
const QString& tableName,
const QString& geometryType,
const QStringList& tagKeys );
92 bool createSpatialIndex(
const QString& tableName );
94 QString quotedIdentifier( QString
id );
95 QString quotedValue( QString value );
106 sqlite3_stmt* mStmtNode;
107 sqlite3_stmt* mStmtNodeTags;
108 sqlite3_stmt* mStmtWay;
109 sqlite3_stmt* mStmtWayNode;
110 sqlite3_stmt* mStmtWayNodePoints;
111 sqlite3_stmt* mStmtWayTags;
153 #endif // OSMDATABASE_H