Using QGIS 1.7.
I have a plain text file, which lists 115 rgb values against a map code for a geological map. Viz.:
$ head gsv1Msymbology.txt
MAPCODE RED GREEN BLUE
Oc 143 255 255
WAT 255 255 255
Qa 244 250 202
Qdl 195 239 218
Na 248 255 238
Qd2 227 255 190
Qxw 248 255 238
Qns 255 148 83
Qn 255 202 190
....
Is there some tool to generate a QGIS style file from this? How much of the full style declaration is required? I have very little scripting-fu.
Here is a section from a style file with random colour-fill choices:
<symbol>
<lowervalue>Daw</lowervalue>
<uppervalue>Daw</uppervalue>
<label></label>
<pointsymbol>hard:circle</pointsymbol>
<pointsize>2</pointsize>
<pointsizeunits>pixels</pointsizeunits>
<rotationclassificationfieldname></rotationclassificationfieldname>
<scaleclassificationfieldname></scaleclassificationfieldname>
<symbolfieldname></symbolfieldname>
<outlinecolor red="0" blue="0" green="0"/>
<outlinestyle>SolidLine</outlinestyle>
<outlinewidth>0.26</outlinewidth>
<fillcolor red="215" blue="97" green="224"/>
<fillpattern>SolidPattern</fillpattern>
<texturepath></texturepath>
</symbol>
If I can get away with just
<symbol>
<lowervalue>Daw</lowervalue>
<uppervalue>Daw</uppervalue>
<fillcolor red="215" blue="97" green="224"/>
</symbol>
and somehow merge the remainder, then I can probably do it in a spreadsheet.
Ben.