<div dir="ltr"><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">Hello,</span><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px"><br></div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">
I would like to clarify a bit about the presence of XML, SQlite and the Python script.</div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px"><br></div><div style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">
The XML was a the version 1 way of storing the symbols. It had a plain list of symbols and color maps. In order to include grouping and tagging functionality in the symbol management the symbols were moved to the SQLite DB. The "Python Script" was used to carryout the conversion and create the required tables for grouping & tagging information. <br>
<div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Fri, Apr 12, 2013 at 4:09 PM, Borys Jurgiel <span dir="ltr"><<a href="mailto:lists@borysjurgiel.pl" target="_blank">lists@borysjurgiel.pl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Dnia piątek, 12 kwietnia 2013 o 11:36:10 Jürgen E. Fischer napisał(a): </blockquote>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div>> Can we be sure that only the xml file gets edited or do we need a<div class="im">
<br>> xml2db_symbol.py to avoid loosing updates?<br>><br>><br>> Jürgen<br><br></div></div><div class="im">Currently xml2db_symbol.py needs to remove the existing db file, because it<br>only can INSERT and not UPDATE records. Of course we can't be sure, so we<br>
could at least implement UPDATE to avoid removing the records existing only in<br>db file, but I can't imagine how to avoid overwritting more recent records with<br>older xml data. I don't know if it's worth the effort while it's all in git.<br>
<div><br></div></div></blockquote></div><div><br></div><div>Once compiled and installed, the user directory only has the SQlite and not the XML. If you find one, it is the artifact of changing from older to newer implementation. You are safe to remove the XML file. </div>
<div><br></div><div>However, if you already have a large number of personally created symbols in the XML, you can,</div><div><br></div><div>1. use the script to recreate the SQlite manually and replace the SQlite in the user directory. Kindly note this is required ONLY ONCE. After which any changes to symbols you make through QGIS will refelect on the SQLITE ALONE and NOT on the XML.</div>
<div><br></div><div>2. Simply goto Import/Export options in the Symbol Manager, Click Import -> Select the XML file in your User directory and import all the symbols. This transfers the things in XML into the SQLite file and any edits thereafter reflects on the SQlite ONLY.</div>
<div><br></div><div>Kindly post if you need more clarification.</div><div><br></div></div></div><div class="gmail_extra">-- <br>Regards<br>Arunmozhi<br>
</div></div>