Add roads from NaturalEarth

This commit is contained in:
lukasmartinelli
2016-10-06 18:19:00 +02:00
parent d5b683a0d1
commit 77e6e12821
3 changed files with 68 additions and 0 deletions

View File

@@ -89,6 +89,42 @@ Layer:
properties:
"buffer-size": 4
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
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
geometry_field: geom
geometry_table: ''
host: db
key_field: ''
key_field_as_attribute: ''
max_size: 512
password: osm
port: 5432
srid: ''
table: |-
( SELECT *
FROM (
SELECT * FROM road_z4 WHERE z(!scale_denominator!) = 4
UNION ALL
SELECT * FROM road_z5 WHERE z(!scale_denominator!) = 5
UNION ALL
SELECT * FROM road_z6 WHERE z(!scale_denominator!) = 6
UNION ALL
SELECT * FROM road_z7 WHERE z(!scale_denominator!) >= 7
) AS road
WHERE geom && !bbox!
) AS data
type: postgis
user: osm
description: Buildings
fields:
featureclass: String
scalerank: Number
type: String
properties:
"buffer-size": 4
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