-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathosm_vectors.xml
101 lines (86 loc) · 3.28 KB
/
osm_vectors.xml
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map [
<!ENTITY % entities SYSTEM "zoom_scales.xml.inc">
%entities;
]>
<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" background-color="#c4dff6" maximum-extent="-20037508.34,-20037508.34,20037508.34,20037508.34">
<Datasource name="osm">
<Parameter name="dbname">osm</Parameter>
<Parameter name="extent">-20037508.34 -20037508.34 20037508.34 20037508.34</Parameter>
<Parameter name="geometry_field">way</Parameter>
<Parameter name="type">postgis</Parameter>
<Parameter name="max_size">200</Parameter>
</Datasource>
<Style name="polygon" filter-mode="first" >
<Rule>
&maxscale_zoom14;
<PolygonSymbolizer clip="true" smooth="0"/>
</Rule>
</Style>
<Style name="line" filter-mode="first" >
<Rule>
&maxscale_zoom12;
<LineSymbolizer clip="true"/>
</Rule>
</Style>
<Style name="roads" filter-mode="first" >
<Rule>
&maxscale_zoom0;
&minscale_zoom12;
<LineSymbolizer clip="true" simplify-algorithm="visvalingam-whyatt" simplify-tolerance="300" />
</Rule>
</Style>
<Style name="point" filter-mode="first" >
<Rule>
&maxscale_zoom10;
<PointSymbolizer />
</Rule>
</Style>
<Style name="city" filter-mode="first" >
<Rule>
<Filter>[place]='city'</Filter>
&maxscale_zoom0;
&minscale_zoom10;
<PointSymbolizer/>
</Rule>
</Style>
<Layer name="polygon"
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>polygon</StyleName>
<Datasource base="osm">
<Parameter name="table">(select * from planet_osm_polygon where osm_id > 0) as osm_polygon</Parameter>
</Datasource>
</Layer>
<Layer name="line"
status="on"
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>line</StyleName>
<Datasource base="osm">
<Parameter name="table">(select * from planet_osm_line where osm_id > 0) as osm_line</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.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over">
<StyleName>roads</StyleName>
<Datasource base="osm">
<Parameter name="table">(select name,highway,oneway,ref,way from planet_osm_roads where osm_id > 0 and highway='motorway') as roads</Parameter>
</Datasource>
</Layer>
<Layer name="point"
status="on"
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>point</StyleName>
<Datasource base="osm">
<Parameter name="table">(select * from planet_osm_point where osm_id > 0) as points</Parameter>
</Datasource>
</Layer>
<Layer name="city"
status="on"
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>city</StyleName>
<Datasource base="osm">
<Parameter name="table">(select * from planet_osm_point where osm_id > 0 and place='city') as city</Parameter>
</Datasource>
</Layer>
</Map>