Index: trunk/test/data/renderer/way-repeat-image/data.osm
===================================================================
--- trunk/test/data/renderer/way-repeat-image/data.osm	(revision 12447)
+++ trunk/test/data/renderer/way-repeat-image/data.osm	(revision 12447)
@@ -0,0 +1,90 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<osm version='0.6' upload='never' generator='JOSM'>
+  <node id='-32985' action='modify' lat='0.87475376532' lon='0.19637924194' />
+  <node id='-32986' action='modify' lat='0.91045499834' lon='0.31997543335' />
+  <node id='-32990' action='modify' lat='0.95714069057' lon='0.50674301147' />
+  <node id='-32992' action='modify' lat='0.86926123744' lon='0.74706893921' />
+  <node id='-32994' action='modify' lat='0.70310872562' lon='0.83495956421' />
+  <node id='-33040' action='modify' lat='0.69349640248' lon='0.72509628296' />
+  <node id='-33042' action='modify' lat='0.81433552757' lon='0.60836654663' />
+  <node id='-33044' action='modify' lat='0.79236503124' lon='0.24993759155' />
+  <node id='-33165' action='modify' lat='0.61316410745' lon='0.07209640503' />
+  <node id='-33166' action='modify' lat='0.510172244' lon='0.11878829956' />
+  <node id='-33168' action='modify' lat='0.43464381094' lon='0.20805221558' />
+  <node id='-33170' action='modify' lat='0.33439583719' lon='0.37971359253' />
+  <node id='-33172' action='modify' lat='0.44837631334' lon='0.51292282104' />
+  <node id='-33174' action='modify' lat='0.31791661206' lon='0.81092697144' />
+  <node id='-33176' action='modify' lat='0.32890276515' lon='0.93864303589' />
+  <node id='-33371' action='modify' lat='0.25886584903' lon='0.14488082886' />
+  <node id='-33372' action='modify' lat='0.18058884284' lon='0.19981246948' />
+  <node id='-33374' action='modify' lat='0.11879096104' lon='0.18195968628' />
+  <node id='-33376' action='modify' lat='0.05836623136' lon='0.14488082886' />
+  <node id='-33378' action='modify' lat='0.15037656686' lon='0.45936447144' />
+  <node id='-33380' action='modify' lat='0.12840397577' lon='0.57334762573' />
+  <node id='-33382' action='modify' lat='0.11467109654' lon='0.62553268433' />
+  <node id='-33384' action='modify' lat='0.08445874016' lon='0.69282394409' />
+  <node id='-33386' action='modify' lat='0.07484571236' lon='0.7642350769' />
+  <node id='-33388' action='modify' lat='0.13801698689' lon='0.89469772339' />
+  <node id='-33551' action='modify' lat='0.0638593923' lon='0.30555587769' />
+  <node id='-33576' action='modify' lat='0.03090041964' lon='0.19706588745' />
+  <node id='-33761' action='modify' lat='0.4875138012' lon='0.91049057007' />
+  <node id='-33762' action='modify' lat='0.47652786187' lon='0.78277450562' />
+  <node id='-33763' action='modify' lat='0.6069846482' lon='0.48477035522' />
+  <node id='-33764' action='modify' lat='0.49300676417' lon='0.35156112671' />
+  <node id='-33765' action='modify' lat='0.59325249136' lon='0.17989974976' />
+  <node id='-33766' action='modify' lat='0.66877891111' lon='0.09063583374' />
+  <node id='-33767' action='modify' lat='0.77176758504' lon='0.04394393921' />
+  <node id='-33862' action='modify' lat='0.23071501371' lon='1.11236297607' />
+  <node id='-33864' action='modify' lat='0.00549591064' lon='1.79900848389' />
+  <node id='-33866' action='modify' lat='0.22247533206' lon='-0.79101837158' />
+  <way id='-32987' action='modify'>
+    <nd ref='-32985' />
+    <nd ref='-32986' />
+    <nd ref='-32990' />
+    <nd ref='-32992' />
+    <nd ref='-32994' />
+    <nd ref='-33040' />
+    <nd ref='-33042' />
+    <nd ref='-33044' />
+    <nd ref='-32985' />
+    <tag k='test' v='r1' />
+  </way>
+  <way id='-33167' action='modify'>
+    <nd ref='-33176' />
+    <nd ref='-33174' />
+    <nd ref='-33172' />
+    <nd ref='-33170' />
+    <nd ref='-33168' />
+    <nd ref='-33166' />
+    <nd ref='-33165' />
+    <tag k='test' v='r2' />
+  </way>
+  <way id='-33373' action='modify'>
+    <nd ref='-33866' />
+    <nd ref='-33371' />
+    <nd ref='-33372' />
+    <nd ref='-33374' />
+    <nd ref='-33376' />
+    <nd ref='-33576' />
+    <nd ref='-33551' />
+    <nd ref='-33378' />
+    <nd ref='-33380' />
+    <nd ref='-33382' />
+    <nd ref='-33384' />
+    <nd ref='-33386' />
+    <nd ref='-33388' />
+    <nd ref='-33862' />
+    <nd ref='-33864' />
+    <tag k='test' v='r3' />
+  </way>
+  <way id='-33760' action='modify'>
+    <nd ref='-33767' />
+    <nd ref='-33766' />
+    <nd ref='-33765' />
+    <nd ref='-33764' />
+    <nd ref='-33763' />
+    <nd ref='-33762' />
+    <nd ref='-33761' />
+    <tag k='test' v='r2' />
+  </way>
+</osm>
Index: trunk/test/data/renderer/way-repeat-image/style.mapcss
===================================================================
--- trunk/test/data/renderer/way-repeat-image/style.mapcss	(revision 12447)
+++ trunk/test/data/renderer/way-repeat-image/style.mapcss	(revision 12447)
@@ -0,0 +1,48 @@
+way[test=r1] {
+    color: darkblue;
+    width: 8;
+    repeat-image: "presets/barrier/city_wall.svg";
+    repeat-image-height: 40;
+    repeat-image-align: bottom;
+    repeat-image-offset: 4;
+    repeat-image-phase: -15;
+}
+
+way[test=r2] {
+    color: gray;
+    width: 18;
+    linecap: square;
+    repeat-image: "presets/barrier/guard_rail.svg";
+    repeat-image-height: 16;
+    repeat-image-align: bottom;
+    repeat-image-offset: 9;
+}
+
+way[test=r2]::dashes {
+    major-z-index: 10;
+    repeat-image: "presets/misc/no_icon.svg";
+    repeat-image-width: 16;
+    repeat-image-height: 4;
+    repeat-image-spacing: 12;
+}
+
+way[test=r3] {
+    color: maroon;
+    width: 8;
+    linecap: none;
+    repeat-image: "trees.svg";
+    repeat-image-height: 23;
+    repeat-image-align: bottom;
+    repeat-image-offset: 6;
+    repeat-image-spacing: 8;
+}
+
+way[test=r3]::bottom {
+    repeat-image: "trees-upside_down.svg";
+    repeat-image-height: 23;
+    repeat-image-align: top;
+    repeat-image-offset: -6;
+    repeat-image-spacing: 15;
+}
+
+
Index: trunk/test/data/renderer/way-repeat-image/trees-upside_down.svg
===================================================================
--- trunk/test/data/renderer/way-repeat-image/trees-upside_down.svg	(revision 12447)
+++ trunk/test/data/renderer/way-repeat-image/trees-upside_down.svg	(revision 12447)
@@ -0,0 +1,378 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   id="svg1"
+   sodipodi:docname="trees-upside_down.svg"
+   inkscape:export-filename="/datas/Projs/Cliparts Stocker/plain_tree.png"
+   viewBox="0 0 970.83973 972.18771"
+   sodipodi:version="0.32"
+   inkscape:export-xdpi="72.000000"
+   version="1.0"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"
+   inkscape:export-ydpi="72.000000"
+   inkscape:version="0.91 r13725"
+   width="100%"
+   height="100%">
+  <defs
+     id="defs3">
+    <linearGradient
+       id="linearGradient5877"
+       y2="183.60001"
+       gradientUnits="userSpaceOnUse"
+       y1="349.29999"
+       gradientTransform="scale(0.61308,1.6311)"
+       x2="207.92999"
+       x1="466.13"
+       inkscape:collect="always">
+      <stop
+         id="stop5303"
+         style="stop-color:#002f00"
+         offset="0" />
+      <stop
+         id="stop5304"
+         style="stop-color:#009300"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient5880"
+       y2="457.35999"
+       gradientUnits="userSpaceOnUse"
+       y1="32.316002"
+       gradientTransform="scale(0.61308,1.6311)"
+       x2="383.14001"
+       x1="383.14001"
+       inkscape:collect="always">
+      <stop
+         id="stop2187"
+         style="stop-color:#002f00"
+         offset="0" />
+      <stop
+         id="stop2188"
+         style="stop-color:#009300"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient5883"
+       y2="478.01001"
+       gradientUnits="userSpaceOnUse"
+       y1="476.92999"
+       gradientTransform="scale(0.61633,1.6225)"
+       x2="384.09"
+       x1="345.53"
+       inkscape:collect="always">
+      <stop
+         id="stop3434"
+         style="stop-color:#6c2f07"
+         offset="0" />
+      <stop
+         id="stop3435"
+         style="stop-color:#7e4932"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient5883-1-7"
+       y2="478.01001"
+       gradientUnits="userSpaceOnUse"
+       y1="476.92999"
+       gradientTransform="scale(0.61633,1.6225)"
+       x2="384.09"
+       x1="345.53"
+       inkscape:collect="always">
+      <stop
+         id="stop3434-7-1"
+         style="stop-color:#6c2f07"
+         offset="0" />
+      <stop
+         id="stop3435-4-1"
+         style="stop-color:#7e4932"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient5880-0-5"
+       y2="457.35999"
+       gradientUnits="userSpaceOnUse"
+       y1="32.316002"
+       gradientTransform="scale(0.61308,1.6311)"
+       x2="383.14001"
+       x1="383.14001"
+       inkscape:collect="always">
+      <stop
+         id="stop2187-9-2"
+         style="stop-color:#002f00"
+         offset="0" />
+      <stop
+         id="stop2188-4-7"
+         style="stop-color:#009300"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       y2="183.60001"
+       x2="207.92999"
+       y1="349.29999"
+       x1="466.13"
+       gradientTransform="scale(0.61308,1.6311)"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient3020-6"
+       xlink:href="#linearGradient5877-8-1"
+       inkscape:collect="always" />
+    <linearGradient
+       id="linearGradient5877-8-1"
+       y2="183.60001"
+       gradientUnits="userSpaceOnUse"
+       y1="349.29999"
+       gradientTransform="scale(0.61308,1.6311)"
+       x2="207.92999"
+       x1="466.13"
+       inkscape:collect="always">
+      <stop
+         id="stop5303-8-4"
+         style="stop-color:#002f00"
+         offset="0" />
+      <stop
+         id="stop5304-2-2"
+         style="stop-color:#009300"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient5883-3"
+       y2="478.01001"
+       gradientUnits="userSpaceOnUse"
+       y1="476.92999"
+       gradientTransform="scale(0.61633,1.6225)"
+       x2="384.09"
+       x1="345.53"
+       inkscape:collect="always">
+      <stop
+         id="stop3434-2"
+         style="stop-color:#6c2f07"
+         offset="0" />
+      <stop
+         id="stop3435-2"
+         style="stop-color:#7e4932"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient5880-1"
+       y2="457.35999"
+       gradientUnits="userSpaceOnUse"
+       y1="32.316002"
+       gradientTransform="scale(0.61308,1.6311)"
+       x2="383.14001"
+       x1="383.14001"
+       inkscape:collect="always">
+      <stop
+         id="stop2187-6"
+         style="stop-color:#002f00"
+         offset="0" />
+      <stop
+         id="stop2188-8"
+         style="stop-color:#009300"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient5877-5"
+       y2="183.60001"
+       gradientUnits="userSpaceOnUse"
+       y1="349.29999"
+       gradientTransform="scale(0.61308,1.6311)"
+       x2="207.92999"
+       x1="466.13"
+       inkscape:collect="always">
+      <stop
+         id="stop5303-7"
+         style="stop-color:#002f00"
+         offset="0" />
+      <stop
+         id="stop5304-6"
+         style="stop-color:#009300"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       y2="183.60001"
+       x2="207.92999"
+       y1="349.29999"
+       x1="466.13"
+       gradientTransform="scale(0.61308,1.6311)"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient3098"
+       xlink:href="#linearGradient5877-5"
+       inkscape:collect="always" />
+    <linearGradient
+       y2="183.60001"
+       x2="207.92999"
+       y1="349.29999"
+       x1="466.13"
+       gradientTransform="scale(0.61308,1.6311)"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient3020-0"
+       xlink:href="#linearGradient5877-8-2"
+       inkscape:collect="always" />
+    <linearGradient
+       id="linearGradient5877-8-2"
+       y2="183.60001"
+       gradientUnits="userSpaceOnUse"
+       y1="349.29999"
+       gradientTransform="scale(0.61308,1.6311)"
+       x2="207.92999"
+       x1="466.13"
+       inkscape:collect="always">
+      <stop
+         id="stop5303-8-48"
+         style="stop-color:#002f00"
+         offset="0" />
+      <stop
+         id="stop5304-2-6"
+         style="stop-color:#009300"
+         offset="1" />
+    </linearGradient>
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     bordercolor="#666666"
+     inkscape:pageshadow="2"
+     inkscape:window-y="25"
+     pagecolor="#ffffff"
+     inkscape:window-height="768"
+     inkscape:zoom="0.41427105"
+     inkscape:window-x="0"
+     showgrid="true"
+     borderopacity="1.0"
+     inkscape:current-layer="svg1"
+     inkscape:cx="408.87674"
+     inkscape:cy="406.16525"
+     inkscape:window-width="1366"
+     inkscape:pageopacity="0.0"
+     showguides="true"
+     inkscape:guide-bbox="true"
+     fit-margin-top="0"
+     fit-margin-left="0"
+     fit-margin-right="0"
+     fit-margin-bottom="0"
+     inkscape:window-maximized="0">
+    <inkscape:grid
+       type="xygrid"
+       id="grid2995"
+       empspacing="5"
+       visible="true"
+       enabled="true"
+       snapvisiblegridlinesonly="true"
+       originx="-148.666px"
+       originy="1.0382462e-005px" />
+  </sodipodi:namedview>
+  <g
+     id="g5885"
+     transform="matrix(1,0,0,-1,-82.251123,995.52)">
+    <path
+       id="path1545"
+       style="fill:url(#linearGradient5883);fill-rule:evenodd"
+       d="m 193.88,772.09 -9.78,223.43 84.88,0 -14.88,-223.43 -60.22,0 z"
+       inkscape:connector-curvature="0" />
+    <path
+       id="path909"
+       sodipodi:nodetypes="ccccccccccccc"
+       style="fill:url(#linearGradient5880);fill-opacity:0.75;fill-rule:evenodd"
+       d="m 223.51,23.337 c -8.1,0.571 -72.67,106.71 -87.16,176.56 -21.53,125.42 -31.83,285.19 -50.937,410.97 -5.671,29.1 -3.298,64.86 3.812,82.34 7.231,23.7 27.775,48.49 52.345,62.81 29.99,19.43 52.51,18.91 81.75,19.29 0.15,0.09 0.35,0.11 0.53,0 30.62,-0.04 53.49,-1.24 81.75,-19.29 24.57,-14.32 45.11,-39.11 52.34,-62.81 7.11,-17.48 9.49,-53.24 3.82,-82.34 -19.11,-125.78 -29.41,-285.55 -50.94,-410.97 -14.49,-69.85 -79.06,-175.99 -87.16,-176.56 -0.02,-0.005 -0.11,-0.006 -0.15,-0.003 z"
+       inkscape:connector-curvature="0" />
+    <path
+       id="path4679"
+       sodipodi:nodetypes="ccccccccccccc"
+       style="fill:url(#linearGradient5877);fill-rule:evenodd"
+       d="m 223.51,23.337 c -8.1,0.571 -72.67,106.71 -87.16,176.56 -21.53,125.42 -31.83,285.19 -50.937,410.97 -5.671,29.1 -3.298,64.86 3.812,82.34 7.231,23.7 27.775,48.49 52.345,62.81 29.99,19.43 52.51,18.91 81.75,19.29 0.15,0.09 0.35,0.11 0.53,0 30.62,-0.04 53.49,-1.24 81.75,-19.29 24.57,-14.32 45.11,-39.11 52.34,-62.81 7.11,-17.48 9.49,-53.24 3.82,-82.34 -19.12,-125.78 -29.41,-285.55 -50.94,-410.97 -14.49,-69.85 -79.06,-175.99 -87.16,-176.56 -0.02,-0.005 -0.11,-0.006 -0.15,-0.003 z"
+       inkscape:connector-curvature="0" />
+  </g>
+  <metadata
+     id="metadata18">
+    <rdf:RDF>
+      <cc:Work>
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <cc:license
+           rdf:resource="http://creativecommons.org/licenses/publicdomain/" />
+        <dc:publisher>
+          <cc:Agent
+             rdf:about="http://openclipart.org/">
+            <dc:title>Openclipart</dc:title>
+          </cc:Agent>
+        </dc:publisher>
+        <dc:title></dc:title>
+        <dc:date>2008-05-26T12:05:38</dc:date>
+        <dc:description />
+        <dc:source>https://openclipart.org/detail/17043/plain_tree-by-jean_victor_balin</dc:source>
+        <dc:creator>
+          <cc:Agent>
+            <dc:title>jean_victor_balin</dc:title>
+          </cc:Agent>
+        </dc:creator>
+        <dc:subject>
+          <rdf:Bag>
+            <rdf:li>forest</rdf:li>
+            <rdf:li>garden</rdf:li>
+            <rdf:li>plant</rdf:li>
+            <rdf:li>tree</rdf:li>
+          </rdf:Bag>
+        </dc:subject>
+      </cc:Work>
+      <cc:License
+         rdf:about="http://creativecommons.org/licenses/publicdomain/">
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Reproduction" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Distribution" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
+      </cc:License>
+    </rdf:RDF>
+  </metadata>
+  <g
+     id="g5885-1"
+     transform="matrix(1,0,0,-1,267.93589,995.52)">
+    <path
+       inkscape:connector-curvature="0"
+       id="path1545-8"
+       style="fill:url(#linearGradient5883-3);fill-rule:evenodd"
+       d="m 193.88,772.09 -9.78,223.43 84.88,0 -14.88,-223.43 -60.22,0 z" />
+    <path
+       inkscape:connector-curvature="0"
+       id="path909-9"
+       sodipodi:nodetypes="ccccccccccccc"
+       style="fill:url(#linearGradient5880-1);fill-opacity:0.75;fill-rule:evenodd"
+       d="m 223.51,23.337 c -8.1,0.571 -72.67,106.71 -87.16,176.56 -21.53,125.42 -31.83,285.19 -50.937,410.97 -5.671,29.1 -3.298,64.86 3.812,82.34 7.231,23.7 27.775,48.49 52.345,62.81 29.99,19.43 52.51,18.91 81.75,19.29 0.15,0.09 0.35,0.11 0.53,0 30.62,-0.04 53.49,-1.24 81.75,-19.29 24.57,-14.32 45.11,-39.11 52.34,-62.81 7.11,-17.48 9.49,-53.24 3.82,-82.34 -19.11,-125.78 -29.41,-285.55 -50.94,-410.97 -14.49,-69.85 -79.06,-175.99 -87.16,-176.56 -0.02,-0.005 -0.11,-0.006 -0.15,-0.003 z" />
+    <path
+       inkscape:connector-curvature="0"
+       id="path4679-2"
+       sodipodi:nodetypes="ccccccccccccc"
+       style="fill:url(#linearGradient3098);fill-rule:evenodd"
+       d="m 223.51,23.337 c -8.1,0.571 -72.67,106.71 -87.16,176.56 -21.53,125.42 -31.83,285.19 -50.937,410.97 -5.671,29.1 -3.298,64.86 3.812,82.34 7.231,23.7 27.775,48.49 52.345,62.81 29.99,19.43 52.51,18.91 81.75,19.29 0.15,0.09 0.35,0.11 0.53,0 30.62,-0.04 53.49,-1.24 81.75,-19.29 24.57,-14.32 45.11,-39.11 52.34,-62.81 7.11,-17.48 9.49,-53.24 3.82,-82.34 -19.12,-125.78 -29.41,-285.55 -50.94,-410.97 -14.49,-69.85 -79.06,-175.99 -87.16,-176.56 -0.02,-0.005 -0.11,-0.006 -0.15,-0.003 z" />
+  </g>
+  <g
+     id="g5885-4-7"
+     transform="matrix(1,0,0,-1,605.92089,995.52)">
+    <path
+       inkscape:connector-curvature="0"
+       id="path1545-5-9"
+       style="fill:url(#linearGradient5883-1-7);fill-rule:evenodd"
+       d="m 193.88,772.09 -9.78,223.43 84.88,0 -14.88,-223.43 -60.22,0 z" />
+    <path
+       inkscape:connector-curvature="0"
+       id="path909-5-5"
+       sodipodi:nodetypes="ccccccccccccc"
+       style="fill:url(#linearGradient5880-0-5);fill-opacity:0.75;fill-rule:evenodd"
+       d="m 223.51,23.337 c -8.1,0.571 -72.67,106.71 -87.16,176.56 -21.53,125.42 -31.83,285.19 -50.937,410.97 -5.671,29.1 -3.298,64.86 3.812,82.34 7.231,23.7 27.775,48.49 52.345,62.81 29.99,19.43 52.51,18.91 81.75,19.29 0.15,0.09 0.35,0.11 0.53,0 30.62,-0.04 53.49,-1.24 81.75,-19.29 24.57,-14.32 45.11,-39.11 52.34,-62.81 7.11,-17.48 9.49,-53.24 3.82,-82.34 -19.11,-125.78 -29.41,-285.55 -50.94,-410.97 -14.49,-69.85 -79.06,-175.99 -87.16,-176.56 -0.02,-0.005 -0.11,-0.006 -0.15,-0.003 z" />
+    <path
+       inkscape:connector-curvature="0"
+       id="path4679-1-4"
+       sodipodi:nodetypes="ccccccccccccc"
+       style="fill:url(#linearGradient3020-6);fill-rule:evenodd"
+       d="m 223.51,23.337 c -8.1,0.571 -72.67,106.71 -87.16,176.56 -21.53,125.42 -31.83,285.19 -50.937,410.97 -5.671,29.1 -3.298,64.86 3.812,82.34 7.231,23.7 27.775,48.49 52.345,62.81 29.99,19.43 52.51,18.91 81.75,19.29 0.15,0.09 0.35,0.11 0.53,0 30.62,-0.04 53.49,-1.24 81.75,-19.29 24.57,-14.32 45.11,-39.11 52.34,-62.81 7.11,-17.48 9.49,-53.24 3.82,-82.34 -19.12,-125.78 -29.41,-285.55 -50.94,-410.97 -14.49,-69.85 -79.06,-175.99 -87.16,-176.56 -0.02,-0.005 -0.11,-0.006 -0.15,-0.003 z" />
+  </g>
+</svg>
Index: trunk/test/data/renderer/way-repeat-image/trees.svg
===================================================================
--- trunk/test/data/renderer/way-repeat-image/trees.svg	(revision 12447)
+++ trunk/test/data/renderer/way-repeat-image/trees.svg	(revision 12447)
@@ -0,0 +1,378 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   id="svg1"
+   sodipodi:docname="02.svg"
+   inkscape:export-filename="/datas/Projs/Cliparts Stocker/plain_tree.png"
+   viewBox="0 0 970.83973 972.18771"
+   sodipodi:version="0.32"
+   inkscape:export-xdpi="72.000000"
+   version="1.0"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape"
+   inkscape:export-ydpi="72.000000"
+   inkscape:version="0.48.5 r10040"
+   width="100%"
+   height="100%">
+  <defs
+     id="defs3">
+    <linearGradient
+       id="linearGradient5877"
+       y2="183.60001"
+       gradientUnits="userSpaceOnUse"
+       y1="349.29999"
+       gradientTransform="scale(0.61308,1.6311)"
+       x2="207.92999"
+       x1="466.13"
+       inkscape:collect="always">
+      <stop
+         id="stop5303"
+         style="stop-color:#002f00"
+         offset="0" />
+      <stop
+         id="stop5304"
+         style="stop-color:#009300"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient5880"
+       y2="457.35999"
+       gradientUnits="userSpaceOnUse"
+       y1="32.316002"
+       gradientTransform="scale(0.61308,1.6311)"
+       x2="383.14001"
+       x1="383.14001"
+       inkscape:collect="always">
+      <stop
+         id="stop2187"
+         style="stop-color:#002f00"
+         offset="0" />
+      <stop
+         id="stop2188"
+         style="stop-color:#009300"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient5883"
+       y2="478.01001"
+       gradientUnits="userSpaceOnUse"
+       y1="476.92999"
+       gradientTransform="scale(0.61633,1.6225)"
+       x2="384.09"
+       x1="345.53"
+       inkscape:collect="always">
+      <stop
+         id="stop3434"
+         style="stop-color:#6c2f07"
+         offset="0" />
+      <stop
+         id="stop3435"
+         style="stop-color:#7e4932"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient5883-1-7"
+       y2="478.01001"
+       gradientUnits="userSpaceOnUse"
+       y1="476.92999"
+       gradientTransform="scale(0.61633,1.6225)"
+       x2="384.09"
+       x1="345.53"
+       inkscape:collect="always">
+      <stop
+         id="stop3434-7-1"
+         style="stop-color:#6c2f07"
+         offset="0" />
+      <stop
+         id="stop3435-4-1"
+         style="stop-color:#7e4932"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient5880-0-5"
+       y2="457.35999"
+       gradientUnits="userSpaceOnUse"
+       y1="32.316002"
+       gradientTransform="scale(0.61308,1.6311)"
+       x2="383.14001"
+       x1="383.14001"
+       inkscape:collect="always">
+      <stop
+         id="stop2187-9-2"
+         style="stop-color:#002f00"
+         offset="0" />
+      <stop
+         id="stop2188-4-7"
+         style="stop-color:#009300"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       y2="183.60001"
+       x2="207.92999"
+       y1="349.29999"
+       x1="466.13"
+       gradientTransform="scale(0.61308,1.6311)"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient3020-6"
+       xlink:href="#linearGradient5877-8-1"
+       inkscape:collect="always" />
+    <linearGradient
+       id="linearGradient5877-8-1"
+       y2="183.60001"
+       gradientUnits="userSpaceOnUse"
+       y1="349.29999"
+       gradientTransform="scale(0.61308,1.6311)"
+       x2="207.92999"
+       x1="466.13"
+       inkscape:collect="always">
+      <stop
+         id="stop5303-8-4"
+         style="stop-color:#002f00"
+         offset="0" />
+      <stop
+         id="stop5304-2-2"
+         style="stop-color:#009300"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient5883-3"
+       y2="478.01001"
+       gradientUnits="userSpaceOnUse"
+       y1="476.92999"
+       gradientTransform="scale(0.61633,1.6225)"
+       x2="384.09"
+       x1="345.53"
+       inkscape:collect="always">
+      <stop
+         id="stop3434-2"
+         style="stop-color:#6c2f07"
+         offset="0" />
+      <stop
+         id="stop3435-2"
+         style="stop-color:#7e4932"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient5880-1"
+       y2="457.35999"
+       gradientUnits="userSpaceOnUse"
+       y1="32.316002"
+       gradientTransform="scale(0.61308,1.6311)"
+       x2="383.14001"
+       x1="383.14001"
+       inkscape:collect="always">
+      <stop
+         id="stop2187-6"
+         style="stop-color:#002f00"
+         offset="0" />
+      <stop
+         id="stop2188-8"
+         style="stop-color:#009300"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient5877-5"
+       y2="183.60001"
+       gradientUnits="userSpaceOnUse"
+       y1="349.29999"
+       gradientTransform="scale(0.61308,1.6311)"
+       x2="207.92999"
+       x1="466.13"
+       inkscape:collect="always">
+      <stop
+         id="stop5303-7"
+         style="stop-color:#002f00"
+         offset="0" />
+      <stop
+         id="stop5304-6"
+         style="stop-color:#009300"
+         offset="1" />
+    </linearGradient>
+    <linearGradient
+       y2="183.60001"
+       x2="207.92999"
+       y1="349.29999"
+       x1="466.13"
+       gradientTransform="scale(0.61308,1.6311)"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient3098"
+       xlink:href="#linearGradient5877-5"
+       inkscape:collect="always" />
+    <linearGradient
+       y2="183.60001"
+       x2="207.92999"
+       y1="349.29999"
+       x1="466.13"
+       gradientTransform="scale(0.61308,1.6311)"
+       gradientUnits="userSpaceOnUse"
+       id="linearGradient3020-0"
+       xlink:href="#linearGradient5877-8-2"
+       inkscape:collect="always" />
+    <linearGradient
+       id="linearGradient5877-8-2"
+       y2="183.60001"
+       gradientUnits="userSpaceOnUse"
+       y1="349.29999"
+       gradientTransform="scale(0.61308,1.6311)"
+       x2="207.92999"
+       x1="466.13"
+       inkscape:collect="always">
+      <stop
+         id="stop5303-8-48"
+         style="stop-color:#002f00"
+         offset="0" />
+      <stop
+         id="stop5304-2-6"
+         style="stop-color:#009300"
+         offset="1" />
+    </linearGradient>
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     bordercolor="#666666"
+     inkscape:pageshadow="2"
+     inkscape:window-y="-4"
+     pagecolor="#ffffff"
+     inkscape:window-height="1003"
+     inkscape:zoom="0.41427105"
+     inkscape:window-x="-4"
+     showgrid="true"
+     borderopacity="1.0"
+     inkscape:current-layer="svg1"
+     inkscape:cx="-42.294561"
+     inkscape:cy="423.0624"
+     inkscape:window-width="1680"
+     inkscape:pageopacity="0.0"
+     showguides="true"
+     inkscape:guide-bbox="true"
+     fit-margin-top="0"
+     fit-margin-left="0"
+     fit-margin-right="0"
+     fit-margin-bottom="0"
+     inkscape:window-maximized="0">
+    <inkscape:grid
+       type="xygrid"
+       id="grid2995"
+       empspacing="5"
+       visible="true"
+       enabled="true"
+       snapvisiblegridlinesonly="true"
+       originx="-148.666px"
+       originy="1.0382462e-005px" />
+  </sodipodi:namedview>
+  <g
+     id="g5885"
+     transform="translate(-82.251123,-23.332315)">
+    <path
+       id="path1545"
+       style="fill:url(#linearGradient5883);fill-rule:evenodd"
+       d="m 193.88,772.09 -9.78,223.43 h 84.88 L 254.1,772.09 h -60.22 z"
+       inkscape:connector-curvature="0" />
+    <path
+       id="path909"
+       sodipodi:nodetypes="ccccccccccccc"
+       style="fill:url(#linearGradient5880);fill-opacity:0.75;fill-rule:evenodd"
+       d="m 223.51,23.337 c -8.1,0.571 -72.67,106.71 -87.16,176.56 -21.53,125.42 -31.83,285.19 -50.937,410.97 -5.671,29.1 -3.298,64.86 3.812,82.34 7.231,23.7 27.775,48.49 52.345,62.81 29.99,19.43 52.51,18.91 81.75,19.29 0.15,0.09 0.35,0.11 0.53,0 30.62,-0.04 53.49,-1.24 81.75,-19.29 24.57,-14.32 45.11,-39.11 52.34,-62.81 7.11,-17.48 9.49,-53.24 3.82,-82.34 -19.11,-125.78 -29.41,-285.55 -50.94,-410.97 -14.49,-69.85 -79.06,-175.99 -87.16,-176.56 -0.02,-0.005 -0.11,-0.006 -0.15,-0.003 z"
+       inkscape:connector-curvature="0" />
+    <path
+       id="path4679"
+       sodipodi:nodetypes="ccccccccccccc"
+       style="fill:url(#linearGradient5877);fill-rule:evenodd"
+       d="m 223.51,23.337 c -8.1,0.571 -72.67,106.71 -87.16,176.56 -21.53,125.42 -31.83,285.19 -50.937,410.97 -5.671,29.1 -3.298,64.86 3.812,82.34 7.231,23.7 27.775,48.49 52.345,62.81 29.99,19.43 52.51,18.91 81.75,19.29 0.15,0.09 0.35,0.11 0.53,0 30.62,-0.04 53.49,-1.24 81.75,-19.29 24.57,-14.32 45.11,-39.11 52.34,-62.81 7.11,-17.48 9.49,-53.24 3.82,-82.34 -19.12,-125.78 -29.41,-285.55 -50.94,-410.97 -14.49,-69.85 -79.06,-175.99 -87.16,-176.56 -0.02,-0.005 -0.11,-0.006 -0.15,-0.003 z"
+       inkscape:connector-curvature="0" />
+  </g>
+  <metadata
+     id="metadata18">
+    <rdf:RDF>
+      <cc:Work>
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <cc:license
+           rdf:resource="http://creativecommons.org/licenses/publicdomain/" />
+        <dc:publisher>
+          <cc:Agent
+             rdf:about="http://openclipart.org/">
+            <dc:title>Openclipart</dc:title>
+          </cc:Agent>
+        </dc:publisher>
+        <dc:title></dc:title>
+        <dc:date>2008-05-26T12:05:38</dc:date>
+        <dc:description />
+        <dc:source>https://openclipart.org/detail/17043/plain_tree-by-jean_victor_balin</dc:source>
+        <dc:creator>
+          <cc:Agent>
+            <dc:title>jean_victor_balin</dc:title>
+          </cc:Agent>
+        </dc:creator>
+        <dc:subject>
+          <rdf:Bag>
+            <rdf:li>forest</rdf:li>
+            <rdf:li>garden</rdf:li>
+            <rdf:li>plant</rdf:li>
+            <rdf:li>tree</rdf:li>
+          </rdf:Bag>
+        </dc:subject>
+      </cc:Work>
+      <cc:License
+         rdf:about="http://creativecommons.org/licenses/publicdomain/">
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Reproduction" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#Distribution" />
+        <cc:permits
+           rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
+      </cc:License>
+    </rdf:RDF>
+  </metadata>
+  <g
+     id="g5885-1"
+     transform="translate(267.93589,-23.332315)">
+    <path
+       inkscape:connector-curvature="0"
+       id="path1545-8"
+       style="fill:url(#linearGradient5883-3);fill-rule:evenodd"
+       d="m 193.88,772.09 -9.78,223.43 h 84.88 L 254.1,772.09 h -60.22 z" />
+    <path
+       inkscape:connector-curvature="0"
+       id="path909-9"
+       sodipodi:nodetypes="ccccccccccccc"
+       style="fill:url(#linearGradient5880-1);fill-opacity:0.75;fill-rule:evenodd"
+       d="m 223.51,23.337 c -8.1,0.571 -72.67,106.71 -87.16,176.56 -21.53,125.42 -31.83,285.19 -50.937,410.97 -5.671,29.1 -3.298,64.86 3.812,82.34 7.231,23.7 27.775,48.49 52.345,62.81 29.99,19.43 52.51,18.91 81.75,19.29 0.15,0.09 0.35,0.11 0.53,0 30.62,-0.04 53.49,-1.24 81.75,-19.29 24.57,-14.32 45.11,-39.11 52.34,-62.81 7.11,-17.48 9.49,-53.24 3.82,-82.34 -19.11,-125.78 -29.41,-285.55 -50.94,-410.97 -14.49,-69.85 -79.06,-175.99 -87.16,-176.56 -0.02,-0.005 -0.11,-0.006 -0.15,-0.003 z" />
+    <path
+       inkscape:connector-curvature="0"
+       id="path4679-2"
+       sodipodi:nodetypes="ccccccccccccc"
+       style="fill:url(#linearGradient3098);fill-rule:evenodd"
+       d="m 223.51,23.337 c -8.1,0.571 -72.67,106.71 -87.16,176.56 -21.53,125.42 -31.83,285.19 -50.937,410.97 -5.671,29.1 -3.298,64.86 3.812,82.34 7.231,23.7 27.775,48.49 52.345,62.81 29.99,19.43 52.51,18.91 81.75,19.29 0.15,0.09 0.35,0.11 0.53,0 30.62,-0.04 53.49,-1.24 81.75,-19.29 24.57,-14.32 45.11,-39.11 52.34,-62.81 7.11,-17.48 9.49,-53.24 3.82,-82.34 -19.12,-125.78 -29.41,-285.55 -50.94,-410.97 -14.49,-69.85 -79.06,-175.99 -87.16,-176.56 -0.02,-0.005 -0.11,-0.006 -0.15,-0.003 z" />
+  </g>
+  <g
+     id="g5885-4-7"
+     transform="translate(605.92089,-23.332315)">
+    <path
+       inkscape:connector-curvature="0"
+       id="path1545-5-9"
+       style="fill:url(#linearGradient5883-1-7);fill-rule:evenodd"
+       d="m 193.88,772.09 -9.78,223.43 h 84.88 L 254.1,772.09 h -60.22 z" />
+    <path
+       inkscape:connector-curvature="0"
+       id="path909-5-5"
+       sodipodi:nodetypes="ccccccccccccc"
+       style="fill:url(#linearGradient5880-0-5);fill-opacity:0.75;fill-rule:evenodd"
+       d="m 223.51,23.337 c -8.1,0.571 -72.67,106.71 -87.16,176.56 -21.53,125.42 -31.83,285.19 -50.937,410.97 -5.671,29.1 -3.298,64.86 3.812,82.34 7.231,23.7 27.775,48.49 52.345,62.81 29.99,19.43 52.51,18.91 81.75,19.29 0.15,0.09 0.35,0.11 0.53,0 30.62,-0.04 53.49,-1.24 81.75,-19.29 24.57,-14.32 45.11,-39.11 52.34,-62.81 7.11,-17.48 9.49,-53.24 3.82,-82.34 -19.11,-125.78 -29.41,-285.55 -50.94,-410.97 -14.49,-69.85 -79.06,-175.99 -87.16,-176.56 -0.02,-0.005 -0.11,-0.006 -0.15,-0.003 z" />
+    <path
+       inkscape:connector-curvature="0"
+       id="path4679-1-4"
+       sodipodi:nodetypes="ccccccccccccc"
+       style="fill:url(#linearGradient3020-6);fill-rule:evenodd"
+       d="m 223.51,23.337 c -8.1,0.571 -72.67,106.71 -87.16,176.56 -21.53,125.42 -31.83,285.19 -50.937,410.97 -5.671,29.1 -3.298,64.86 3.812,82.34 7.231,23.7 27.775,48.49 52.345,62.81 29.99,19.43 52.51,18.91 81.75,19.29 0.15,0.09 0.35,0.11 0.53,0 30.62,-0.04 53.49,-1.24 81.75,-19.29 24.57,-14.32 45.11,-39.11 52.34,-62.81 7.11,-17.48 9.49,-53.24 3.82,-82.34 -19.12,-125.78 -29.41,-285.55 -50.94,-410.97 -14.49,-69.85 -79.06,-175.99 -87.16,-176.56 -0.02,-0.005 -0.11,-0.006 -0.15,-0.003 z" />
+  </g>
+</svg>
