added bootstrap buildings

This commit is contained in:
2026-06-23 11:33:40 +03:00
parent 07ec07b7b3
commit 69b810450e
3 changed files with 9 additions and 2 deletions
+5 -1
View File
@@ -100,7 +100,11 @@ def _query_by_bbox(
) )
) AS feature ) AS feature
FROM buildings FROM buildings
WHERE ST_Intersects(geom, ST_MakeEnvelope(:minlon, :minlat, :maxlon, :maxlat, 4326)) WHERE geom && ST_MakeEnvelope(:minlon, :minlat, :maxlon, :maxlat, 4326)
AND ST_Intersects(
geom,
ST_MakeEnvelope(:minlon, :minlat, :maxlon, :maxlat, 4326)
)
LIMIT :limit LIMIT :limit
""" """
) )
+4 -1
View File
@@ -18,7 +18,10 @@ WITH raw AS (
normalized AS ( normalized AS (
SELECT SELECT
osm_id, osm_id,
ST_Multi(ST_CollectionExtract(ST_MakeValid(way), 3)) AS geom, ST_SetSRID(
ST_Multi(ST_CollectionExtract(ST_MakeValid(way), 3)),
4326
) AS geom,
building_type, building_type,
height_value, height_value,
levels_value levels_value