File: roads.xml

package info (click to toggle)
mapnik 4.2.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,592 kB
  • sloc: cpp: 163,859; python: 1,332; sh: 690; xml: 161; makefile: 123; perl: 28; lisp: 13
file content (87 lines) | stat: -rw-r--r-- 3,139 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[]>
<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.37/ttf/DejaVuSans.ttf"
  background-color="#dfd8c9">

<Style name="marking" filter-mode="first">
  <Rule>
    <Filter>([class] = 'railways')</Filter>
    <LineSymbolizer stroke="#ffffff" stroke-width="1.8" stroke-dasharray="5, 5" clip="false" />
  </Rule>
</Style>
<Style name="fill" filter-mode="first">
  <Rule>
    <Filter>([class] = 'minorroads')</Filter>
    <LineSymbolizer stroke-width="2.5" stroke="#ffffff" stroke-linecap="round" clip="false" />
  </Rule>
  <Rule>
    <Filter>([class] = 'mainroads')</Filter>
    <LineSymbolizer stroke-width="4" stroke="#ff9999" stroke-linecap="round" clip="false" />
  </Rule>
  <Rule>
    <Filter>([class] = 'motorways')</Filter>
    <LineSymbolizer stroke-width="6" stroke="#ff6666" stroke-linecap="round" clip="false" />
  </Rule>
  <Rule>
    <Filter>([class] = 'railways')</Filter>
    <LineSymbolizer stroke-width="3" stroke="#333333" stroke-linecap="round" clip="false" />
  </Rule>
</Style>
<Style name="bridge" filter-mode="first">
  <Rule>
    <Filter>([class] = 'railways') and ([bridge] = 1)</Filter>
    <LineSymbolizer stroke-width="6" stroke="#ffffff" clip="false" />
  </Rule>
</Style>
<Style name="casing" filter-mode="first">
  <Rule>
    <Filter>([class] = 'railways') and ([bridge] = 1)</Filter>
    <LineSymbolizer stroke-width="8" stroke="#333333" clip="false" />
  </Rule>
  <Rule>
    <Filter>([class] = 'minorroads')</Filter>
    <LineSymbolizer stroke-width="3" stroke="#a69269" clip="false" />
  </Rule>
  <Rule>
    <Filter>([class] = 'mainroads')</Filter>
    <LineSymbolizer stroke-width="5" stroke="#ff0000" clip="false" />
  </Rule>
  <Rule>
    <Filter>([class] = 'motorways')</Filter>
    <LineSymbolizer stroke-width="8" stroke="#990000" clip="false" />
  </Rule>
</Style>
<Style name="labels">
  <Rule>
    <TextSymbolizer
       halo-rasterizer="fast"
       placement="line"
       face-name="DejaVu Sans Book"
       halo-radius="2"
       allow-overlap="false"
       clip="false"
       >[type]</TextSymbolizer>
  </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="extent">1477001.12245,6890242.37746,1480004.49012,6892244.62256</Parameter>
       <Parameter name="type">csv</Parameter>
    </Datasource>
  </Layer>

</Map>