Add ice and shelves
This commit is contained in:
parent
77e6e12821
commit
8af7c0f3f9
35
data.yml
35
data.yml
@ -125,6 +125,41 @@ Layer:
|
|||||||
properties:
|
properties:
|
||||||
"buffer-size": 4
|
"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
|
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: ice
|
||||||
|
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 geom, type
|
||||||
|
FROM (
|
||||||
|
SELECT * FROM ice_z0
|
||||||
|
WHERE z(!scale_denominator!) BETWEEN 0 AND 1
|
||||||
|
UNION ALL
|
||||||
|
SELECT * FROM ice_z2
|
||||||
|
WHERE z(!scale_denominator!) BETWEEN 2 AND 4
|
||||||
|
UNION ALL
|
||||||
|
SELECT * FROM ice_z5
|
||||||
|
WHERE z(!scale_denominator!) BETWEEN 5 AND 7
|
||||||
|
) AS ice
|
||||||
|
WHERE geom && !bbox!
|
||||||
|
) AS t
|
||||||
|
type: postgis
|
||||||
|
user: osm
|
||||||
|
description: Ice shelves
|
||||||
|
fields:
|
||||||
|
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
|
- id: building
|
||||||
Datasource:
|
Datasource:
|
||||||
dbname: osm
|
dbname: osm
|
||||||
|
|||||||
@ -20,6 +20,7 @@ function main() {
|
|||||||
exec_psql_file "layers/building.sql"
|
exec_psql_file "layers/building.sql"
|
||||||
exec_psql_file "layers/boundary.sql"
|
exec_psql_file "layers/boundary.sql"
|
||||||
exec_psql_file "layers/road.sql"
|
exec_psql_file "layers/road.sql"
|
||||||
|
exec_psql_file "layers/ice.sql"
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|||||||
15
schema/layers/ice.sql
Normal file
15
schema/layers/ice.sql
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
CREATE OR REPLACE VIEW ice_z0 AS (
|
||||||
|
SELECT geom, 'glacier' AS type FROM ne_110m_glaciated_areas
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE OR REPLACE VIEW ice_z2 AS (
|
||||||
|
SELECT geom, 'glacier' AS type FROM ne_50m_glaciated_areas
|
||||||
|
UNION ALL
|
||||||
|
SELECT geom, 'ice_shelf' AS type FROM ne_50m_antarctic_ice_shelves_polys
|
||||||
|
);
|
||||||
|
|
||||||
|
CREATE OR REPLACE VIEW ice_z5 AS (
|
||||||
|
SELECT geom, 'glacier' AS type FROM ne_10m_glaciated_areas
|
||||||
|
UNION ALL
|
||||||
|
SELECT geom, 'ice_shelf' AS type FROM ne_10m_antarctic_ice_shelves_polys
|
||||||
|
);
|
||||||
Loading…
x
Reference in New Issue
Block a user