[OSM-dev] First osmarender patch: cemetery pattern background

Sebastian Spaeth Sebastian at SSpaeth.de
Wed Apr 25 11:58:52 BST 2007


Hi all,
I was bothered that cemeteries look just the same as sport arenas in 
osmarender, so I scratched my itch. Please find below my first 
osmarender patch.

You can see the effect at http://sspaeth.de/uploads/cemetery.png (ignore 
the nearby artefacts :-)). I am also not familiar with svg's so bear 
with me if the syntax is suboptimal.

Do changes like this make sense? Thanks for considering this one.

Spaetz

Index: rules/standard.xml
===================================================================
--- rules/standard.xml  (Revision 2659)
+++ rules/standard.xml  (Arbeitskopie)
@@ -1777,7 +1777,7 @@
              }

              .landuse-cemetery {
-                fill: #bde3cb;
+                fill: url(#cemetery-pattern);
                  stroke: #eeeeee;
                  stroke-width: 0.2px;
              }
@@ -2050,6 +2050,11 @@
              }
          </style>

+        <svg:pattern id="cemetery-pattern" x="0" y="0" width="10" 
height="10" patternUnits="userSpaceOnUse">
+           <svg:rect fill="#bde3cb" width="10" height="10" x="0" y="0" />
+            <svg:path stroke="black" stroke-width="0.2" d="M1,1 L3,1 
M2,0 L2,4 M6,6 L8,6 M7,5 L7,9"/>
+        </svg:pattern>
+
          <svg:pattern id="pedestrian-pattern" x="0" y="0" width="10" 
height="10" patternUnits="userSpaceOnUse">
              <svg:path d="M0,10 L10,0" fill="none" stroke="red" width="1"/>
          </svg:pattern>




More information about the dev mailing list