Jump to content

User:Lakeyboy/Sandbox/OSM

From Wikipedia, the free encyclopedia

<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE Map> <Map bgcolor="#99B3CC" srs="+proj=merc +datum=WGS84 +k=1.0 +units=m +over +no_defs">

   <Style name="mapnik:selection">
     <Rule>
       <Filter>[mapnik:geometry] = 1</Filter> 
       <PointSymbolizer/>
     </Rule>
     <Rule>
       <Filter>[mapnik:geometry] = 2</Filter> 
       <LineSymbolizer>
         <CssParameter name="stroke">red</CssParameter>
         <CssParameter name="stroke-width">6</CssParameter>
         <CssParameter name="stroke-opacity">0.5</CssParameter>
       </LineSymbolizer>
       <LineSymbolizer>
         <CssParameter name="stroke">yellow</CssParameter>
         <CssParameter name="stroke-width">2</CssParameter>
         <CssParameter name="stroke-opacity">1.0</CssParameter>
       </LineSymbolizer>
     </Rule>
     <Rule>
       <Filter>[mapnik:geometry] = 3</Filter> 
       <PolygonSymbolizer>
         <CssParameter name="fill">red</CssParameter>
         <CssParameter name="fill-opacity">0.5</CssParameter>
       </PolygonSymbolizer>
     </Rule>
   </Style>
 
 <Style name="coast-poly">
   <Rule>
     <MaxScaleDenominator>600000000</MaxScaleDenominator>
     <PolygonSymbolizer>
         <CssParameter name="fill">#f2efe9</CssParameter>
     </PolygonSymbolizer>
   </Rule>
 </Style>
                                         
 <Style name="places">
   <Rule>
     <MaxScaleDenominator>50000000</MaxScaleDenominator>
     <MinScaleDenominator>10000000</MinScaleDenominator>
     <TextSymbolizer name="place_name" face_name="DejaVu Sans Book" size="10" fill="#444" halo_radius="1" wrap_width="0"/>
   </Rule>
 </Style>
 
 <Style name="amenity">
   <Rule>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <Filter>[amenity]='post_box'</Filter>
     <PointSymbolizer file="/home/mapnik/mapnik/symbols/post_box.png" type="png" width="16" height="16" />
   </Rule>
   <Rule>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <Filter>[amenity]='post_office'</Filter>
     <PointSymbolizer file="/home/mapnik/mapnik/symbols/post_office.png" type="png" width="16" height="16" />
   </Rule>
   <Rule>
     <MaxScaleDenominator>250000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator> 
     <Filter>[railway]='station'</Filter>
     <PointSymbolizer file="/home/mapnik/mapnik/symbols/station_small.png" type="png" width="5" height="5" />
   </Rule>
    <Rule>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <Filter>[railway]='station'</Filter>
     <PointSymbolizer file="/home/mapnik/mapnik/symbols/station.png" type="png" width="9" height="9" />
   </Rule>
   <Rule>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator> 
     <Filter>[railway]='station'</Filter>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="9" fill="#000" dy="-8" halo_radius="1" wrap_width="0"/>
   </Rule>
   <Rule>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <Filter>[railway]='station'</Filter>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="12" fill="#000" dy="-14" halo_radius="1" wrap_width="0"/>
   </Rule>
   
   <Rule>
     <MaxScaleDenominator>10000</MaxScaleDenominator>
     <Filter>[amenity]='pub'</Filter>
     <PointSymbolizer file="/home/mapnik/mapnik/symbols/pub.png" type="png" width="16" height="16" />
   </Rule>
   <Rule>
     <MaxScaleDenominator>500000</MaxScaleDenominator>
     <Filter>[natural]='peak'</Filter>
     <PointSymbolizer file="/home/mapnik/mapnik/symbols/peak.png" type="png" width="8" height="8" />
   </Rule>
   <Rule>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <Filter>[man_made]='mast'</Filter>
     <PointSymbolizer file="/home/mapnik/mapnik/symbols/tower.png" type="png" width="32" height="32" />
   </Rule>
   <Rule>
     <MaxScaleDenominator>10000</MaxScaleDenominator>
     <Filter>[amenity]='recycling'</Filter>
     <PointSymbolizer file="/home/mapnik/mapnik/symbols/recycling.png" type="png" width="20" height="20" />
   </Rule>
   
   <Rule>
     <MaxScaleDenominator>20000</MaxScaleDenominator>
     <Filter>[amenity]='hospital'</Filter>
     <PointSymbolizer file="/home/mapnik/mapnik/symbols/hospital.png" type="png" width="20" height="20" />
   </Rule>
   
   <Rule>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <Filter>[amenity]='bus_stop' or [highway]='bus_stop'</Filter>      
     <PointSymbolizer file="/home/mapnik/mapnik/symbols/bus_stop.png" type="png" width="30" height="12" />
   </Rule>
   
   <Rule>
     <MaxScaleDenominator>20000</MaxScaleDenominator>
     <Filter>[amenity]='parking'</Filter>
     <PointSymbolizer file="/home/mapnik/mapnik/symbols/parking.png" type="png" width="16" height="16" allow_overlap="false"/>
   </Rule>
   
   <Rule>
     <MaxScaleDenominator>10000</MaxScaleDenominator>
     <Filter>[amenity]='place_of_worship'</Filter>
     <PointSymbolizer file="/home/mapnik/mapnik/symbols/place_of_worship.png" type="png" width="16" height="16" allow_overlap="false"/>
    </Rule>
   <Rule>
     <MaxScaleDenominator>10000</MaxScaleDenominator>
     <Filter>[amenity]='airport'</Filter>
     <PointSymbolizer file="/home/mapnik/mapnik/symbols/airport.png" type="png" width="16" height="16" allow_overlap="false"/>
    </Rule>
   <Rule>
     <MaxScaleDenominator>20000</MaxScaleDenominator>
     <Filter>[highway]='mini_roundabout'</Filter>
     <PointSymbolizer file="/home/mapnik/mapnik/symbols/mini_round.png" type="png" width="9" height="9" allow_overlap="false"/>
   </Rule>
 </Style>
 
 <Style name="leisure">
   <Rule>
     <Filter>[tourism] = 'attraction'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#f2caea</CssParameter>
    </PolygonSymbolizer>
   </Rule>
   <Rule>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <MinScaleDenominator>20000</MinScaleDenominator>
     <Filter>[landuse] = 'cemetery'</Filter>
     <PolygonSymbolizer>
       <CssParameter name="fill">#aacbaf</CssParameter>
     </PolygonSymbolizer>
   </Rule>
   <Rule>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <Filter>[landuse] = 'residential'</Filter>
     <PolygonSymbolizer>
       <CssParameter name="fill">#ddd</CssParameter>
     </PolygonSymbolizer>
   </Rule>
   
    <Rule>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <Filter>[landuse] = 'cemetery'</Filter>
     <PolygonPatternSymbolizer file="/home/mapnik/mapnik/symbols/grave_yard.png" type="png" width="16" height="16"/>
   </Rule>
   
    <Rule>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <Filter>[landuse] = 'meadow' or [landuse] = 'wood'</Filter>
     <PolygonSymbolizer>
       <CssParameter name="fill">#aed1a0</CssParameter>
    </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[leisure] = 'park'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#b6fdb6</CssParameter>
    </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[leisure] = 'common'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#cfeca8</CssParameter>
     </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[leisure] = 'garden'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#cfeca8</CssParameter>
    </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[leisure] = 'golf_course'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#7ccd7c</CssParameter>
    </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[landuse] = 'allotments'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#cc9966</CssParameter>
    </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[landuse] = 'forest'</Filter>
     <MaxScaleDenominator>2000000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#cfeca8</CssParameter>
    </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[landuse] = 'recreation_ground'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#cfeca8</CssParameter>
    </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[landuse] = 'village_green'</Filter>
     <MaxScaleDenominator>500000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#cfeca8</CssParameter>
    </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[landuse] = 'retail'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#f1dada</CssParameter>
    </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[landuse] = 'retail'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">red</CssParameter>

<CssParameter name="stroke-width">0.3</CssParameter>

     </LineSymbolizer>
   </Rule>


   <Rule>
     <Filter>[landuse] = 'commercial'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#efc8c8</CssParameter>
    </PolygonSymbolizer>
   </Rule>
    <Rule>
     <Filter>[natural] = 'wood'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#aed1a0</CssParameter>
    </PolygonSymbolizer>
   </Rule>
    <Rule>
     <Filter>[natural] = 'heath'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#ffffc0</CssParameter>
    </PolygonSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[amenity] = 'university' or [amenity] = 'college' or [amenity] = 'school'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#f0f0d8</CssParameter>
     </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[amenity] = 'university' or [amenity] = 'college' or [amenity] = 'school'</Filter>
     <MaxScaleDenominator>250000</MaxScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">brown</CssParameter>

<CssParameter name="stroke-width">0.3</CssParameter>

     </LineSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[amenity] = 'parking'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
    <PolygonSymbolizer>
        <CssParameter name="fill">#f7efb7</CssParameter>
     </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[amenity] = 'parking'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#eeeed1</CssParameter>

<CssParameter name="stroke-width">0.3</CssParameter>

     </LineSymbolizer>
   </Rule>


   <Rule>
     <Filter>[railway] = 'station' or [building] = 'station'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
    <PolygonSymbolizer>
        <CssParameter name="fill">#fff68f</CssParameter>

<CssParameter name="fill-opacity">0.5</CssParameter>

     </PolygonSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[building] = 'supermarket'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
        <CssParameter name="fill">pink</CssParameter>

<CssParameter name="fill-opacity">0.5</CssParameter>

     </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[building] <> 'station' and [building] <> 'supermarket' and [building] <> </Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
        <CssParameter name="fill">#cc9999</CssParameter>
     </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[amenity] = 'place_of_worship'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
        <CssParameter name="fill">lightgrey</CssParameter>

<CssParameter name="fill-opacity">0.5</CssParameter>

     </PolygonSymbolizer>
   </Rule>
    <Rule>
     <Filter>[leisure] = 'sports_centre' or [leisure]='stadium' or [leisure]='track'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
        <CssParameter name="fill">#33cc99</CssParameter>
     </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[leisure] = 'pitch'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
        <CssParameter name="fill">#8ad3af</CssParameter>
     </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[aeroway] = 'terminal'</Filter>
     <MaxScaleDenominator>200000</MaxScaleDenominator>
     <PolygonSymbolizer>
        <CssParameter name="fill">#cc99ff</CssParameter>
     </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[aeroway] = 'terminal'</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#330066</CssParameter>

<CssParameter name="stroke-width">0.2</CssParameter>

     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[natural] = 'beach'</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <PolygonPatternSymbolizer file="/home/mapnik/mapnik/symbols/beach.png" type="png" width="10" height="10"/>
   </Rule>
 </Style>
 
 <Style name="area-text">
   <Rule>
     <Filter>[way_area] >= 200000</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="#000033" halo_radius="1" wrap_width="20"/>
   </Rule>
   <Rule>
     <Filter>[way_area] >= 100000 and [way_area] < 200000</Filter>
     <MaxScaleDenominator>12500</MaxScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="#000033" halo_radius="1" wrap_width="20"/>
   </Rule>
   <Rule>
     <Filter>[way_area] >= 20000 and [way_area] < 100000</Filter>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="#000033" halo_radius="1" wrap_width="20"/>
   </Rule>
   <Rule>
     <Filter>[way_area] < 20000</Filter>
     <MaxScaleDenominator>2500</MaxScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="#000033" halo_radius="1" wrap_width="20"/>
   </Rule>
 </Style>
  
 <Style name="text">
   <Rule>
     <Filter>[place] = 'city'</Filter>
     <MaxScaleDenominator>10000000</MaxScaleDenominator>
     <MinScaleDenominator>2000000</MinScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="#000" dy="0" halo_radius="1" wrap_width="0"/>
   </Rule>
   <Rule>
     <Filter>[place] = 'city'</Filter>
     <MaxScaleDenominator>2000000</MaxScaleDenominator>
     <MinScaleDenominator>20000</MinScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="14" fill="#000" dy="0" halo_radius="2" wrap_width="0"/>
   </Rule>
   <Rule>
     <Filter>[place] = 'town'</Filter>
     <MaxScaleDenominator>2000000</MaxScaleDenominator>
     <MinScaleDenominator>50000</MinScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="11" fill="#000" halo_radius="2" wrap_width="20"/>
   </Rule>
   <Rule>
     <Filter>[place] = 'town'</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="14" fill="#777777" halo_radius="1" wrap_width="20"/>
   </Rule>
   <Rule>
     <Filter>[place] = 'village'</Filter>
     <MaxScaleDenominator>250000</MaxScaleDenominator>
     <MinScaleDenominator>50000</MinScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="8" fill="#000" halo_radius="2" wrap_width="0"/>
   </Rule>
   <Rule>
     <Filter>[place] = 'village'</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="11" fill="#777777" halo_radius="1" wrap_width="0"/>
   </Rule>
   <Rule>
     <Filter>[place] = 'hamlet'</Filter>
     <MaxScaleDenominator>125000</MaxScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="8" fill="#000" halo_radius="1" wrap_width="0"/>
   </Rule>
   
   <Rule>
     <Filter>[amenity] = 'pub'</Filter>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="brown" dy="16" halo_radius="1" wrap_width="0"/>
   </Rule>
    <Rule>
     <Filter>[amenity] = 'place_of_worship'</Filter>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="#000033" dy="12" halo_radius="1" wrap_width="20"/>
   </Rule>
   <Rule>
     <Filter>[leisure] <>  or [landuse] <>  </Filter>
     <MaxScaleDenominator>20000</MaxScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="#000" halo_radius="2" wrap_width="10"/>
   </Rule>
   <Rule>
     <Filter>[natural] = 'wood'</Filter>
     <MaxScaleDenominator>20000</MaxScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="#000" halo_radius="2" wrap_width="10"/>
   </Rule>
   <Rule>
     <Filter>[natural] = 'peak'</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="brown" dy="10" halo_radius="1" wrap_width="20"/>
   </Rule>
   <Rule>
     <Filter>[natural] = 'water' or [natural] = 'lake' or [landuse] = 'reservoir'</Filter>
     <MaxScaleDenominator>20000</MaxScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="#6699cc" halo_radius="1" wrap_width="20"/>
   </Rule>
   <Rule>
     <Filter>[tourism] <> </Filter>
     <MaxScaleDenominator>10000</MaxScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="#660033" halo_radius="2" wrap_width="10"/>
   </Rule>
   <Rule>
     <Filter>[amenity] = 'school' or [amenity] = 'college' or [amenity] = 'university'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="8" fill="#000033" halo_radius="2" wrap_width="12"/>
   </Rule>
   <Rule>
     <Filter>[amenity] = 'hospital'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="8" fill="#000033" dy="12" halo_radius="2" wrap_width="12"/>
   </Rule>
   
 </Style>
 
  <Style name="water">
   <Rule>
     <Filter>[waterway] = 'dock' or [landuse] = 'reservoir' or [landuse] = 'water'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#99B3CC</CssParameter>
    </PolygonSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[natural] = 'lake' or [natural] = 'water'</Filter>
     <MaxScaleDenominator>5000000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#99B3CC</CssParameter>
    </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[natural] = 'land'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <PolygonSymbolizer>
       <CssParameter name="fill">#f2efe9</CssParameter>
    </PolygonSymbolizer>
   </Rule>
   <Rule>
     <Filter>[waterway]='river'</Filter>
     <MaxScaleDenominator>250000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#ff0000</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[waterway]='canal'</Filter>
     <MaxScaleDenominator>250000</MaxScaleDenominator>
     <MinScaleDenominator>100000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#99B3CC</CssParameter>
       <CssParameter name="stroke-width">3</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[waterway]='canal'</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>50000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#99B3CC</CssParameter>
       <CssParameter name="stroke-width">4</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="8" fill="#6699cc" halo_radius="1" placement="line"/>
   </Rule>
   <Rule>
     <ElseFilter/> 
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#99B3CC</CssParameter>
       <CssParameter name="stroke-width">1</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[waterway]='river'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#ff0000</CssParameter>
       <CssParameter name="stroke-width">10</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="#6699cc" halo_radius="1" placement="line"/>
   </Rule>
   <Rule>
     <Filter>[waterway]='canal'</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#99B3CC</CssParameter>
       <CssParameter name="stroke-width">7</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="9" fill="#6699cc" halo_radius="1" placement="line"/>
   </Rule>
   <Rule>
     <ElseFilter/> 
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#99B3CC</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>
     </LineSymbolizer>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="8" fill="#6699cc" halo_radius="1" placement="line"/>
   </Rule>
 </Style>
 <Style name="minor-roads-casing">
    <Rule>
     <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
     <MaxScaleDenominator>150000</MaxScaleDenominator>
     <MinScaleDenominator>75000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#506077</CssParameter>
       <CssParameter name="stroke-width">4</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
     
   <Rule>
     <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
     <MaxScaleDenominator>75000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#506077</CssParameter>
       <CssParameter name="stroke-width">7</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>5000</MinScaleDenominator>
     <LineSymbolizer>        
       <CssParameter name="stroke">#506077</CssParameter>
       <CssParameter name="stroke-width">14</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'motorway' or [highway]='motorway_link'</Filter>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <LineSymbolizer>        
       <CssParameter name="stroke">#506077</CssParameter>
       <CssParameter name="stroke-width">17</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
  <Rule>
     <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
     <MaxScaleDenominator>150000</MaxScaleDenominator>
     <MinScaleDenominator>75000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#477147</CssParameter>
       <CssParameter name="stroke-width">4</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
 
   <Rule>
     <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
     <MaxScaleDenominator>75000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#477147</CssParameter>
       <CssParameter name="stroke-width">11</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   <Rule>
    <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>5000</MinScaleDenominator>
     <LineSymbolizer>        
       <CssParameter name="stroke">#477147</CssParameter>
       <CssParameter name="stroke-width">14</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
    <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <LineSymbolizer>        
       <CssParameter name="stroke">#477147</CssParameter>
       <CssParameter name="stroke-width">17</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
     <MaxScaleDenominator>150000</MaxScaleDenominator>
     <MinScaleDenominator>75000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#8d4346</CssParameter>
       <CssParameter name="stroke-width">4</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
     <MaxScaleDenominator>75000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#8d4346</CssParameter>
       <CssParameter name="stroke-width">10</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>5000</MinScaleDenominator>      
     <LineSymbolizer>
       <CssParameter name="stroke">#8d4346</CssParameter>
       <CssParameter name="stroke-width">12</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
     <MaxScaleDenominator>5000</MaxScaleDenominator>      
     <MinScaleDenominator>1000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#8d4346</CssParameter>
       <CssParameter name="stroke-width">17</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[highway] = 'residential' or [highway] = 'minor' or [highway] = 'unclassified'</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>50000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#999</CssParameter>
       <CssParameter name="stroke-width">3</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'tertiary'</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#999</CssParameter>
       <CssParameter name="stroke-width">9</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[highway] = 'residential' or [highway] = 'minor' or [highway] = 'unclassified'</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#999</CssParameter>
       <CssParameter name="stroke-width">4.5</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[highway] = 'tertiary' or [highway] = 'residential' or [highway] = 'minor' or [highway] = 'unclassified'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>5000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#999</CssParameter>
       <CssParameter name="stroke-width">11</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'tertiary' or [highway] = 'residential' or [highway] = 'minor' or [highway] = 'unclassified'</Filter>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#999</CssParameter>
       <CssParameter name="stroke-width">16</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'service'</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#999</CssParameter>
       <CssParameter name="stroke-width">3</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'service'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#999</CssParameter>
       <CssParameter name="stroke-width">8</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
  </Rule>
 </Style>
 
 <Style name="minor-roads">
   <Rule>
     <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
     <MaxScaleDenominator>500000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#F2BF24</CssParameter>
       <CssParameter name="stroke-width">4</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   
   <Rule>
     <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>10000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#F2BF24</CssParameter>
       <CssParameter name="stroke-width">8</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
     <MaxScaleDenominator>10000</MaxScaleDenominator>
     <MinScaleDenominator>5000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#F2BF24</CssParameter>
       <CssParameter name="stroke-width">12</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#F2BF24</CssParameter>
       <CssParameter name="stroke-width">14</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#7fc97f</CssParameter>
       <CssParameter name="stroke-width">8</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <MinScaleDenominator>5000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#7fc97f</CssParameter>
       <CssParameter name="stroke-width">10</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
    
   <Rule>
     <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#7fc97f</CssParameter>
       <CssParameter name="stroke-width">14</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
  
   <Rule>
     <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#e46d71</CssParameter>
       <CssParameter name="stroke-width">8</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>5000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#e46d71</CssParameter>
       <CssParameter name="stroke-width">10</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#e46d71</CssParameter>
       <CssParameter name="stroke-width">14</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
  <Rule>
     <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
     <MaxScaleDenominator>150000</MaxScaleDenominator>
     <MinScaleDenominator>75000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#fdbf6f</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
     <MaxScaleDenominator>75000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#fdbf6f</CssParameter>
       <CssParameter name="stroke-width">8</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>5000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#fdbf6f</CssParameter>
       <CssParameter name="stroke-width">10</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#fdbf6f</CssParameter>
       <CssParameter name="stroke-width">14</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>    
   <Rule>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <Filter>[railway] = 'rail' and not [tunnel] = 'yes'</Filter>
     <LinePatternSymbolizer file="/home/mapnik/mapnik/symbols/rail.png" type="png" width="20" height="3" />
   </Rule>
   <Rule>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>     
     <Filter>[railway] = 'rail' and [tunnel] = 'yes'</Filter>
     <LinePatternSymbolizer file="/home/mapnik/mapnik/symbols/rail_tunnel.png" type="png" width="10" height="3" />
   </Rule>
   <Rule>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <Filter>[railway]='narrow_gauge'</Filter>
     <LineSymbolizer>
       <CssParameter name="stroke">#444</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <Filter>[railway]='tram' and [tunnel]='yes'</Filter>
     <LineSymbolizer>
       <CssParameter name="stroke">#444</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>

<CssParameter name="stroke-dasharray">5,3</CssParameter>

     </LineSymbolizer>
   </Rule>
   <Rule>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <Filter>[railway]='tram' and not [tunnel]='yes'</Filter>
     <LineSymbolizer>
       <CssParameter name="stroke">#444</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <Filter>[railway]='light_rail' and [tunnel]='yes'</Filter>
     <LineSymbolizer>
       <CssParameter name="stroke">#444</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>

<CssParameter name="stroke-dasharray">5,3</CssParameter>

     </LineSymbolizer>
   </Rule>
    <Rule>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <Filter>[railway]='light_rail' and not [tunnel]='yes'</Filter>
     <LineSymbolizer>
       <CssParameter name="stroke">#444</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>
     </LineSymbolizer>
   </Rule>
    <Rule>
     <MaxScaleDenominator>200000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <Filter>[railway]='subway' and [tunnel]='yes'</Filter>
     <LineSymbolizer>
       <CssParameter name="stroke">#999</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>

<CssParameter name="stroke-dasharray">5,3</CssParameter>

     </LineSymbolizer>
   </Rule>
   <Rule>
     <MaxScaleDenominator>200000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <Filter>[railway]='subway' and not [tunnel] = 'yes'</Filter>
     <LineSymbolizer>
       <CssParameter name="stroke">#999</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'tertiary' or [highway] = 'residential' or [highway] = 'unclassified'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <MinScaleDenominator>100000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#ccc</CssParameter>
       <CssParameter name="stroke-width">1</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[highway] = 'residential' or [highway] = 'minor' or [highway] = 'unclassified'</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>50000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#fff</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[highway] = 'residential'  or [highway] = 'minor' or [highway] = 'unclassified'</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <MinScaleDenominator>15000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#fff</CssParameter>
       <CssParameter name="stroke-width">3</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[highway] = 'residential'  or [highway] = 'minor' or [highway] = 'unclassified'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>5000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#fff</CssParameter>
       <CssParameter name="stroke-width">9.4</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>


   <Rule>
     <Filter>[highway] = 'residential'  or [highway] = 'minor' or [highway] = 'unclassified'</Filter>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#fff</CssParameter>
       <CssParameter name="stroke-width">13</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'tertiary'</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>50000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#ffffcc</CssParameter>
       <CssParameter name="stroke-width">5</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   <Rule>
     <Filter>[highway] = 'tertiary'</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#ffffcc</CssParameter>
       <CssParameter name="stroke-width">7</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   
  <Rule>
     <Filter>[highway] = 'tertiary'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>5000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#ffffcc</CssParameter>
       <CssParameter name="stroke-width">9.4</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'tertiary'</Filter>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#ffffcc</CssParameter>
       <CssParameter name="stroke-width">13</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'service'</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>50000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#bbbbbb</CssParameter>
       <CssParameter name="stroke-width">1</CssParameter>
     </LineSymbolizer>
  </Rule>
   <Rule>
     <Filter>[highway] = 'service'</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">white</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>
     </LineSymbolizer>
  </Rule>
      
   <Rule>
     <Filter>[highway] = 'service'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">white</CssParameter>
       <CssParameter name="stroke-width">6</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
  </Rule>
  <Rule>
     <Filter>[highway] = 'steps'</Filter>
     <MaxScaleDenominator>20000</MaxScaleDenominator>      
     <LineSymbolizer>
       <CssParameter name="stroke">salmon</CssParameter>
       <CssParameter name="stroke-width">5.0</CssParameter>
       <CssParameter name="stroke-dasharray">2,1</CssParameter>
     </LineSymbolizer>
   </Rule>
  <Rule>
     <Filter>[highway] = 'bridleway'</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#fff</CssParameter>
       <CssParameter name="stroke-width">4</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
       <CssParameter name="stroke-opacity">0.4</CssParameter>
     </LineSymbolizer>
     <LineSymbolizer>
       <CssParameter name="stroke">green</CssParameter>
       <CssParameter name="stroke-width">1.5</CssParameter>
       <CssParameter name="stroke-dasharray">4,2</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'footway'</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#fff</CssParameter>
       <CssParameter name="stroke-width">6</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
       <CssParameter name="stroke-opacity">0.4</CssParameter>
     </LineSymbolizer>
     <LineSymbolizer>
       <CssParameter name="stroke">salmon</CssParameter>
       <CssParameter name="stroke-width">2.0</CssParameter>
       <CssParameter name="stroke-dasharray">1,3</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'steps'</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>20000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#fff</CssParameter>
       <CssParameter name="stroke-width">6</CssParameter>
       <CssParameter name="stroke-opacity">0.4</CssParameter>
     </LineSymbolizer>
     <LineSymbolizer>
       <CssParameter name="stroke">salmon</CssParameter>
       <CssParameter name="stroke-width">2.0</CssParameter>
       <CssParameter name="stroke-dasharray">1,3</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'cycleway'</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">white</CssParameter>
       <CssParameter name="stroke-width">4</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
       <CssParameter name="stroke-opacity">0.4</CssParameter>
     </LineSymbolizer>
     <LineSymbolizer>
       <CssParameter name="stroke">blue</CssParameter>
       <CssParameter name="stroke-width">1.5</CssParameter>
       <CssParameter name="stroke-dasharray">1,3</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'byway'</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">white</CssParameter>
       <CssParameter name="stroke-width">6</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
       <CssParameter name="stroke-opacity">0.4</CssParameter>
     </LineSymbolizer>
     <LineSymbolizer>
       <CssParameter name="stroke">#ffcc00</CssParameter>
       <CssParameter name="stroke-width">2.0</CssParameter>
       <CssParameter name="stroke-dasharray">3,4</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'track'</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">white</CssParameter>
       <CssParameter name="stroke-width">6</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
       <CssParameter name="stroke-opacity">0.4</CssParameter>
     </LineSymbolizer>
     <LineSymbolizer>
       <CssParameter name="stroke">#996600</CssParameter>
       <CssParameter name="stroke-width">2.0</CssParameter>
       <CssParameter name="stroke-dasharray">3,4</CssParameter>
       <CssParameter name="stroke-linejoin">round</CssParameter>
       <CssParameter name="stroke-linecap">round</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'pedestrian'</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">grey</CssParameter>
       <CssParameter name="stroke-width">5</CssParameter>
     </LineSymbolizer>
     <LineSymbolizer>
       <CssParameter name="stroke">#ededed</CssParameter>
       <CssParameter name="stroke-width">4</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'unsurfaced'</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>25000</MinScaleDenominator>
       <LineSymbolizer>
       <CssParameter name="stroke">grey</CssParameter>
       <CssParameter name="stroke-width">4</CssParameter>
       <CssParameter name="stroke-dasharray">4,2</CssParameter>
     </LineSymbolizer>
     <LineSymbolizer>
       <CssParameter name="stroke">white</CssParameter>
       <CssParameter name="stroke-width">3.0</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'unsurfaced'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>10000</MinScaleDenominator>
       <LineSymbolizer>
       <CssParameter name="stroke">grey</CssParameter>
       <CssParameter name="stroke-width">8</CssParameter>
       <CssParameter name="stroke-dasharray">4,2</CssParameter>
     </LineSymbolizer>
     <LineSymbolizer>
       <CssParameter name="stroke">white</CssParameter>
       <CssParameter name="stroke-width">7.0</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'unsurfaced'</Filter>
     <MaxScaleDenominator>10000</MaxScaleDenominator>
       <LineSymbolizer>
       <CssParameter name="stroke">grey</CssParameter>
       <CssParameter name="stroke-width">12</CssParameter>
       <CssParameter name="stroke-dasharray">4,2</CssParameter>
     </LineSymbolizer>
     <LineSymbolizer>
       <CssParameter name="stroke">white</CssParameter>
       <CssParameter name="stroke-width">10.0</CssParameter>
     </LineSymbolizer>
   </Rule>
    <Rule>
     <Filter>[route] = 'ferry'</Filter>
     <MaxScaleDenominator>500000</MaxScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">navy</CssParameter>
       <CssParameter name="stroke-width">0.8</CssParameter>
       <CssParameter name="stroke-dasharray">6,6</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[aeroway] = 'runway'</Filter>
     <MaxScaleDenominator>500000</MaxScaleDenominator>
     <MinScaleDenominator>200000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#bbc</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[aeroway] = 'runway'</Filter>
     <MaxScaleDenominator>200000</MaxScaleDenominator>
     <MinScaleDenominator>50000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#bbc</CssParameter>
       <CssParameter name="stroke-width">7</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[aeroway] = 'runway'</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#bbc</CssParameter>
       <CssParameter name="stroke-width">18</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[aeroway] = 'taxiway'</Filter>
     <MaxScaleDenominator>500000</MaxScaleDenominator>
     <MinScaleDenominator>50000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#bbc</CssParameter>
       <CssParameter name="stroke-width">1</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[aeroway] = 'taxiway'</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <MinScaleDenominator>20000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#bbc</CssParameter>
       <CssParameter name="stroke-width">4</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[aeroway] = 'taxiway'</Filter>
     <MaxScaleDenominator>20000</MaxScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#bbc</CssParameter>
       <CssParameter name="stroke-width">6</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[boundary] = 'administrative'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#868C93</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>

<CssParameter name="stroke-dasharray">8,4,1,3</CssParameter>

       <CssParameter name="stroke-opacity">0.5</CssParameter>
     </LineSymbolizer>
   </Rule>
 </Style>

 <Style name="roads">
   <Rule>
     <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
     <MaxScaleDenominator>25000000</MaxScaleDenominator>
     <MinScaleDenominator>5000000</MinScaleDenominator>
      <LineSymbolizer>
       <CssParameter name="stroke">#C0B583</CssParameter>
       <CssParameter name="stroke-width">3</CssParameter>
     </LineSymbolizer>

<LineSymbolizer>

       <CssParameter name="stroke">#F2BF24</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
     <MaxScaleDenominator>5000000</MaxScaleDenominator>
     <MinScaleDenominator>1000000</MinScaleDenominator>

<LineSymbolizer>

       <CssParameter name="stroke">#C0B583</CssParameter>
       <CssParameter name="stroke-width">4</CssParameter>
     </LineSymbolizer>
     <LineSymbolizer>
      <CssParameter name="stroke">#F2BF24</CssParameter>
      <CssParameter name="stroke-width">3</CssParameter>
     </LineSymbolizer>
   </Rule>
  <Rule>
    <Filter>[highway] = 'motorway' or [highway] = 'motorway_link'</Filter>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <MinScaleDenominator>500000</MinScaleDenominator>

<LineSymbolizer>

       <CssParameter name="stroke">#C0B583</CssParameter>
       <CssParameter name="stroke-width">5</CssParameter>
     </LineSymbolizer>
     <LineSymbolizer>
     <CssParameter name="stroke">#F2BF24</CssParameter>
     <CssParameter name="stroke-width">4</CssParameter>
   </LineSymbolizer>
  </Rule>
   
   <Rule>
     <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
     <MaxScaleDenominator>25000000</MaxScaleDenominator>
     <MinScaleDenominator>2500000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#7fc97f</CssParameter>
       <CssParameter name="stroke-width">1</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
     <MaxScaleDenominator>2500000</MaxScaleDenominator>
     <MinScaleDenominator>500000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#7fc97f</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'trunk' or [highway] = 'trunk_link'</Filter>
     <MaxScaleDenominator>500000</MaxScaleDenominator>
     <MinScaleDenominator>100000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#7fc97f</CssParameter>
       <CssParameter name="stroke-width">3</CssParameter>
     </LineSymbolizer>
   </Rule>
   
  <Rule>
     <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
     <MaxScaleDenominator>5000000</MaxScaleDenominator>
     <MinScaleDenominator>2000000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#C0B583</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>
     </LineSymbolizer>

<LineSymbolizer>

       <CssParameter name="stroke">#FFFA73</CssParameter>
       <CssParameter name="stroke-width">1</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
     <MaxScaleDenominator>2000000</MaxScaleDenominator>
     <MinScaleDenominator>500000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#C0B583</CssParameter>
       <CssParameter name="stroke-width">3</CssParameter>
     </LineSymbolizer>

<LineSymbolizer>

       <CssParameter name="stroke">#FFFA73</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'primary' or [highway] = 'primary_link'</Filter>
     <MaxScaleDenominator>500000</MaxScaleDenominator>
     <MinScaleDenominator>100000</MinScaleDenominator>
    <LineSymbolizer>
       <CssParameter name="stroke">#C0B583</CssParameter>
       <CssParameter name="stroke-width">4</CssParameter>
     </LineSymbolizer>

<LineSymbolizer>

       <CssParameter name="stroke">#FFFA73</CssParameter>
       <CssParameter name="stroke-width">3</CssParameter>
     </LineSymbolizer>
   </Rule>


   <Rule>
     <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
     <MaxScaleDenominator>2000000</MaxScaleDenominator>
     <MinScaleDenominator>500000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#fdbf6f</CssParameter>
       <CssParameter name="stroke-width">1</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <Filter>[highway] = 'secondary' or [highway] = 'secondary_link'</Filter>
     <MaxScaleDenominator>500000</MaxScaleDenominator>
     <MinScaleDenominator>100000</MinScaleDenominator>
     <LineSymbolizer>
       <CssParameter name="stroke">#fdbf6f</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>
     </LineSymbolizer>
   </Rule>
   
   <Rule>
     <MaxScaleDenominator>2500000</MaxScaleDenominator>
     <MinScaleDenominator>1000000</MinScaleDenominator>
     <Filter>[railway] = 'rail' or [railway] = 'tram' or [railway] = 'light_rail' or [railway] = 'narrow_gauge'</Filter>
      <LineSymbolizer>
       <CssParameter name="stroke">#aaa</CssParameter>
       <CssParameter name="stroke-width">1</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <MaxScaleDenominator>1000000</MaxScaleDenominator>
     <MinScaleDenominator>100000</MinScaleDenominator>
     <Filter>[railway] = 'rail' or [railway] = 'tram' or [railway] = 'light_rail' or [railway] = 'narrow_gauge'</Filter>
      <LineSymbolizer>
       <CssParameter name="stroke">#aaa</CssParameter>
       <CssParameter name="stroke-width">2</CssParameter>
     </LineSymbolizer>
   </Rule>
   <Rule>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <Filter>[railway] = 'preserved'</Filter>
     <LinePatternSymbolizer file="/home/mapnik/mapnik/symbols/rail_preserved.png" type="png" width="20" height="3" />
   </Rule>
   
 </Style>


 <Style name="roads-text">
   <Rule>
     <Filter>[highway] = 'motorway' and [length] = 1</Filter>
     <MaxScaleDenominator>500000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#F2BF24" placement="line" file="/home/mapnik/mapnik/symbols/motorway_shield1.png" type="png" width="17" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'motorway' and [length] = 2</Filter>
     <MaxScaleDenominator>500000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#F2BF24" placement="line" file="/home/mapnik/mapnik/symbols/motorway_shield2.png" type="png" width="24" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'motorway' and [length] = 3</Filter>
     <MaxScaleDenominator>500000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#F2BF24" placement="line" file="/home/mapnik/mapnik/symbols/motorway_shield3.png" type="png" width="31" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'motorway' and [length] = 4</Filter>
     <MaxScaleDenominator>500000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#F2BF24" placement="line" file="/home/mapnik/mapnik/symbols/motorway_shield4.png" type="png" width="38" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'trunk' and [length] = 1</Filter>
     <MaxScaleDenominator>150000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#7fc97f" placement="line" file="/home/mapnik/mapnik/symbols/trunk_shield1.png" type="png" width="17" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'trunk' and [length] = 2</Filter>
     <MaxScaleDenominator>150000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#7fc97f" placement="line" file="/home/mapnik/mapnik/symbols/trunk_shield2.png" type="png" width="24" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'trunk' and [length] = 3</Filter>
     <MaxScaleDenominator>150000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#7fc97f" placement="line" file="/home/mapnik/mapnik/symbols/trunk_shield3.png" type="png" width="31" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'trunk' and [length] = 4</Filter>
     <MaxScaleDenominator>150000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#7fc97f" placement="line" file="/home/mapnik/mapnik/symbols/trunk_shield4.png" type="png" width="38" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'trunk' and [length] = 5</Filter>
     <MaxScaleDenominator>150000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#7fc97f" placement="line" file="/home/mapnik/mapnik/symbols/trunk_shield5.png" type="png" width="45" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'primary' and [length] = 1</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#e46d71" placement="line" file="/home/mapnik/mapnik/symbols/primary_shield1.png" type="png" width="17" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'primary' and [length] = 2</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#e46d71" placement="line" file="/home/mapnik/mapnik/symbols/primary_shield2.png" type="png" width="24" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'primary' and [length] = 3</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#e46d71" placement="line" file="/home/mapnik/mapnik/symbols/primary_shield3.png" type="png" width="31" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'primary' and [length] = 4</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#e46d71" placement="line" file="/home/mapnik/mapnik/symbols/primary_shield4.png" type="png" width="38" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'primary' and [length] = 5</Filter>
     <MaxScaleDenominator>100000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#e46d71" placement="line" file="/home/mapnik/mapnik/symbols/primary_shield5.png" type="png" width="45" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'secondary' and [length] = 1</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#fdbf6f" placement="line" file="/home/mapnik/mapnik/symbols/secondary_shield1.png" type="png" width="17" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'secondary' and [length] = 2</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#fdbf6f" placement="line" file="/home/mapnik/mapnik/symbols/secondary_shield2.png" type="png" width="24" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'secondary' and [length] = 3</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#fdbf6f" placement="line" file="/home/mapnik/mapnik/symbols/secondary_shield3.png" type="png" width="31" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'secondary' and [length] = 4</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#fdbf6f" placement="line" file="/home/mapnik/mapnik/symbols/secondary_shield4.png" type="png" width="38" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'secondary' and [length] = 5</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#fdbf6f" placement="line" file="/home/mapnik/mapnik/symbols/secondary_shield5.png" type="png" width="45" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'tertiary' and [length] = 1</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#ffffcc" placement="line" file="/home/mapnik/mapnik/symbols/tertiary_shield1.png" type="png" width="17" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'tertiary' and [length] = 2</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#ffffcc" placement="line" file="/home/mapnik/mapnik/symbols/tertiary_shield2.png" type="png" width="24" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'tertiary' and [length] = 3</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#ffffcc" placement="line" file="/home/mapnik/mapnik/symbols/tertiary_shield3.png" type="png" width="31" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'tertiary' and [length] = 4</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#ffffcc" placement="line" file="/home/mapnik/mapnik/symbols/tertiary_shield4.png" type="png" width="38" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'tertiary' and [length] = 5</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <ShieldSymbolizer name="ref" face_name="DejaVu Sans Book" size="11" fill="#ffffcc" placement="line" file="/home/mapnik/mapnik/symbols/tertiary_shield5.png" type="png" width="45" height="17" min_distance="100"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'trunk' or [highway] = 'primary' or [highway] = 'secondary'</Filter>
     <MaxScaleDenominator>75000</MaxScaleDenominator>
     <MinScaleDenominator>50000</MinScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="8" fill="black" halo_radius="0" placement="line"/>
   </Rule>
   <Rule>
     <Filter>[highway] = 'trunk' or [highway] = 'primary' or [highway] = 'secondary'</Filter>
     <MaxScaleDenominator>50000</MaxScaleDenominator>
     <MinScaleDenominator>1000</MinScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="10" fill="black" halo_radius="0" placement="line"/>
   </Rule>
   <Rule>
     <ElseFilter/>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <MinScaleDenominator>5000</MinScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="9" fill="#000" halo_radius="1"  placement="line" />
   </Rule>
   <Rule>
     <ElseFilter/>
     <MaxScaleDenominator>5000</MaxScaleDenominator>
     <MinScaleDenominator>100</MinScaleDenominator>
     <TextSymbolizer name="name" face_name="DejaVu Sans Book" size="11" fill="#000" halo_radius="1"  placement="line" />
   </Rule>
 </Style>


 <Style name="directions">        
   <Rule>
     <Filter>[oneway] = 'yes' or [oneway] = 'true' or [oneway] = '1'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <LinePatternSymbolizer file="/home/mapnik/mapnik/symbols/arrow.png" type="png" width="74" height="8" />
   </Rule>
   <Rule>
     <Filter>[oneway] = '-1'</Filter>
     <MaxScaleDenominator>25000</MaxScaleDenominator>
     <LinePatternSymbolizer file="/home/mapnik/mapnik/symbols/arrow_back.png" type="png" width="74" height="8" />
   </Rule>
</Style>
 <Layer name="coast-poly" status="on" srs="+proj=merc +ellps=WGS84  +no_defs">
   <StyleName>coast-poly</StyleName>
   <Datasource>
     <Parameter name="type">shape</Parameter>
     <Parameter name="file">/home/mapnik/coastlines/out</Parameter>
   </Datasource>
 </Layer>
 <Layer name="leisure" status="on" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
   <StyleName>leisure</StyleName>
   <Datasource>
     <Parameter name="type">postgis</Parameter>
     <Parameter name="host">/tmp</Parameter>
     <Parameter name="user">mapnik</Parameter>
     <Parameter name="dbname">osm</Parameter>
     <Parameter name="table">(select * from planet_osm_polygon order by z_order,way_area desc) as leisure</Parameter>
     <Parameter name="estimate_extent">true</Parameter>
   </Datasource>
 </Layer>
 <Layer name="water" status="on" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
   <StyleName>water</StyleName>
   <Datasource>
     <Parameter name="type">postgis</Parameter>
     <Parameter name="host">/tmp</Parameter>
     <Parameter name="user">mapnik</Parameter>
     <Parameter name="dbname">osm</Parameter>
     <Parameter name="estimate_extent">true</Parameter>
     <Parameter name="table">(select * from planet_osm_polygon where landuse='reservoir' or landuse='water' or  "natural"='lake' or "natural"='water' or "natural"='land' order by z_order) as water</Parameter>
   </Datasource>
 </Layer>
 
 <Layer name="waterway" status="on" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
   <StyleName>water</StyleName>
   <Datasource>
     <Parameter name="type">postgis</Parameter>
     <Parameter name="host">/tmp</Parameter>
     <Parameter name="user">mapnik</Parameter>
     <Parameter name="dbname">osm</Parameter>
     <Parameter name="estimate_extent">true</Parameter>
     <Parameter name="table">(select * from planet_osm_line where waterway IS NOT NULL or landuse='reservoir' or landuse='water' or  "natural"='lake' or "natural"='water' order by z_order) as water</Parameter>
   </Datasource>
 </Layer>
 <Layer name="minor-roads" status="on" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
   <StyleName>minor-roads-casing</StyleName>
   <StyleName>minor-roads</StyleName>
   <Datasource>
     <Parameter name="type">postgis</Parameter>
     <Parameter name="host">/tmp</Parameter>
     <Parameter name="user">mapnik</Parameter>
     <Parameter name="dbname">osm</Parameter>
     <Parameter name="table">
     (select * from planet_osm_line order by z_order) as roads
     </Parameter>
     <Parameter name="estimate_extent">true</Parameter>
   </Datasource>
 </Layer>
 
 <Layer name="roads" status="on" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
   <StyleName>roads</StyleName>
   <Datasource>
     <Parameter name="type">postgis</Parameter>
     <Parameter name="host">/tmp</Parameter>
     <Parameter name="user">mapnik</Parameter>
     <Parameter name="dbname">osm</Parameter>
     <Parameter name="table">
     (select * from planet_osm_roads order by z_order) as roads
     </Parameter>
     <Parameter name="estimate_extent">true</Parameter>
   </Datasource>
  </Layer>
   
  <Layer name="amenity" status="on" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
   <StyleName>amenity</StyleName>
   <Datasource>
     <Parameter name="type">postgis</Parameter>
     <Parameter name="host">/tmp</Parameter>
     <Parameter name="user">mapnik</Parameter>	   
     <Parameter name="dbname">osm</Parameter>
     <Parameter name="table">(select * from planet_osm_point where amenity IS NOT NULL or railway is NOT NULL or "natural" is NOT NULL or man_made is NOT NULL or highway is NOT NULL) as amenity</Parameter>
     <Parameter name="estimate_extent">true</Parameter>
   </Datasource>
  </Layer>
 
  <Layer name="planet roads text osm" status="on" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
    <StyleName>directions</StyleName>
    <StyleName>roads-text</StyleName>
    <Datasource>
     <Parameter name="type">postgis</Parameter>
     <Parameter name="host">/tmp</Parameter>
     <Parameter name="user">mapnik</Parameter>
     <Parameter name="dbname">osm</Parameter>
     <Parameter name="table">
     (select way,highway,landuse,"natural",man_made,waterway,tourism,learning,amenity,place,name,ref,oneway,char_length(ref) as length from planet_osm_line where waterway IS NULL and leisure IS NULL and landuse IS NULL) as roads
     </Parameter>
     <Parameter name="estimate_extent">true</Parameter>
   </Datasource>
 </Layer>
  
 <Layer name="area-text" status="on" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
   <StyleName>area-text</StyleName>
   <Datasource>
     <Parameter name="type">postgis</Parameter>
     <Parameter name="host">/tmp</Parameter>
     <Parameter name="user">mapnik</Parameter>
     <Parameter name="dbname">osm</Parameter>
     <Parameter name="table">(select * from planet_osm_polygon order by z_order,way_area desc) as leisure</Parameter>
     <Parameter name="estimate_extent">true</Parameter>
   </Datasource>
 </Layer>

 <Layer name="text" status="on" srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs +over">
   <StyleName>text</StyleName>
   <Datasource>
     <Parameter name="type">postgis</Parameter>
     <Parameter name="host">/tmp</Parameter>
     <Parameter name="user">mapnik</Parameter>
     <Parameter name="dbname">osm</Parameter>
     <Parameter name="table">planet_osm_point</Parameter>
     <Parameter name="estimate_extent">true</Parameter>
   </Datasource>
 </Layer>


 <Layer name="places" status="on">
   <StyleName>places</StyleName>
   <Datasource>
     <Parameter name="type">shape</Parameter>
     <Parameter name="file">/home/mapnik/mapnik/world_boundaries/places</Parameter>
   </Datasource>
 </Layer>

</Map>