added bootstrap buildings
This commit is contained in:
Binary file not shown.
@@ -100,7 +100,11 @@ def _query_by_bbox(
|
||||
)
|
||||
) AS feature
|
||||
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
|
||||
"""
|
||||
)
|
||||
|
||||
@@ -18,7 +18,10 @@ WITH raw AS (
|
||||
normalized AS (
|
||||
SELECT
|
||||
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,
|
||||
height_value,
|
||||
levels_value
|
||||
|
||||
Reference in New Issue
Block a user