QgsOSMTags QgsOSMDatabase::tags( bool way, QgsOSMId id ) const { QgsOSMTags t; sqlite3_stmt* stmtTags = way ? mStmtWayTags : mStmtNodeTags; sqlite3_bind_int64( stmtTags, 1, id ); while ( sqlite3_step( stmtTags ) == SQLITE_ROW ) { QString k = QString::fromUtf8(( const char* ) sqlite3_column_text( stmtTags, 0 ) ); QString v = QString::fromUtf8(( const char* ) sqlite3_column_text( stmtTags, 1 ) ); t.insert( k, v ); } sqlite3_reset( stmtTags ); return t; }