# HG changeset patch # User Sascha L. Teichmann # Date 1264255406 0 # Node ID 4f2a18abc78091cb4d0dbbc998b27d98cf994846 # Parent 234d9892e4978d7f90df668b0c27c5d65a87abb8 Added little XSL tranformation to turn palette XML files into QGIS style definitions. Useful to display "Horizontalschnitte" in correct colors. gnv-artifacts/trunk@610 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 234d9892e497 -r 4f2a18abc780 gnv-artifacts/ChangeLog --- a/gnv-artifacts/ChangeLog Fri Jan 22 18:51:47 2010 +0000 +++ b/gnv-artifacts/ChangeLog Sat Jan 23 14:03:26 2010 +0000 @@ -1,3 +1,19 @@ +2010-01-22 Sascha L. Teichmann + + * contrib/palette2qgis.xsl: New. XST tranformation to turn a + palette XML file into a style definition suitable to be used + in QGIS. Tested with QGIS 1.4.0-Enceladus. Usage: + + $ xsltproc contrib/palette2qgis.xsl \ + doc/conf/palette/water-temperature.xml \ + > water-temperature.qml + + Do similar to process salinity.xml et al. + + When you've loaded the "Horizontalschnitt" polygon layer + in QGIS, class it via the "CLASS" attribute, load the + according style and apply it. Voila! + 2010-01-22 Sascha L. Teichmann * src/main/java/de/intevation/gnv/math/Interpolation3D.java: diff -r 234d9892e497 -r 4f2a18abc780 gnv-artifacts/contrib/palette2qgis.xsl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gnv-artifacts/contrib/palette2qgis.xsl Sat Jan 23 14:03:26 2010 +0000 @@ -0,0 +1,144 @@ + + + + + + + + + + + + 10 + 11 + 12 + 13 + 14 + 15 + + + + + + + + + + + + + + + + + + + + + + hard:circle + 2 + pixels + + + + + NoPen + 0.26 + + + + + + + + + + SolidPattern + + + + + + + 255 + CLASS + + + + + hard:circle + 2 + pixels + + + + + DashDotDotLine + 0.26 + + SolidPattern + + + + CLASS + + + + + + + + + + + PARAMETER + + + + + + + + + +