forked from Ahlzen/TopOSM
-
Notifications
You must be signed in to change notification settings - Fork 1
/
contour-mask.mml
45 lines (42 loc) · 962 Bytes
/
contour-mask.mml
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
# -*- yaml -*-
name: TopOSM Contour Mask
description: Contour mask layer for TopOSM.
scale: 1
metatile: 2
bounds:
- -180
- -85.05112877980659
- 180
- 85.05112877980659
center:
- 0
- 0
- 4
format: png
interactivity: false
minzoom: 0
maxzoom: 22
srs: &srs +proj=merc +a=6378137 +b=6378137 +lat_ts=0 +lon_0=0 +x_0=0 +y_0=0 +k=1 +units=m +nadgrids=@null +wktext +no_defs +type=crs
Stylesheet:
- halo-colors.mss
- fonts.mss
- contour-labels.mss
_parts:
ned: &ned
type: postgis
dbname: ned
port: 5433
extent: -20037508,-19929239,20037508,19929239
Layer:
- id: contours-medium
name: contours-medium
srs: *srs
Datasource:
<<: *ned
table: (SELECT ele_ft, wkb_geometry FROM contours WHERE ele_ft % 200 = 0) AS contours
- id: contours-high
name: contours-high
srs: *srs
Datasource:
<<: *ned
table: (SELECT ele_ft, wkb_geometry FROM contours WHERE ele_ft % 100 = 0) AS contours