2019-12-07 11:18:06 +00:00
generalized_tables :
2021-09-29 09:08:55 +00:00
# etldoc: osm_border_linestring -> osm_border_disp_linestring
2019-12-07 11:18:06 +00:00
border_disp_linestring :
2021-09-29 09:08:55 +00:00
source : border_linestring
sql_filter : ST_GeometryType(geometry) = 'ST_LineString' AND (disputed OR dispute OR border_status = 'disputed' OR disputed_by <> '') AND admin_level = 2
2019-12-10 18:48:24 +00:00
2024-01-21 09:37:02 +00:00
# etldoc: osm_boundary_polygon_gen_z5 -> osm_boundary_polygon_gen_z4
boundary_polygon_gen_z4 :
source : boundary_polygon_gen_z5
sql_filter : area>power(ZRES3,2)
tolerance : ZRES4
# etldoc: osm_boundary_polygon_gen_z6 -> osm_boundary_polygon_gen_z5
boundary_polygon_gen_z5 :
source : boundary_polygon_gen_z6
sql_filter : area>power(ZRES4,2)
tolerance : ZRES5
# etldoc: osm_boundary_polygon_gen_z7 -> osm_boundary_polygon_gen_z6
boundary_polygon_gen_z6 :
source : boundary_polygon_gen_z7
sql_filter : area>power(ZRES5,2)
tolerance : ZRES6
# etldoc: osm_boundary_polygon_gen_z8 -> osm_boundary_polygon_gen_z7
boundary_polygon_gen_z7 :
source : boundary_polygon_gen_z8
sql_filter : area>power(ZRES6,2)
tolerance : ZRES7
# etldoc: osm_boundary_polygon_gen_z9 -> osm_boundary_polygon_gen_z8
boundary_polygon_gen_z8 :
source : boundary_polygon_gen_z9
sql_filter : area>power(ZRES7,2)
tolerance : ZRES8
# etldoc: osm_boundary_polygon_gen_z10 -> osm_boundary_polygon_gen_z9
boundary_polygon_gen_z9 :
source : boundary_polygon_gen_z10
sql_filter : area>power(ZRES8,2)
tolerance : ZRES9
# etldoc: osm_boundary_polygon_gen_z11 -> osm_boundary_polygon_gen_z10
boundary_polygon_gen_z10 :
source : boundary_polygon_gen_z11
sql_filter : area>power(ZRES9,2)
tolerance : ZRES10
# etldoc: osm_boundary_polygon_gen_z12 -> osm_boundary_polygon_gen_z11
boundary_polygon_gen_z11 :
source : boundary_polygon_gen_z12
sql_filter : area>power(ZRES10,2)
tolerance : ZRES11
# etldoc: osm_boundary_polygon_gen_z13 -> osm_boundary_polygon_gen_z12
boundary_polygon_gen_z12 :
source : boundary_polygon_gen_z13
sql_filter : area>power(ZRES11,2)
tolerance : ZRES12
# etldoc: osm_boundary_polygon -> osm_boundary_polygon_gen_z13
boundary_polygon_gen_z13 :
source : boundary_polygon
sql_filter : area>power(ZRES12,2) AND ST_IsValid(geometry)
tolerance : ZRES13
2019-12-07 11:18:06 +00:00
tables :
2021-09-29 09:08:55 +00:00
# etldoc: imposm3 -> osm_border_linestring
border_linestring :
2019-12-07 11:18:06 +00:00
type : relation_member
2021-09-29 09:08:55 +00:00
filters :
require :
admin_level : [ __any__]
boundary : [ administrative]
2020-01-23 02:55:22 +00:00
columns :
2019-12-10 07:49:54 +00:00
- name : relation_id
type : id
2019-12-07 11:18:06 +00:00
- name : osm_id
type : id
2019-12-10 07:49:54 +00:00
from_member : true
2021-09-29 09:08:55 +00:00
- name : member
type : member_id
- name : type
type : member_type
2019-12-07 11:18:06 +00:00
- name : geometry
type : geometry
- key : name
name : name
type : string
2021-09-29 09:08:55 +00:00
# Used for disputed boundary, e.g. "Line of actual control"
from_member : true
2019-12-07 11:18:06 +00:00
- key : admin_level
name : admin_level
2019-12-10 07:49:54 +00:00
type : integer
2019-12-07 11:18:06 +00:00
- key : claimed_by
name : claimed_by
type : string
- key : disputed_by
name : disputed_by
type : string
2021-09-29 09:08:55 +00:00
from_member : true
- key : dispute
name : dispute
type : bool
from_member : true
- key : disputed
name : disputed
type : bool
from_member : true
- key : border_status
name : border_status
type : string
from_member : true
2019-12-10 07:49:54 +00:00
- key : maritime
name : maritime
type : bool
from_member : true
2021-09-29 09:08:55 +00:00
- key : boundary_type
name : boundary_type
type : string
from_member : true
- key : natural
name : natural
type : string
from_member : true
relation_types : [ boundary]
2019-12-07 11:18:06 +00:00
mapping :
2021-09-29 09:08:55 +00:00
boundary :
- administrative
border_status :
- dispute
boundary_type :
- maritime
2024-01-21 09:37:02 +00:00
# etldoc: imposm3 -> osm_boundary_polygon
boundary_polygon :
type : polygon
filters :
require :
type : [ boundary]
boundary : [ aboriginal_lands]
columns :
- name : osm_id
type : id
- name : geometry
type : validated_geometry
- name : name
key : name
type : string
- name : tags
type : hstore_tags
- name : boundary
key : boundary
type : string
- name : area
type : area
mapping :
boundary :
- aboriginal_lands