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 A way is an ordered list of nodes which normally also has at least one tag or is included within a Re...
Encapsulate iteration over table of ways.
QVector< QgsPoint > QgsPolyline
polyline is represented as a vector of points
QPair< QString, int > QgsOSMTagCountPair
A node is one of the core elements in the OpenStreetMap data model.
Class that encapsulates access to OpenStreetMap data stored in a database previously imported from XM...
void setFileName(const QString &dbFileName)
Encapsulate iteration over table of nodes.
QString errorString() const