Add local db credentials and water query

pull/51/head
Manuel Roth 2015-10-21 16:07:08 +02:00
rodzic 0de1ae4f72
commit df844d4b1f
1 zmienionych plików z 70 dodań i 126 usunięć

Wyświetl plik

@ -13,15 +13,15 @@ description: OSM Bright 2
Layer:
- id: landuse
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: geometry
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: osm_id
max_size: 512
password: osm
port: ''
password: suisse
port: 32770
srid: ''
table: |-
( SELECT * FROM (
@ -96,15 +96,15 @@ 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
- id: waterway
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: ''
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: ''
max_size: 512
password: osm
port: 5432
password: suisse
port: 32770
srid: ''
table: |-
(
@ -135,76 +135,20 @@ 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
- id: water
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: ''
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: ''
max_size: 512
password: osm
port: 5432
password: suisse
port: 32770
srid: ''
table: |-
(
select geometry, osm_id from osm_waterareas
where area >= 5000000000
and geometry && !bbox!
union all
select geometry, osm_id from osm_waterareas
where area < 5000000000 and area >= 1500000000
and z(!scale_denominator!) >= 2
and geometry && !bbox!
union all
select geometry, osm_id from osm_waterareas
where area < 1500000000 and area >= 500000000
and z(!scale_denominator!) >= 5
and geometry && !bbox!
union all
select geometry, osm_id from osm_waterareas
where area < 500000000 and area >= 100000000
and z(!scale_denominator!) >= 6
and geometry && !bbox!
union all
select geometry, osm_id from osm_waterareas
where area < 100000000 and area >= 40000000
and z(!scale_denominator!) >= 7
and geometry && !bbox!
union all
select geometry, osm_id from osm_waterareas
where area < 40000000 and area >= 20000000
and z(!scale_denominator!) >= 8
and geometry && !bbox!
union all
select geometry, osm_id from osm_waterareas
where area < 20000000 and area >= 10000000
and z(!scale_denominator!) >= 9
and geometry && !bbox!
union all
select geometry, osm_id from osm_waterareas
where area < 10000000 and area >= 5000000
and z(!scale_denominator!) >= 10
and geometry && !bbox!
union all
select geometry, osm_id from osm_waterareas
where area < 5000000 and area >= 1000000
and z(!scale_denominator!) >= 11
and geometry && !bbox!
union all
select geometry, osm_id from osm_waterareas
where area < 1000000 and area >= 500000
and z(!scale_denominator!) >= 12
and geometry && !bbox!
union all
select geometry, osm_id from osm_waterareas
where area < 500000 and area >= 100000
and z(!scale_denominator!) >= 13
and geometry && !bbox!
union all
select geometry, osm_id from osm_waterareas
where area < 100000
and z(!scale_denominator!) >= 14
and geometry && !bbox!
select 0 as osm_id, way from water_polygons
where way && !bbox!
) AS data
type: postgis
user: osm
@ -216,15 +160,15 @@ 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
- id: aeroway
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: geometry
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: ''
max_size: 512
password: osm
port: ''
password: suisse
port: 32770
srid: ''
table: |-
( SELECT geometry, osm_id, type
@ -243,15 +187,15 @@ 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
- id: building
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: geometry
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: osm_id
max_size: 512
password: osm
port: ''
password: suisse
port: 32770
srid: ''
table: |-
( SELECT geometry, osm_id, type, name
@ -273,15 +217,15 @@ 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
- id: landuse_overlay
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: geometry
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: osm_id
max_size: 512
password: osm
port: ''
password: suisse
port: 32770
srid: ''
table: |-
( SELECT geometry, osm_id, type,
@ -313,15 +257,15 @@ 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
- id: tunnel
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: geometry
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: osm_id
max_size: 512
password: osm
port: ''
password: suisse
port: 32770
srid: ''
table: |-
( SELECT geometry, osm_id, type, 0 as bridge, access, render, z_order, tunnel,
@ -368,15 +312,15 @@ 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
- id: road
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: geometry
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: osm_id
max_size: 512
password: osm
port: ''
password: suisse
port: 32770
srid: ''
table: |-
( SELECT * FROM (
@ -450,15 +394,15 @@ 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
- id: bridge
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: geometry
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: osm_id
max_size: 512
password: osm
port: ''
password: suisse
port: 32770
srid: ''
table: |-
( SELECT geometry, osm_id, type, bridge, access, render, z_order, 0 as tunnel,
@ -505,15 +449,15 @@ 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
- id: admin
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: ''
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: ''
max_size: 512
password: osm
port: 5432
password: suisse
port: 32770
srid: ''
table: |-
(
@ -542,15 +486,15 @@ 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
- id: country_label
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: geometry
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: ''
max_size: 512
password: osm
port: ''
password: suisse
port: 32770
srid: ''
table: |-
(
@ -598,15 +542,15 @@ 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
- id: state_label
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: geometry
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: ''
max_size: 512
password: osm
port: ''
password: suisse
port: 32770
srid: ''
table: |-
(
@ -628,15 +572,15 @@ 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
- id: place_label
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: geometry
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: ''
max_size: 512
password: osm
port: ''
password: suisse
port: 32770
srid: ''
table: |-
/* TODO get real name_en/name_de/name_es */
@ -684,15 +628,15 @@ 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
- id: water_label
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: ''
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: ''
max_size: 512
password: osm
port: 5432
password: suisse
port: 32770
srid: ''
table: |-
(
@ -781,15 +725,15 @@ 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
- id: poi_label
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: geometry
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: ''
max_size: 512
password: osm
port: ''
password: suisse
port: 32770
srid: ''
table: |-
(
@ -820,15 +764,15 @@ 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
- id: road_label
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: geometry
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: ''
max_size: 512
password: osm
port: ''
password: suisse
port: 32770
srid: ''
table: |-
(
@ -944,15 +888,15 @@ 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
- id: waterway_label
Datasource:
dbname: osm
dbname: osm_zurich
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: geometry
geometry_table: ''
host: postgis.osm2vectortiles.org
host: 192.168.99.100
key_field: ''
max_size: 512
password: osm
port: ''
password: suisse
port: 32770
srid: ''
table: |-
(