Mercurial > dive4elements > gnv-client
annotate gnv-artifacts/contrib/palette2qgis.xsl @ 1129:ccfa07b88476
merged geo-backend
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:01 +0200 |
parents | f953c9a559d8 |
children |
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"?> |
1115
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
520
diff
changeset
|
2 |
520
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
3 <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
|
4 <!-- |
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
|
5 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
|
6 ================ |
1115
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
520
diff
changeset
|
7 |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
520
diff
changeset
|
8 Copyright (c) 2010 by Intevation GmbH |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
520
diff
changeset
|
9 |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
520
diff
changeset
|
10 This program is free software under the LGPL (>=v2.1) |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
520
diff
changeset
|
11 Read the file LGPL.txt coming with the software for details |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
520
diff
changeset
|
12 or visit http://www.gnu.org/licenses/ if it does not exist. |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
520
diff
changeset
|
13 |
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
|
14 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
|
15 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
|
16 |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
17 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
|
18 |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
19 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
|
20 |
4f2a18abc780
Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff
changeset
|
21 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
|
22 --> |
520
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
23 <xsl:output |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
24 method="xml" |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
25 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
|
26 |
520
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
27 <xsl:template name="hex2number"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
28 <xsl:param name="hex"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
29 <xsl:choose> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
30 <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
|
31 <xsl:value-of select="0"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
32 </xsl:when> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
33 <xsl:otherwise> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
34 <xsl:variable |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
35 name="x" |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
36 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
|
37 <xsl:variable name="last"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
38 <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
|
39 <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
|
40 <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
|
41 <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
|
42 <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
|
43 <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
|
44 <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
|
45 <xsl:otherwise> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
46 <xsl:value-of select="$x"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
47 </xsl:otherwise> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
48 </xsl:choose> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
49 </xsl:variable> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
50 <xsl:variable name="rest"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
51 <xsl:call-template name="hex2number"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
52 <xsl:with-param |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
53 name="hex" |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
54 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
|
55 </xsl:call-template> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
56 </xsl:variable> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
57 <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
|
58 </xsl:otherwise> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
59 </xsl:choose> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
60 </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
|
61 |
520
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
62 <xsl:template match="/ranges/range"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
63 <symbol> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
64 <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
|
65 <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
|
66 <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
|
67 <pointsymbol>hard:circle</pointsymbol> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
68 <pointsize>2</pointsize> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
69 <pointsizeunits>pixels</pointsizeunits> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
70 <rotationclassificationfieldname/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
71 <scaleclassificationfieldname/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
72 <symbolfieldname/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
73 <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
|
74 <outlinestyle>NoPen</outlinestyle> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
75 <outlinewidth>0.26</outlinewidth> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
76 <xsl:variable name="rgb"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
77 <xsl:call-template name="hex2number"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
78 <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
|
79 </xsl:call-template> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
80 </xsl:variable> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
81 <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
|
82 <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
|
83 <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
|
84 <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
|
85 <fillpattern>SolidPattern</fillpattern> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
86 <texturepath null="1"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
87 </symbol> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
88 </xsl:template> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
89 <xsl:template match="/"> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
90 <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
|
91 <transparencyLevelInt>255</transparencyLevelInt> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
92 <classificationattribute>CLASS</classificationattribute> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
93 <symbol> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
94 <lowervalue null="1"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
95 <uppervalue null="1"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
96 <label>Andere</label> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
97 <pointsymbol>hard:circle</pointsymbol> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
98 <pointsize>2</pointsize> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
99 <pointsizeunits>pixels</pointsizeunits> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
100 <rotationclassificationfieldname/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
101 <scaleclassificationfieldname/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
102 <symbolfieldname/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
103 <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
|
104 <outlinestyle>DashDotDotLine</outlinestyle> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
105 <outlinewidth>0.26</outlinewidth> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
106 <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
|
107 <fillpattern>SolidPattern</fillpattern> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
108 <texturepath null="1"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
109 </symbol> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
110 <uniquevalue> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
111 <classificationfield>CLASS</classificationfield> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
112 <xsl:apply-templates/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
113 </uniquevalue> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
114 <edittypes> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
115 <edittype type="0" name="CLASS"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
116 <edittype type="0" name="DATE"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
117 <edittype type="0" name="LAYER"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
118 <edittype type="0" name="PARAMETER"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
119 </edittypes> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
120 <editform/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
121 <editforminit/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
122 <displayfield>PARAMETER</displayfield> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
123 <label>0</label> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
124 <attributeactions/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
125 <labelattributes> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
126 <label fieldname="" text="Beschriftung"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
127 <family fieldname="" name="Sans Serif"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
128 <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
|
129 <bold fieldname="" on="0"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
130 <italic fieldname="" on="0"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
131 <underline fieldname="" on="0"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
132 <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
|
133 <x fieldname=""/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
134 <y fieldname=""/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
135 <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
|
136 <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
|
137 <alignment fieldname="" value="center"/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
138 <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
|
139 <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
|
140 <bufferenabled fieldname="" on=""/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
141 <multilineenabled fieldname="" on=""/> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
142 </labelattributes> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
143 </qgis> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
144 </xsl:template> |
a8f6ca59b26e
Cosmetic cleanups on palette -> QQIS style transformation.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
516
diff
changeset
|
145 <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
|
146 </xsl:stylesheet> |