Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion images/tiler-imposm/config/layers/admin_areas.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"type": "polygon",
"mapping": {
"boundary": [
"administrative"
"__any__"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion images/tiler-imposm/config/layers/admin_lines.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"type": "linestring",
"mapping": {
"boundary": [
"administrative"
"__any__"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"generalized_tables": {},
"tables": {
"relation_members_boundaries": {
"admin_relation_members": {
"type": "relation_member",
"fields": [
{
Expand Down Expand Up @@ -60,6 +60,10 @@
"name": "member",
"type": "member_id"
},
{
"name": "role",
"type": "member_role"
},
{
"name": "me_maritime",
"type": "string",
Expand All @@ -80,7 +84,7 @@
],
"mapping": {
"boundary": [
"administrative"
"__any__"
]
}
}
Expand Down
68 changes: 0 additions & 68 deletions images/tiler-imposm/config/layers/relations_boundaries.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- ============================================================================
-- Create materialized views for admin boundaries areas
-- ============================================================================
DROP FUNCTION MATERIALIZED VIEW IF EXISTS mv_admin_boundaries_areas_z16_20 CASCADE;
DROP MATERIALIZED VIEW IF EXISTS mv_admin_boundaries_areas_z16_20 CASCADE;

SELECT create_areas_mview( 'osm_admin_areas', 'mv_admin_boundaries_areas_z16_20', 1, 0, 'id, osm_id, type', 'admin_level IN (1,2,3,4,5,6,7,8,9,10,11)');
SELECT create_area_mview_from_mview('mv_admin_boundaries_areas_z16_20','mv_admin_boundaries_areas_z13_15', 5, 0.0, NULL);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ BEGIN
FROM %I
WHERE name IS NOT NULL AND name <> ''
AND osm_id NOT IN (
SELECT osm_id FROM osm_relation_members WHERE role = 'label'
SELECT osm_id FROM osm_admin_relation_members WHERE role = 'label' AND type = 'administrative'
)%s;
$sql$, tmp_mview_name, all_cols, source_mview, custom_filter);

Expand Down
Loading