Skip to content

Commit

Permalink
Filter only water cetroids that has name
Browse files Browse the repository at this point in the history
  • Loading branch information
Rub21 committed Dec 9, 2024
1 parent 0ce8da5 commit 443c95c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 201 deletions.
12 changes: 6 additions & 6 deletions images/tiler-imposm/config/layers/water_areas.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"water_areas_centroid_z0_2": {
"source": "water_areas",
"sql_filter": "type IN ('water', 'riverbank') AND area > 100000000",
"sql_filter": "type IN ('water', 'riverbank') AND area > 100000000 AND name IS NOT NULL AND name <> ''",
"geometry_transform": "(ST_MaximumInscribedCircle(geometry)).center",
"geometry_transform_types": "GeometryType(geometry) IN ('POLYGON', 'MULTIPOLYGON')"
},
Expand All @@ -18,7 +18,7 @@
},
"water_areas_centroid_z3_5": {
"source": "water_areas",
"sql_filter": "type IN ('water', 'pond', 'basin', 'canal', 'mill_pond', 'riverbank') AND area > 50000000",
"sql_filter": "type IN ('water', 'pond', 'basin', 'canal', 'mill_pond', 'riverbank') AND area > 50000000 AND name IS NOT NULL AND name <> ''",
"geometry_transform": "(ST_MaximumInscribedCircle(geometry)).center",
"geometry_transform_types": "GeometryType(geometry) IN ('POLYGON', 'MULTIPOLYGON')"
},
Expand All @@ -29,7 +29,7 @@
},
"water_areas_centroid_z6_7": {
"source": "water_areas",
"sql_filter": "type IN ('water', 'pond', 'basin', 'canal', 'mill_pond', 'riverbank') AND area > 1000000",
"sql_filter": "type IN ('water', 'pond', 'basin', 'canal', 'mill_pond', 'riverbank') AND area > 1000000 AND name IS NOT NULL AND name <> ''",
"geometry_transform": "(ST_MaximumInscribedCircle(geometry)).center",
"geometry_transform_types": "GeometryType(geometry) IN ('POLYGON', 'MULTIPOLYGON')"
},
Expand All @@ -40,7 +40,7 @@
},
"water_areas_centroid_z8_9": {
"source": "water_areas",
"sql_filter": "type IN ('water', 'pond', 'basin', 'canal', 'mill_pond', 'riverbank') AND area > 10000",
"sql_filter": "type IN ('water', 'pond', 'basin', 'canal', 'mill_pond', 'riverbank') AND area > 10000 AND name IS NOT NULL AND name <> ''",
"geometry_transform": "(ST_MaximumInscribedCircle(geometry)).center",
"geometry_transform_types": "GeometryType(geometry) IN ('POLYGON', 'MULTIPOLYGON')"
},
Expand All @@ -51,7 +51,7 @@
},
"water_areas_centroid_z10_12": {
"source": "water_areas",
"sql_filter": "type IN ('water', 'pond', 'basin', 'canal', 'mill_pond', 'riverbank')",
"sql_filter": "type IN ('water', 'pond', 'basin', 'canal', 'mill_pond', 'riverbank') AND name IS NOT NULL AND name <> ''",
"geometry_transform": "(ST_MaximumInscribedCircle(geometry)).center",
"geometry_transform_types": "GeometryType(geometry) IN ('POLYGON', 'MULTIPOLYGON')"
},
Expand All @@ -62,7 +62,7 @@
},
"water_areas_centroid_z13_15": {
"source": "water_areas",
"sql_filter": "type IN ('water', 'pond', 'basin', 'canal', 'mill_pond', 'riverbank', 'dock')",
"sql_filter": "type IN ('water', 'pond', 'basin', 'canal', 'mill_pond', 'riverbank', 'dock') AND name IS NOT NULL AND name <> ''",
"geometry_transform": "(ST_MaximumInscribedCircle(geometry)).center",
"geometry_transform_types": "GeometryType(geometry) IN ('POLYGON', 'MULTIPOLYGON')"
}
Expand Down
195 changes: 0 additions & 195 deletions images/tiler-imposm/transform_tables.py

This file was deleted.

0 comments on commit 443c95c

Please sign in to comment.