Mercurial > dive4elements > gnv-client
annotate gnv-artifacts/contrib/palette2qgis.xsl @ 522:c896282c2601
Issue 156 solved. Added width, height and points as parameter to svg and pdf output mode. Width and height have an effact on the width and height of the export, points is a boolean property which enables/disables the drawing of data points.
gnv-artifacts/trunk@616 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 25 Jan 2010 09:18:31 +0000 |
parents | a8f6ca59b26e |
children | f953c9a559d8 |
rev | line source |
---|---|
516
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
1 <?xml version="1.0" encoding="UTF-8"?> |
520
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
3 <!-- |
516
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
4 palette2qgis.xsl |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
5 ================ |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
6 Transforms palette XML files into QGIS style files. Useful |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
7 to display "Horizontalschnitte" with the right colors. |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
8 |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
9 Tested with Quantum GIS 1.4.0-Enceladus. |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
10 |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
11 usage: xsltproc palette2qgis.xsl palette.xml > style.qml |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
12 |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
13 Author: Sascha L. Teichmann (sascha.teichmann@intevation.de) |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
14 --> |
520
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
15 <xsl:output |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
16 method="xml" |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
17 doctype-system="PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'"/> |
516
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
18 |
520
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
19 <xsl:template name="hex2number"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
20 <xsl:param name="hex"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
21 <xsl:choose> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
22 <xsl:when test="string-length($hex) < 1"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
23 <xsl:value-of select="0"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
24 </xsl:when> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
25 <xsl:otherwise> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
26 <xsl:variable |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
27 name="x" |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
28 select="translate(substring($hex, string-length($hex), 1), 'ABCDEF', 'abcdef')"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
29 <xsl:variable name="last"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
30 <xsl:choose> |
516
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
31 <xsl:when test="$x = 'a'">10</xsl:when> |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
32 <xsl:when test="$x = 'b'">11</xsl:when> |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
33 <xsl:when test="$x = 'c'">12</xsl:when> |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
34 <xsl:when test="$x = 'd'">13</xsl:when> |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
35 <xsl:when test="$x = 'e'">14</xsl:when> |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
36 <xsl:when test="$x = 'f'">15</xsl:when> |
520
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
37 <xsl:otherwise> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
38 <xsl:value-of select="$x"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
39 </xsl:otherwise> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
40 </xsl:choose> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
41 </xsl:variable> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
42 <xsl:variable name="rest"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
43 <xsl:call-template name="hex2number"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
44 <xsl:with-param |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
45 name="hex" |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
46 select="substring($hex, 1, string-length($hex)-1)"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
47 </xsl:call-template> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
48 </xsl:variable> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
49 <xsl:value-of select="number($last) + 16*$rest"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
50 </xsl:otherwise> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
51 </xsl:choose> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
52 </xsl:template> |
516
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
53 |
520
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
54 <xsl:template match="/ranges/range"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
55 <symbol> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
56 <lowervalue><xsl:value-of select="@index"/></lowervalue> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
57 <uppervalue><xsl:value-of select="@index"/></uppervalue> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
58 <label><xsl:value-of select="@description"/></label> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
59 <pointsymbol>hard:circle</pointsymbol> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
60 <pointsize>2</pointsize> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
61 <pointsizeunits>pixels</pointsizeunits> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
62 <rotationclassificationfieldname/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
63 <scaleclassificationfieldname/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
64 <symbolfieldname/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
65 <outlinecolor red="0" blue="0" green="0"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
66 <outlinestyle>NoPen</outlinestyle> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
67 <outlinewidth>0.26</outlinewidth> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
68 <xsl:variable name="rgb"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
69 <xsl:call-template name="hex2number"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
70 <xsl:with-param name="hex" select="substring(@rgb, 2)"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
71 </xsl:call-template> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
72 </xsl:variable> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
73 <xsl:variable name="red" select="floor(($rgb div (256*256)) mod 256)"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
74 <xsl:variable name="green" select="floor(($rgb div 256) mod 256)"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
75 <xsl:variable name="blue" select="floor($rgb mod 256)"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
76 <fillcolor red="{$red}" blue="{$blue}" green="{$green}"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
77 <fillpattern>SolidPattern</fillpattern> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
78 <texturepath null="1"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
79 </symbol> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
80 </xsl:template> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
81 <xsl:template match="/"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
82 <qgis version="1.4.0-Enceladus" minimumScale="1" maximumScale="1e+08" minLabelScale="1" maxLabelScale="1e+08" hasScaleBasedVisibilityFlag="0" scaleBasedLabelVisibilityFlag="0"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
83 <transparencyLevelInt>255</transparencyLevelInt> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
84 <classificationattribute>CLASS</classificationattribute> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
85 <symbol> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
86 <lowervalue null="1"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
87 <uppervalue null="1"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
88 <label>Andere</label> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
89 <pointsymbol>hard:circle</pointsymbol> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
90 <pointsize>2</pointsize> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
91 <pointsizeunits>pixels</pointsizeunits> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
92 <rotationclassificationfieldname/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
93 <scaleclassificationfieldname/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
94 <symbolfieldname/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
95 <outlinecolor red="0" blue="0" green="0"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
96 <outlinestyle>DashDotDotLine</outlinestyle> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
97 <outlinewidth>0.26</outlinewidth> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
98 <fillcolor red="59" blue="81" green="179"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
99 <fillpattern>SolidPattern</fillpattern> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
100 <texturepath null="1"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
101 </symbol> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
102 <uniquevalue> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
103 <classificationfield>CLASS</classificationfield> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
104 <xsl:apply-templates/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
105 </uniquevalue> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
106 <edittypes> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
107 <edittype type="0" name="CLASS"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
108 <edittype type="0" name="DATE"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
109 <edittype type="0" name="LAYER"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
110 <edittype type="0" name="PARAMETER"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
111 </edittypes> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
112 <editform/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
113 <editforminit/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
114 <displayfield>PARAMETER</displayfield> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
115 <label>0</label> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
116 <attributeactions/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
117 <labelattributes> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
118 <label fieldname="" text="Beschriftung"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
119 <family fieldname="" name="Sans Serif"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
120 <size fieldname="" units="pt" value="12"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
121 <bold fieldname="" on="0"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
122 <italic fieldname="" on="0"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
123 <underline fieldname="" on="0"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
124 <color fieldname="" red="0" blue="0" green="0"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
125 <x fieldname=""/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
126 <y fieldname=""/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
127 <offset x="0" y="0" units="pt" yfieldname="" xfieldname=""/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
128 <angle fieldname="" value="0" auto="0"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
129 <alignment fieldname="" value="center"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
130 <buffercolor fieldname="" red="255" blue="255" green="255"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
131 <buffersize fieldname="" units="pt" value="1"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
132 <bufferenabled fieldname="" on=""/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
133 <multilineenabled fieldname="" on=""/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
134 </labelattributes> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
135 </qgis> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
136 </xsl:template> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
137 <xsl:template match="text()"/> |
516
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
138 </xsl:stylesheet> |