Ignore:
Timestamp:
02/22/13 13:30:00 (11 years ago)
Author:
lucsch
Message:
  • Preliminary code for processing user_content.txt. Processing thematic_layers is now working
  • Corrected base_structure and user_structure.sql
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tmdmcreator/src/tmdmcreator.cpp

    r17 r18  
    9494    errorsmsg.Clear(); 
    9595    // Copy structure 
    96     TmDmCopier myCopier(m_FileNameOutSQL); 
    97     if (myCopier.CopyFrom(m_FileNameBaseSQL) == false) { 
    98         errorsmsg.Add(wxString::Format(_("Copying: %s failed!"), m_FileNameBaseSQL.GetFullPath())); 
    99         return false; 
     96    { // needed to destroy the copier before processing layers 
     97        TmDmCopier myCopier(m_FileNameOutSQL); 
     98        if (myCopier.CopyFrom(m_FileNameBaseSQL) == false) { 
     99            errorsmsg.Add(wxString::Format(_("Copying: %s failed!"), m_FileNameBaseSQL.GetFullPath())); 
     100            return false; 
     101        } 
     102         
     103        if (myCopier.CopyFrom(m_FileNameUserSQL) == false) { 
     104            errorsmsg.Add(wxString::Format(_("Copying: %s failed!"), m_FileNameUserSQL.GetFullPath())); 
     105            return false; 
     106        } 
    100107    } 
    101      
    102     if (myCopier.CopyFrom(m_FileNameUserSQL) == false) { 
    103         errorsmsg.Add(wxString::Format(_("Copying: %s failed!"), m_FileNameUserSQL.GetFullPath())); 
    104         return false; 
    105     } 
    106      
     108 
    107109    // Process layers 
    108110    TmDmProcessorSimple myLayerProc(m_FileNameUserContent, m_FileNameOutSQL); 
     
    112114        return false; 
    113115    } 
    114     if (myLayerProc.ProcessBlock(myThematicLayersStart)==false) { 
     116    if (myLayerProc.ProcessBlock(myThematicLayersStart, _T("thematic_layers"))==false) { 
    115117        errorsmsg.Add(wxString::Format(_("Processing 'thematic_layers' failed in %s"), m_FileNameUserContent.GetFullPath())); 
    116118        return false; 
Note: See TracChangeset for help on using the changeset viewer.