Improve doc of moutain peaks

pull/180/head
jirik 2017-03-01 08:31:30 +01:00
rodzic addaf4bff0
commit 5bebe680fc
6 zmienionych plików z 14 dodań i 4 usunięć

Wyświetl plik

@ -0,0 +1,7 @@
## Mountain Peaks
### Mapping Diagram
![Mapping diagram for mountain peaks](etl_diagram.png?raw=true)
### ETL diagram
![ETL diagram for mountain peaks](mapping_diagram.png?raw=true)

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 13 KiB

Wyświetl plik

@ -1,6 +1,10 @@
-- etldoc: layer_mountain_peak[shape=record fillcolor=lightpink,
-- etldoc: style="rounded,filled", label="layer_mountain_peak | <z7_> z7+" ] ;
CREATE OR REPLACE FUNCTION layer_mountain_peak(bbox geometry, zoom_level integer, pixel_width numeric) CREATE OR REPLACE FUNCTION layer_mountain_peak(bbox geometry, zoom_level integer, pixel_width numeric)
RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text, ele int, ele_ft int, "rank" int) AS $$ RETURNS TABLE(osm_id bigint, geometry geometry, name text, name_en text, ele int, ele_ft int, "rank" int) AS $$
-- etldoc: osm_housenumber_point -> layer_housenumber:z14_ -- etldoc: osm_peak_point -> layer_mountain_peak:z7_
SELECT osm_id, geometry, name, name_en, ele::int, ele_ft::int, rank::int SELECT osm_id, geometry, name, name_en, ele::int, ele_ft::int, rank::int
FROM ( FROM (
SELECT osm_id, geometry, name, name_en, SELECT osm_id, geometry, name, name_en,

Wyświetl plik

@ -1,7 +1,7 @@
tables: tables:
# etldoc: imposm3 -> osm_housenumber_point # etldoc: imposm3 -> osm_peak_point
peak_point: peak_point:
type: point type: point
fields: fields:

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 3.0 KiB

Wyświetl plik

@ -1,8 +1,7 @@
layer: layer:
id: "mountain_peak" id: "mountain_peak"
description: | description: |
[Peaks](http://wiki.openstreetmap.org/wiki/Tag:natural%3Dpeak) [Natural peaks](http://wiki.openstreetmap.org/wiki/Tag:natural%3Dpeak)
or [volcanoes](http://wiki.openstreetmap.org/wiki/Tag:natural%3Dvolcano)
buffer_size: 64 buffer_size: 64
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
fields: fields: