source: subversion/applications/rendering/toposm/areansh.xml.templ @ 29599

Last change on this file since 29599 was 22872, checked in by ahlzen, 9 years ago

Added central configuration script.

File size: 1.2 KB
Line 
1<?xml version="1.0" encoding="utf-8"?>
2<!DOCTYPE Map[
3    <!ENTITY % utils SYSTEM "include/utils.inc">
4    <!ENTITY % colors SYSTEM "include/colors.inc">
5        <!ENTITY dbsettings SYSTEM "include/dbsettings.inc">
6        <!ENTITY extents SYSTEM "include/extents.inc">
7        <!ENTITY waterfillcolor "#adf">
8        %utils;
9        %colors;
10]>
11
12<Map bgcolor="&landcolor;" srs="&srs900913;">
13
14        <Style name="surface-water-fill">
15          <Rule>
16            &minz6;
17                <Filter>
18                    <!-- NOTE: data source is filtered on these properties as well -->
19                        [natural] = 'water' or
20                        [landuse] = 'reservoir' or
21                        [landuse] = 'basin' or
22                        [waterway] = 'riverbank' or
23                        [waterway] = 'dock'
24                </Filter>
25                <PolygonSymbolizer>
26                  <CssParameter name="fill">&waterfillcolor;</CssParameter>
27                </PolygonSymbolizer>
28          </Rule>
29        </Style>
30       
31        <Layer name="polygons" status="on">
32                <StyleName>surface-water-fill</StyleName>
33                <Datasource>
34                        &dbsettings;
35                        &extents;
36                        <Parameter name="table">
37                                (select * from ${DB_PREFIX}_polygon where (
38                                    "natural" = 'water' or
39                                    landuse = 'reservoir' or
40                                    landuse = 'basin' or
41                                    waterway = 'riverbank' or
42                                    waterway = 'dock')
43                                order by z_order,way_area desc) as polygons
44                        </Parameter>
45                </Datasource>
46        </Layer>
47</Map>
Note: See TracBrowser for help on using the repository browser.