2013-11-22 07:47:55 +01:00
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[]>
2014-09-07 04:09:34 +02:00
<Map
srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over"
font-directory="../../fonts/dejavu-fonts-ttf-2.33/ttf/DejaVuSans.ttf"
background-color="#dfd8c9">
2013-11-22 07:47:55 +01:00
<Style name= "marking" filter-mode= "first" >
<Rule >
<Filter > ([class] = 'railways')</Filter>
<LineSymbolizer stroke= "#ffffff" stroke-width= "1.8" stroke-dasharray= "5, 5" />
</Rule>
</Style>
<Style name= "fill" filter-mode= "first" >
<Rule >
<Filter > ([class] = 'minorroads')</Filter>
<LineSymbolizer stroke-width= "2.5" stroke= "#ffffff" stroke-linecap= "round" />
</Rule>
<Rule >
<Filter > ([class] = 'mainroads')</Filter>
<LineSymbolizer stroke-width= "4" stroke= "#ff9999" stroke-linecap= "round" />
</Rule>
<Rule >
<Filter > ([class] = 'motorways')</Filter>
<LineSymbolizer stroke-width= "6" stroke= "#ff6666" stroke-linecap= "round" />
</Rule>
<Rule >
<Filter > ([class] = 'railways')</Filter>
<LineSymbolizer stroke-width= "3" stroke= "#333333" stroke-linecap= "round" />
</Rule>
</Style>
<Style name= "bridge" filter-mode= "first" >
<Rule >
<Filter > ([class] = 'railways') and ([bridge] = 1)</Filter>
<LineSymbolizer stroke-width= "6" stroke= "#ffffff" />
</Rule>
</Style>
<Style name= "casing" filter-mode= "first" >
<Rule >
<Filter > ([class] = 'railways') and ([bridge] = 1)</Filter>
<LineSymbolizer stroke-width= "8" stroke= "#333333" />
</Rule>
<Rule >
<Filter > ([class] = 'minorroads')</Filter>
<LineSymbolizer stroke-width= "3" stroke= "#a69269" />
</Rule>
<Rule >
<Filter > ([class] = 'mainroads')</Filter>
<LineSymbolizer stroke-width= "5" stroke= "#ff0000" />
</Rule>
<Rule >
<Filter > ([class] = 'motorways')</Filter>
<LineSymbolizer stroke-width= "8" stroke= "#990000" />
</Rule>
</Style>
<Style name= "labels" >
<Rule >
2014-05-17 04:30:35 +02:00
<TextSymbolizer halo-rasterizer= "fast" placement= "line" face-name= "DejaVu Sans Book" halo-radius= "2" allow-overlap= "true" > [type]</TextSymbolizer>
2013-11-22 07:47:55 +01:00
</Rule>
</Style>
<Layer name= "layer"
srs="+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
<StyleName > casing</StyleName>
<StyleName > bridge</StyleName>
<StyleName > fill</StyleName>
<StyleName > marking</StyleName>
<StyleName > labels</StyleName>
<Datasource >
<!--
ogr2ogr -f CSV tests/visual_tests/data/roads.csv -lco GEOMETRY=AS_WKT tests/visual_tests/data/grouped-rendering.sqlite roads -sql "SELECT fid,geometry, type, tunnel, bridge, oneway, class, z_order, CAST((z_order / 10.0) AS INTEGER) AS z FROM roads ORDER BY z_order"
-->
<Parameter name= "file" > ./roads.csv</Parameter>
<Parameter name= "type" > csv</Parameter>
</Datasource>
</Layer>
</Map>